Changing Datagrid row height

  • Thread starter Thread starter Bruce Wolfe
  • Start date Start date
B

Bruce Wolfe

I need to have each row of a datagrid to have a different height based
on the data. When debugging, I can change this value
((System.Windows.Forms.DataGrid)(m_MyGrid)).DataGridRows[0].Height
and achieve what I need to do. Apparently, this is a private member
because I don't have access to it. Is there some way I can do what I
need to do? There has got to be a way. Getting frustrating. Thanks for
any help.
 
Are you proposing to roun-trip the FCL code to change the visibility of
private properties?
You can't be serious.

Willy.

Nick Harris said:
You can use ILDASM to disassemble some .net code, and force it to expose
hidden props.

Nick Harris, MCSD
http://www.VizSoft.net


Bruce Wolfe said:
I need to have each row of a datagrid to have a different height based
on the data. When debugging, I can change this value
((System.Windows.Forms.DataGrid)(m_MyGrid)).DataGridRows[0].Height
and achieve what I need to do. Apparently, this is a private member
because I don't have access to it. Is there some way I can do what I
need to do? There has got to be a way. Getting frustrating. Thanks for
any help.
 
Back
Top