How can I programatically set the rowheight of a row in my Datagrid?
How can I programatically set the rowheight of a row in my Datagrid (Winforms)?
One way you can change the height of a row is to use reflection to access the Datagrid internal row objects which are not publicly exposed.
Here are both VB and C# sample projects showing how you might do this.
The sample provides a class that you can instantiate by passing a Datagrid, creating a rowHeights object.
Once you create this object, you can use an indexer on the object to set and get the rowheights.
That was originally published at SyncFusion but it is no more available.
0 Comments:
Post a Comment
<< Home