Hi,
I have a strange problem.
I'm using asp.net GridView in a Usercontrol inside Updatepanel with standard CRUD operations.
When I click on Edit to Edit a row, The gridview datasource becomes null
if (!IsPostBack)
{
FillGrid();
}
because it doesn't go into that line to FillGrid();
This problem vanished if remove the postback check. but then when I tried to Update the Row, it doesn't go into row_updating or any other event apart from page_load.
According to my understanding It loses all its event binding with EditItemTempelate/
Please help. I'm badly stuck on this problem
What I have tried:
1-Enable/Disabled ViewState
2-Binding separate events for Update Click.
3-Binding click event in row_editing method
a bunch of other solutions