Row height in a datagrid

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
 
G

Guest

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.
 
G

Geoff Jones

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top