Hi i am using the DataGridView in the C#.Net 3.5 and i want the height of the all row is set to Autosize.. i have defined the WrapMode = true but not getting the Height Autosize
So plz guide me
Thanks
DataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells
See http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.autosizerowsmode.aspx
if you want to change only for particular row :
int j = Rowindex; datagridview1.AutoResizeRow(j, DataGridViewAutoSizeRowMode.AllCells);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With