Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to Bind Datagrid with paging to a Datatable with all the records.
Posted
Comments
S.P.Tiwari 18-May-12 5:37am    
you writing code in cs part of page are .aspx..?

 
Share this answer
 
Comments
Prasad_Kulkarni 23-May-12 0:41am    
My 5!
P.Salini 23-May-12 4:50am    
Thank you Prasad.
VB
dim dt as new datatable
dt=ctype(Datagrid .datasource,datatable)
 
Share this answer
 
C#
datagrid1.Datasource = dt;
datagrid1.Bind();
 
Share this answer
 
v2
hello you can refer this url..............................
[^]
 
Share this answer
 
Hello friend

You can refer on this url.........................[^]
 
Share this answer
 
For binding you need to set datasource of datagrid to datatable.
 
Share this answer
 
I recommend use code, and another is to manually bind the data table, data updates from time to time to refresh, not recommended
 
Share this answer
 

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