Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1997

Deletimg row from datagridview

$
0
0
Hi,

I have got a delete button on my DataGridView and when I press it, I want it to delete the row selected, I have currently got the code below, but when I press it nothing happens, can anybody tell me why?

thanks

Code:
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string queryString = "SELECT AccountID, Title, FirstName, LastName, AccountType, Username, UserPass FROM AddAccount";
int currentRow = int.Parse(e.RowIndex.ToString());

{
string...
Deletimg row from datagridview

Viewing all articles
Browse latest Browse all 1997

Trending Articles