By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

icons in column header

P: n/a
VJ
I want to display a icon in the column header of a DataGrid. How can I do
this?

VJ
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "VJ" <vi********@yahoo.com> scripsit:
I want to display a icon in the column header of a DataGrid. How can I do
this?


<URL:http://www.google.de/groups?selm=58c501c4008c%24ca11c480%24a301280a%40p hx.gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

P: n/a
VJ
Thanks HK.. i guess that should do it...

I guess I am going to take all the tips from around and make a extendable
grid... and make it available for people.... will post here when I am done.

VJ

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2p************@uni-berlin.de...
* "VJ" <vi********@yahoo.com> scripsit:
I want to display a icon in the column header of a DataGrid. How can I do this?

<URL:http://www.google.de/groups?selm=58c...24a301280a%40p
hx.gbl>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

P: n/a
VJ
HK.. that did not work.. Here is what I did..

I used the Location ( x, y) of the Grid and then added the width of each
column ( x + col1.width + col2.width .. ) till the column were I want the
icon and then used e.graphics to paint the icon at that postion. You might
have to add a few numbers if you want the icon to be centered in the cell...

hope this helps :-)

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:eJ**************@TK2MSFTNGP11.phx.gbl...
Thanks HK.. i guess that should do it...

I guess I am going to take all the tips from around and make a extendable
grid... and make it available for people.... will post here when I am done.
VJ

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2p************@uni-berlin.de...
* "VJ" <vi********@yahoo.com> scripsit:
I want to display a icon in the column header of a DataGrid. How can I do this?

<URL:http://www.google.de/groups?selm=58c...24a301280a%40p hx.gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.