private void Form1_Load(object sender, EventArgs e) { cn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\Bill\\dbBill.accdb"); string query = "Select Sr,Desc,HSNCode,Qty,Rate,Qty*Rate as Amount from BillDetail"; cn.Open(); cmd = new OleDbCommand(query, cn); da = new OleDbDataAdapter(cmd); ds = new DataSet(); da.Fill(ds); cn.Close(); grdDetails.DataSource = ds; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)