why error on no overload
itcomes out error on
"no overload for method "deletequery" take 1 arguement..
private void button2_Click(object sender, EventArgs e)
{
if (listBox1.SelectedValue == null)
{
MessageBox.Show("Empty, Nothing To Delete :)", "Delete_Contact");
}
else
{
studentTableAdapter1.DeleteQuery(int.Parse(listBox1.SelectedValue.ToString()));
MessageBox.Show("haha..deleted", "deleted name");
studentTableAdapter1.Fill(database1DataSet1.student);
}
}
[649 byte] By [
angelsRock] at [2007-11-20 11:49:29]

# 1 Re: why error on no overload
Did you already add the DeleteQuery in your TableAdapter?
Maybe you haven`t add it or you wrong in configure it.
saktya at 2007-11-9 11:37:11 >

# 2 Re: why error on no overload
thansk.. it is the query errorr...
by the way.. after i delete, add, update... all got changes... however... once i close the form... and execute again.. the data back to the original data again...
the tableadapter does not bring the value back to database.. how should i do that >??
# 3 Re: why error on no overload
thansk.. it is the query errorr...
by the way.. after i delete, add, update... all got changes... however... once i close the form... and execute again.. the data back to the original data again...
the tableadapter does not bring the value back to database.. how should i do that >??
# 4 Re: why error on no overload
If you use dataset you can use AcceptChanges method
yourDataSet.AcceptChanges();
saktya at 2007-11-9 11:40:05 >
