Last Rows Retreived by a DataAdapter

  • Thread starter Thread starter John Bonds
  • Start date Start date
J

John Bonds

Is there a way to get just the last DataRows retreived by a data adapter?

Thanks,

John
 
I'm not sure the your implementation, but you can reference it by
myDataTable.Rows(myDataTable.Rows.Count-1)

This will reference the last row of a Datatable, so you'd need to reference
the Table specifically returned by your specific data adapter.

If you are using a BindingManager/BindingContext you could set the
bmb.Position = bmb.Count-1

If neither of these get you what you want, let me know the context and
hopefully I can be more helpful.

HTH,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top