Can I know how I can set the column width of Utlragrid to fit the contents automatically so that the user doesn't have to manually adjust the column width to view the full content please.
Use the PerformAutoResize method on the column.
Or, if you have the latest version, you can avoid looping through each column and use PerformAutoResizeColumns on the grid's DisplayLayout.
I tried with the PerformAutoResizeColumns on the DisplayLayout but the column size is still too big, I have to manually double-click on the column and it resize to the smallest possible. Is there away to do this programmatically?
Thanks.
hkurniaw said:Is there away to do this programmatically?
Yes, call PerformAutoResize on the column.
Thanks a lot, it work´s