The size of the rows and columns can be resized by using the ResizeToFit method.
When you want to change the row height dynamically by using MeasureString() instead of ResizeToFit() , use the simple workaround as follows.
In the QueryRowHeight event, you can use the Graphics.MeasureString() method to set the row height dynamically. It returns the size of the given string that is used to find whether the row height is need to be changed or not.
The following image illustrates the resizing of the rows.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|