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;
- }
Mageshwaran RPosted Nov 23, 2019, 12:43 PM
Amit GuptaPosted Jul 6, 2019, 1:16 PM
Rajanikant HawaldarPosted Jul 6, 2019, 5:46 AM
Rajanikant HawaldarPosted Jul 6, 2019, 5:44 AM
Rajanikant HawaldarPosted Jul 6, 2019, 5:43 AM
Željko PerićPosted Jul 6, 2019, 3:01 AM
In the Layout section there are two options that directly influence on the execution speed of "Fill" and "Show" methods of the DataGridView. See image:
I hope that this would lead You to the solution of Your problem.