Replies
Hi Boris,
In my app that column is hidden by default. But I think I can overcome this issue by applying this resize whenever the hidden property changes for that column.
I am not able to mark your post as answer so that it will be useful for others too, may be because this is not my post initially.
Thanks,
Nitin Jain
Hi Boris,
Thanks for the sample.
I applied the changes in my code and there is an issue:
The first column which is of boolean type and is showing a checkbox is distorted (Please see snapshot)
Wondering even after passing the last param as true why this is happening.
Thanks,
Nitin Jain
Hi Boris,
I cannot upgrade to the newest version of Infragistics.
I would appreciate if you can provide some sample code for performing resize manually.
Thanks,
Nitin Jain
Hi Boris,
I apologies, I cannot provide a sample as Infragistics is on client machine and I do not have permissions to upload any document from there.
1. If I use the (false,VisibleRows,true), some data is chopped off that would be annoying for user.
2. If I use (false,VisibleRows,false), and there is no data in the grid then the display is very weird, it resize all the columns to almost 0 size.
3. If I use (true,VisibleRows,true/false), the hidden columns don't appear again.
Thanks,
Nitin Jain
Hi Boris,
I think I have a different ver. of Infragistics (//Infragistics ver. 8.3) as I have only 2 overloads for this function:
PerformAutoResizeColumns(bool sizeHiddenColumns,PerformAutoSizeType performAutoSizeType)
PerformAutoResizeColumns(bool sizeHiddenColumns,PerformAutoSizeType performAutoSizeType,bool includeHeader)
Thanks,
Nitin Jain
Hi Boris,
I think I am trying to solve the problem with wrong approach.
The issue is, user wants to have a solid view of data. In other words the solution is to resize the columns width according to the cell data present in all the rows instead of changing the font size of cell (that anyway will not solve this issue), so that the width will be equal to the max. length of the data in any of the cell for that column.
For that I tried PerformAutoResizeColumns, but there we have other issues with this approach:
1. We have one column of type boolean, showing the cell as checkbox, hidden by default. On some action we unhide that column. But when I apply PerformAutoResize that column is still hidden.
2. After applying PerformAutoResize, the data in some of columns is chopped off.
Will appreciate if you can suggest anything on this?
Thanks,
Nitin Jain