I am having a gridview control and in the edit template of the gridview control., inside the edit template I need another grid view control., I am having a bound field in the second gridview which always binds to the selected value in the gridview 1 .,
So can somebody tell me in which event and all i have to do the databind for the gridview 2.
I am having an sqldatasource for the gridview2.
Thanks
i think the event you are looking for is “row_command” of your main gridview. in row_command event, you can get your value from the row that you selected, then find your gridview inside your row, and give its datasource.
i cant test it now, but should be something like this