this is my code , i want to this from design side not code behind
share the code to do this
thanks
<
telerik:RadGrid
ID
=
"RadGridEmployeeCost"
runat
=
"server"
AllowSorting
=
"True"
AllowPaging
=
"true"
AllowFilteringByColumn
=
"true"
CellSpacing
=
"0"
GridLines
=
"None"
HeaderStyle-Font-Bold
=
"true"
Skin
=
"Web20"
OnNeedDataSource
=
"RadGridEmployeeCost_NeedDataSource"
ShowGroupPanel
=
"true"
OnColumnCreated
=
"RadGridEmployeeCost_ColumnCreated"
>
<
ClientSettings
AllowDragToGroup
=
"True"
/>
</
telerik:RadGrid
>
protected void RadGridEmployeeCost_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
ObjCon.Open();
SqlCommand ObjCmd = new SqlCommand("SELECT name,address,TelPhone,EmailId,Qualification FROM WorkSummary", ObjCon);
ObjCmd.ExecuteNonQuery();
SqlDataAdapter ObjDa = new SqlDataAdapter(ObjCmd);
DataSet ds = new DataSet();
ObjDa.Fill(ds);
RadGridEmployeeCost.DataSource = ds;
}
}
protected void RadGridEmployeeCost_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if ((e.Column is GridBoundColumn && e.Column.UniqueName == "TelPhone" || e.Column.UniqueName == "EmailId" || e.Column.UniqueName == "Qualification"))
{
GridBoundColumn column = e.Column as GridBoundColumn;
column.AllowFiltering = false;
}
}
thanks