Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
To bind data to a data bound control, like gridview there are 2 ways

1. Without using data-source controls
2. Using data-source controls".

Which is best method? which one is using in real time projects?
Let me know answer.

Thank you
Reddy Ankireddy
Bangalore.
Posted
Comments
Raul Iloc 19-Dec-14 5:48am    
Did you check my solution?

1 solution

1.The using of DataSource or not in real time project depends on the design constraints that may exist.

2.In my opinion the best way is by using DataSource, because in this way you no not need extra coding for integrating with the GridView control, so you will gain time. You could find an example of using in this way in my next article: Advanced ASPX GridView Pagination and Data Entities[^]

3.If you are interesting in finding details about the 2nd possibility (not using DataSource control), here is a good article: http://www.binaryintellect.net/articles/66852121-52f5-40b4-a077-eb464fa1b339.aspx[^]
 
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