1
Answer

how to find the Lastrow in datattable forloop ?

Photo of Karthik K

Karthik K

1d
57
1

Hi All ,

   How to find the Last row of the Table row , to validate something on that last row .

 can any one suggest with sample code . 

 

 for (int i = 0; i < DT.Rows.Count; i++)
 {
     DataRow dr = DT.Rows[i];
     RBranchid = dr["Branchid"].ToString();

}

 

Thanks in advance 

Karthik.K 

Answers (1)