MSMani Sankar Durai Syncfusion Team July 7, 2016 11:48 AM UTC
We have analyzed your query and achieved your requirement, hiding the columns based on the index. For instance we have passed the index value of column which has been entered in the textbox and passing the value to serverside (code behind) and making the columns visibility as false.
For your convenience please refer the below code example,
ProtectedSubSubmit(sender AsObject, e AsEventArgs)
DimvalueAsInt16 = Request.Form("Name")
Grid1.Columns(value).Visible = False //Grid1 is the ID of grid
For your kind information, in grid by inbuilt we have Column chooser feature that contains the list of all the columns which are defined in the Columns property. Using this you can control the visibility of columns in Grid. Please refer the below documentation and online sample link,