RadControls version |
2011.1.11.315
|
.NET version |
3.5 SP1
|
Visual Studio version |
2010
|
programming language |
C# and VB
|
PROJECT DESCRIPTION
I needed to have the gridview automatically auto sizing automatically to fill the entire space with most columns having fixed width and using one of the columns, usually the one that has the largest content to fill the rest of the empty space. Then the most important part is that the same variable width column, would have a minimum width so when the screen resolution is not enough to run the full size grid in will automatically change its behavior and show the horizontal scroll bar.
This sample project shows exactly that.
First set the width of the variable size column to the maximum, I used the radgrid width.
Then add the SizeChanged event to show/hide the scrollbar accordingly.
I hope this is helpfull to somebody.
Thanks,
-Gabriele