c# - GridViewRow not looping through to the last data row when using multiple headers in GridView -



c# - GridViewRow not looping through to the last data row when using multiple headers in GridView -

i have gridview linked datatable in asp.net code, have added 2 header rows in rowdatabound event this:

gvmain.controls[0].controls.addat(0, row2); gvmain.controls[0].controls.addat(0, row1);

now, when loop through gridview on button click event using this:

foreach (gridviewrow gvr in gvmain.rows) { }

i don't lastly 2 rows, loop finishes before lastly 2 info rows. think because counting 2 header rows , ignoring lastly 2 info rows.

how can lastly 2 rows of gridview in loop?

c# asp.net gridview gridviewrow

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -