private void ExpressMoney_Load(object sender, EventArgs e) { btnDelete.Enabled = false; btnUpdate.Enabled = false; con.Open(); da = new SqlDataAdapter("select * from tblExpressMoney where emDelStatus='0'", con); SqlCommandBuilder builder = new SqlCommandBuilder(da); ds = new DataSet(); da.Fill(ds, "tblExpressMoney"); dataGridView1.DataSource = ds.Tables["tblExpressMoney"]; dataGridView1.Columns["emID"].HeaderText = "ID"; dataGridView1.Columns["emNameOfCustomer"].HeaderText = "Name"; dataGridView1.Columns["emCustomerNo"].HeaderText = "Mobile"; dataGridView1.Columns["emTransactionNo"].HeaderText = "Transaction No"; dataGridView1.Columns["emAmtOfTransaction"].HeaderText = "Purchase"; dataGridView1.Columns["emTransfererAmtPaid"].HeaderText = "Sale"; dataGridView1.Columns["emAmountOfProfit"].HeaderText = "Profit"; dataGridView1.Columns["emDate"].HeaderText = "Date"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)