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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -