Hi
I can't filter column on my radGrid
I can't filter column on my radGrid
<telerik:RadGrid runat="server" ID="grid" AllowPaging="true" AllowSorting="True" AllowFilteringByColumn="True" ShowStatusBar="true" AutoGenerateColumns="false" Visible="false"> <ClientSettings > <Selecting AllowRowSelect="True"/> <ClientEvents OnRowDblClick="OnRowDblClick" /> </ClientSettings> <PagerStyle Mode="NumericPages" Position="Bottom" /> <GroupingSettings CaseSensitive="false" /> <MasterTableView ShowHeadersWhenNoRecords="true" DataKeyNames="Name" ClientDataKeyNames="Name"> <Columns> <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name" DataType="System.String" AutoPostBackOnFilter="true" SortExpression="Name" > </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FirstName" UniqueName="FirstName" HeaderText="Firstname" DataType="System.String" AutoPostBackOnFilter="true" SortExpression="Firstname" > </telerik:GridBoundColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit"> </telerik:GridEditCommandColumn> </Columns> </MasterTableView> </telerik:RadGrid>protected void button_Click(object sender, EventArgs e) { DataTable dt; SqlConnection conn = new SqlConnection(); SqlCommand command = new SqlCommand("fillGrid", cn); command.CommandType = CommandType.StoredProcedure; SqlParameter p = new SqlParameter("@param", SqlDbType.NVarChar, 50); p.Value = var.Text; command.Parameters.Add(p); dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(cmd); try { conn.Open(); da.Fill(dt); grid.DataSource = dt; grid.DataBind(); } catch () { //... } finally { if (conn.State != ConnectionState.Closed) { conn.Close(); } } }