hi all ,
i have the grid wherein the data is displayed with columns set to resizeall columns to fit the screen .
but when i export or print the grid i want the column sizes to be fitting to the data in the columns. is there a way to do this directly
thanks a lot
Hey i have almost same problem like you.
I want to wrap the text in cell
for that i set below code in ultragrid_InitializeRow event
e.Row.Band.Layout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.AutoFree
but still it dint work.
can you pls suggest me wht i hav to do
thanks in advance
In what event are you setting this? Since you are using e.Row, it seems like this must be in some row-specific event. But since you are setting the property on the DisplayLayout.Override (which applies to all rows in the entire grid), that doesn't make any sense. The AutoFree setting will only resize the rows automatically the first time they are painted.
You should be setting the RowSizing property in the InitializeLayout event of the grid.