Hi All,
I have a grid with almost 15 columns so need horizontal scroll to display all the columns. Is there any property/method/way I can hide last 3-4 columns so that horizontal scroll bar is not displayed but it will add some sign [+] on last column & clicking on this sign will show remaining columns.
Thanks in Advance
you could quite easily set the width of the columns to be very small and then provide a button (perhaps put the button in a toolbar etc) that says "Show All Columns" etc and when clicked it could then set the columns to be the larger size...
Each column object client side has a setWidth(number) function which will set the size.
You could in the InitializeLayout Server side event set the size of the last 3 or 4 etc:
Protected Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout ' figure out the number of columns etc Dim NumColumns As Integer = UltraWebGrid1.Columns.Count ' loop through the last couple For i As Integer = (NumColumns - 1) To NumColumns - 4 Step -1 ' size the column UltraWebGrid1.Columns(i).Width = Unit.Pixel(10) Next End Sub