GridView
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
HI, This the code:- foreach(GridViewRow row in GridView1.Rows) { if(row.RowType==DataControlRowType.DataRow) { //code here } } I didn't understand this line of code: if(row.RowType==DataControlRowType.DataRow) Can anyone help???
-
HI, This the code:- foreach(GridViewRow row in GridView1.Rows) { if(row.RowType==DataControlRowType.DataRow) { //code here } } I didn't understand this line of code: if(row.RowType==DataControlRowType.DataRow) Can anyone help???
the DataControlRowType can be the following: DataRow EmptyDataRow Footer Header Pager Separator so if the row is a "DataRow" then it is a row with data