Click here to Skip to main content
15,895,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a datagridview named dataGridView1, and a class named StoredProc which i keep my mssql connections and procedures.

i populate dataGridView1 :
C#
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
Updated 20-Feb-13 20:02pm
v2
Comments
Azziet 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900