Click here to Skip to main content
15,910,878 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
how to get row index of first gridview on second gridview rowindex change?
Posted
Updated 21-Dec-13 0:42am
v3
Comments
Karthik_Mahalingam 20-Dec-13 2:00am    
please add more info to your question..
JoCodes 20-Dec-13 2:30am    
Not Clear...

Hi Use it:
C#
protected void gridView2_RowIndexChanged(Object sender, GridViewRowEventArgs e)
{
    if (gridView1.Row.RowType == DataControlRowType.DataRow)
    {
        int index = gridView1.Row.RowIndex;
    }
}

Yours Farhad.
 
Share this answer
 
C#
protected void gridView2_RowIndexChanged(Object sender, GridViewRowEventArgs e)
{
    gridView1.Ros[0].RowIndex;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900