Click here to Skip to main content
15,569,696 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to populate data that I get from database to datagrid? I don't want to use databinding as some data that I retrieve from database will be combine to make a statement. Any link for this? I have search and most are showing with binding the data to datatable..

Any help will be appreciate
Posted
Comments
George Jonsson 31-Dec-14 4:00am    
Can't you join your SQL query into one DataTable and then use it to bind to the DataGrid?
Using data binding is the natural way.
Luiey Ichigo 31-Dec-14 4:04am    
Because I don't have much experience on manipulate using binding. That's bad for me..
Maciej Los 2-Jan-15 8:45am    
Don't be afraid to use binding...
Luiey Ichigo 4-Jan-15 21:58pm    
Reason why I don't want to use binding is that the data from database is separate in many column for backend management app. But at front, I will conclude let's say 5 column to be 1 statement which mean at datagrid, it will be shown as 1 column. That's what I'm thinking. Any help?

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