Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
i have a datagridview named dataGridView1, and a class named StoredProc which i keep my mssql connections and procedures.

i populate dataGridView1 :
StoredProc sp = new StoredProc();
dataGridView1.DataSource=sp.CallData(productID);
CallData is a function that returns DataTable.
but, as expected, i have lots of data to bind, and wait them all to show in dataGridView1.
i want to learn the Virtual Mode. i read some articles about Virtual Mode but couldn't succeed it in my code. don't know what to write in CellValueNeeded event or etc.

thanks for the answers from now. and thanks to CodeProject, gives me the chance of solving my problems.
Nice Day.
Posted 20-Feb-13 21:01pm
Edited 20-Feb-13 21:02pm
v2
Comments
Azziet at 21-Feb-13 2:10am
   
i think you can not do this with general .net controls.. you can do this using telerik controls..]

check this ..
http://www.telerik.com/help/winforms/gridview-virtual-mode.html
ahmetkocadogan at 21-Feb-13 3:44am
   
the autors of the articles about virtualmode of datagrid that i read use general controls. i don't know but i think this can be done with general controls. or, maybe you are right.

just waiting answers from helpful codemasters :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 223
1 Sascha Lefévre 175
2 Abhinav S 170
3 Richard Deeming 155
4 CHill60 150
0 Sergey Alexandrovich Kryukov 7,156
1 OriginalGriff 6,410
2 Maciej Los 2,877
3 Abhinav S 2,732
4 Peter Leow 2,694


Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100