i have use below the table
ID PO NAME QTY
----- ----------------- -------------------- -------
1 10 Product1
2 12 Product2
3 11 Product3
4 13 Product4
5 16 Product5
6 15 Product6and below the code use for load data to datagridview,
public static string connection = "Provider=OraOLEDB.Oracle.1;Data Source=xe;Password=654321;User ID=abc;unicode=true";
OleDbConnection con = new OleDbConnection(connection);
private void Form1_Load(object sender, EventArgs e)
{
dataload();
}
private void dataload()
{
OleDbDataAdapter adp = new OleDbDataAdapter("Select id,name,qty from tblProduct", con);
DataTable dt = new DataTable();
adp.Fill(dt);
dataGridView1.DataSource = dt;
dataGridView1.Columns[0].Width = 50;
dataGridView1.Columns[1].Width = 200;
}how can i update qty on tblprouduct from data grid view where PO number form textbox1.Tex and name = product1 or Product 2 ?
i want to delete from here using mouse click
how can possible?