By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Returning data from a datagrid

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
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
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

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.