Hello, I want to show thousand of records in datagridview within a second, i tried some code but it takes some minutes to show data in datagriview.
so help me how can i do this...
sample code below -
- public void BindData()
- {
- OleDbCommand cmd = new OleDbCommand("Select LC,Name from Ledger order by LC DESC", con);
- OleDbDataAdapter da = new OleDbDataAdapter(cmd);
- DataTable dt = new DataTable();
- da.Fill(dt);
- dataGridView1.DataSource = dt;
- }