Is there a way to set the width of the column based on its dataset data. In my case, it should be equal to the longest data string within the dataset.
Let me know.
Thanks
Nagarjun
To atuo-resize all columns:
MyUltraGrid.DataSource = ds.Tables(0) For Each col As Infragistics.Win.UltraWinGrid.UltraGridColumn In MyUltraGrid.Rows.Band.Columns col.PerformAutoResize() Next
After you bind your data, call column.PerformAutoResize.
You can decide whether to resize according to visible rows or all rows with the first parameter, but resizing all rows can be slow if you have many rows.