Hello
I have use Gridview and also inner grid bind in maingrid
When I am PageIndexchanging event fire in main grid is correctly working , but when I am use in inner grid page indexchanging event fired then it not working properly, I have find datakey value in inner grid page indexchanging event ,but not getting . can you have any idea ?
GridView PageIndexChanging Event How To Get DataKey Value
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jyosana Patel48 reputationPosted Jun 27, 2013, 9:57 PM EDT
GridView gvwChild = ((GridView)sender);
GridViewRow gvRowParent = ((GridView)sender).Parent.Parent as GridViewRow;
gvwChild.PageIndex = e.NewPageIndex;
int id = Convert.ToInt32(gvTaskActivity.DataKeys[gvRowParent.RowIndex].Value);
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 27, 2013, 10:07 PM EDT
http://aspsnippets.com/Articles/Collapsible-Nested-GridView-with-Paging-using-ASPNet.aspx
http://www.codeproject.com/Questions/294777/Gridview-nested-on-another-gridview-getting-the-da
selva kumarRank #2,987 · 483 reputationPosted Jun 28, 2013, 12:57 AM EDT
http://forums.asp.net/t/1895665.aspx/1
mark as answered if it is helpful,,,,,,,,,,,........