Row height in a datagrid

  • Thread starter Thread starter Geoff Jones
  • Start date Start date
G

Geoff Jones

Hiya

How do I get/set the row height in a winforms datagrid?

More specifically, how do I get/set the height of the column headers?

Thanks in advance

Geoff
 
I have messed with trying to set the row heights and found it can be done but
is messy. There is a private property in the DataGrid which you have to
access and it only works for datatable based datasources like DataTable,
DataSets, etc., not ArrayLists. Do a search for DataGrid Rows and you should
find some help. I not, I can probably dig up the code for you. Let me know
as I can do it this weekend.
 
Thanks Dennis

Dennis said:
I have messed with trying to set the row heights and found it can be done
but
is messy. There is a private property in the DataGrid which you have to
access and it only works for datatable based datasources like DataTable,
DataSets, etc., not ArrayLists. Do a search for DataGrid Rows and you
should
find some help. I not, I can probably dig up the code for you. Let me
know
as I can do it this weekend.
 
Back
Top