I have to bind the WebDataGrid on SelectedIndexChanged event of Dropdownlist from the Masterpage. After done a updating in the grid if try to change the value of combo in the dropdownlist to the bind the grid a error 'Requested Record cannot be found by key' is coming. I am using entity framework model to bind the grid.
Hi Shanthi Kasthuri,
I would suggest you to try clearing the datasource and calling the DataBind method when changing the selection of the combo:
WebDataGrid1.ClearDataSource();
WebDataGrid1.DataSource = DataSource1;
WebDataGrid1.DataBind();
Please let me know if this helps.
Hello Shanthi,
If you need any further assistance with the matter, please do not hesitate to ask.