This project is read-only.

Hide columnHeader for DataGrid

Oct 23, 2009 at 7:43 AM



I am not sure whether this is possible, but I am using the DataGrid and for one small grid I need to hide the header. Can someone tell me how to?


Thank you very much and please let me say great work, thx.

Oct 23, 2009 at 8:57 AM

Do you want to hide entire row or column?


You could try setting rows height to zero, that could probably work

Oct 24, 2009 at 9:25 AM

No not entire column just its header. See, I have space only for 3 rows in the form and if there is a header it leaves me only with 2 row, so I want to hide the header the maximize the number of editable rows.


Oct 25, 2009 at 7:43 AM

Did you try setting header row height to 0 ?

Oct 27, 2009 at 11:46 AM

Yes that is what I was trying to do but did not know how :-) but you gave me an idea where to look for it and here is the solution:


gridName.Rows.HeaderHeight = 0;


Thank you