Returning data from a datagrid

  • Thread starter Thread starter Arch Stanton
  • Start date Start date
A

Arch Stanton

Wassup guys/gals.

I'm really new to VB *cringe*, and i'm tryna to easily,
expeditiously return a row(that i double click) from a
data grid populated with data from an access database.

what's the simplest way to do this?

and if i wanted to update it later on?

Thanks.

Arch
 
Hi Arch,

You have to populate the datagrid from a datatable (a part of the dataset)
and bind it using the datasource.
All editing can be done from the datagrid except deleting a row from the
datatable.

A sample to delete a row from the dataset is
\\\
Private Sub btndel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btndel.Click
dataset1.Tables(0).Rows(datagrid1.CurrentRowIndex).Delete()
End Sub
///
I hope this helps?

Cor
 
Back
Top