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?
Hello NewbApps,
It has been some time since your post but in case that you still need assistance I will be happy to help.
I have been looking into the behavior that you have described but I was not able to reproduce it. I suggest you to make sure you re-bind the grid to the data source on every postback.
If you have any other questions please feel free to contact me.
Thanks Sir for Updating,... I already know to to do it by calling the binding method on data grid view filtering and filtered event.