Can anyone help me how to auto size the colums when the grid is loaded initially.
Thanks.
Hi,
What I usually do is use the InitializeLayout event of the grid. Use e.Layout.Bands and loop throughthe bands collection. On each band, loop through the columns and call the PerformAutoResize method. Be sure to pass in AllRowsInBand to PerformAutoResize - otherwise it will only autosize on the loaded rows and there won't be any at that point.
Thanks for the reply.
The columns are resized properly but the column headers are adjusted to the column size too. Is there any property to make the headers visible with PerformAutoResize property.
Thanks for the help.