S
Sunny722
Guest
Hello, I am working on database recently, I read data from database and fill in the datagridview. when I want to delete one row selected, anytime I run, two rows will be deleted. Could somebody help me?
my code is as following.
if (dgvRecipeData.SelectedRows.Count > 0)
{
dgvRecipeData.Rows.RemoveAt(dgvRecipeData.SelectedRows[0].Index);
}
Continue reading...
my code is as following.
if (dgvRecipeData.SelectedRows.Count > 0)
{
dgvRecipeData.Rows.RemoveAt(dgvRecipeData.SelectedRows[0].Index);
}
Continue reading...