Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Filtering Not Work on WebDataGrid when data comes from ServerSide Binding
posted

 

This is my code of Binding My Data To WebDatagrid using linq.

 private void RefreshGrid()

        {

            var joined = from wh in a.AsEnumerable()

                         join wh2 in b.AsEnumerable() on Convert.ToInt32(wh["Warehouse_Idx"]) equals Convert.ToInt32(wh2["WarehouseId"])

                         select new

                                    {

                                        WarehouseId = wh2["Id"],

                                        Warehouse_Name = wh["Name"],

                                        CreatedBy = wh2["CreatedBy"],

                                        CreatedDT = wh2["CreatedDT"]

                                    };

            wbWarehouse.DataSource = joined;

            wbWarehouse.DataBind();

        }

 

 

Now when I Add filtering in my DataGrid Behavior it always just return Empty.

How can we Enable Filter even if Datagrid is binded through Server Side Code?