|
-
Jan 12th, 2007, 08:11 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [02/03] Add Image in Datagrid Header
Hi all,
I want to display Image in Datagrid header for sorting. this is the requirement of client. so i can't even think other logic.
Now is there any propert through which i can access datagrid header column ??
If yes then how ??
plz, i need it urgent!!!
I am using .NET 2010 with Windows 7
-
Jan 13th, 2007, 03:08 AM
#2
Thread Starter
Hyperactive Member
Re: [02/03] Add Image in Datagrid Header
Ok i did it but i had to take template column saperated for each item..
I am using .NET 2010 with Windows 7
-
Jan 17th, 2007, 03:58 PM
#3
Re: [RESOLVED] [02/03] Add Image in Datagrid Header
That is essentially how you would do it. You could've also, I believe, directly accessed the header in the ItemDataBound event of the DataGrid and inserted the image there.
-
Jan 19th, 2007, 06:12 AM
#4
Thread Starter
Hyperactive Member
Re: [RESOLVED] [02/03] Add Image in Datagrid Header
Sorry for late posting,
actually i wanted to add the image in When Sort event fire for Column... I know and i did added the control in header but when i rebind the datagrid somehow image is disappeared. (May be reference of e missed up after databinding.)
I still want if somebody help me in this issue.
If i can convert Datagrid column into DataGridItem then I am sure I can did it without Template column.
I need to convert the Column to DatagridItem using Following reference of the Column
DatagridName.Columns(0)
ANY SUGGESTION ??
I am using .NET 2010 with Windows 7
-
Jan 24th, 2007, 11:46 AM
#5
Re: [RESOLVED] [02/03] Add Image in Datagrid Header
DatagridName.Columns(0).Items(4)
-
Jan 25th, 2007, 05:52 AM
#6
Thread Starter
Hyperactive Member
Re: [RESOLVED] [02/03] Add Image in Datagrid Header
Sorry but Item is not available in Column. u can check it.
I am using .NET 2010 with Windows 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|