OleDbConnection con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:/Srihari/OrionSystem.accdb"); OleDbCommand da = new OleDbCommand("select * from invoice_top where invoice_number=" + textEdit5.Text, con); con.Open(); OleDbDataReader reader = da.ExecuteReader(); while (reader.Read()) { textEdit12.Text = reader.GetValue(1).ToString(); textEdit13.Text = reader.GetValue(2).ToString(); textEdit4.Text = reader.GetString(3); dateEdit1.Text = reader.GetValue(8).ToString(); textEdit1.Text = reader.GetValue(5).ToString(); textEdit2.Text = reader.GetValue(6).ToString(); textEdit3.Text = reader.GetValue(7).ToString(); checkEdit1.Checked = reader.GetBoolean(4); } con.Close();
gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[2], reader1.GetString(2));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)