get a value of a column of the last row

  • Thread starter Thread starter no[one]
  • Start date Start date
N

no[one]

Guest

i tried this code but it gives me error

textbox1.text = ds.Tables(0)(ds.Tables(2).Rows.Count - 1)("Amount")

what i want to do is to get the value of a column in the last row of a datagridview

ex. ID Name amount

1 Bag 4

2 jacket 5

i want to put the "5" in my textbox


Continue reading...
 
Back
Top