Click to See Complete Forum and Search --> : Creating DataGrid Row Heights...


nolc
March 25th, 2003, 03:08 PM
OK...maybe this is a better question. Is there a way at Runtime to figure out the string length of a Datagrid cell and then set the row height based on the length?

pareshgh
March 26th, 2003, 01:44 PM
that datacolumn class in previous example shows pretty good stuff. you can override the paint method and using measurestring of a graphics class the center or wraping can be done. it little tough though but you can try out the sample on label first and then apply.

Paresh