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/>