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
Post a Comment