BoldDeskWe are launching BoldDesk on Product Hunt soon.
Learn more & follow us.
Syncfusion Support isssue :
Getting the columns from the grid control , when we use datasoure and databind,
Or how to get the gird column from the syncfusion grid control
I need to make the column Read only and also need to use the datasoure and databind
Query: Getting the columns from the grid
control , when we use datasoure and databind,
Query: how to get the
gird column from the syncfusion grid control
Based on your query
we suspect that you want to get the column details from code behind. You can
achieve this requirement by using below code example,
EmployeesGrid2.DataSource = (DataTable)Session["SqlDataSource"];
var col =
In the above code example, we have got
the column details from grid model.
Please referred to the attached sample.
Query: I need to make the column Read only
Based on your query,
we suggest you disable the editing for particular column.
Please refer to the
below code example,
<ej:Column Field="OrderID" IsPrimaryKey="true"/>
<ej:Column Field="EmployeeID" AllowEditing="false" />
Please refer to the below API
If the above solution does not
meet your requirement, kindly share the below details which is helpful to
Kindly get back to us for further
If this post is
helpful, please consider Accepting it as the solution so that other members can
locate it more quickly.