Hi vikky423,
private void btndelete_Click(object sender, RoutedEventArgs e)
{
for(int nRow=0;nRow<=ds.Tables[0].Rows.Count;nRow++)
{
if(ds.Tables[0].Rows[0]["Id"].ToString().Equals(txtbox.Text))
{
ds.Tables[0].Rows[nRow].Delete();
ds.Tables[0].AcceptChanges();
--nRow;
break;
}
}
}
Here Id --> is your Column Name
<= --> use only less than not less than equal
Cheers :)