How do i find a specific row in a dataset and update it using data from textboxes? I currently have the following code
This doesnt work, but Songs is the name of the dataset, song is the table, add is the name of the dialog box used and txtname and txtwords are the two textboxes i want to use to update the dataset.
Thankyou
VB.NET:
[color=#0000ff]
Private[/color] [color=#0000ff]Sub[/color] btnEdit_Click([color=#0000ff]ByVal[/color] sender [color=#0000ff]As[/color] System.Object, [color=#0000ff]ByVal[/color] e [color=#0000ff]As[/color] System.EventArgs) [color=#0000ff]Handles[/color] btnEdit.Click
Songs.song.LoadDataRow((add.txtName.Text, add.txtWords.Text), True)
[color=#0000ff]If[/color] add.ShowDialog = DialogResult.OK [color=#0000ff]Then[/color]
Hymns6.Hymn.LoadDataRow((add.txtName.Text, add.txtWords.Text), [color=#0000ff]True[/color])
[color=#0000ff]End[/color] [color=#0000ff]If[/color]
[color=#0000ff]End[/color] [color=#0000ff]Sub
[/color]
This doesnt work, but Songs is the name of the dataset, song is the table, add is the name of the dialog box used and txtname and txtwords are the two textboxes i want to use to update the dataset.
Thankyou
Last edited: