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
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
if you want to change only for particular row :
DataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells
See http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.autosizerowsmode.aspx
DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
is a better choice, if you want to keep same width of columns.