Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a gridview and have bound it with a table.
Now I have added a column in this gridview dynamically with another table.
How can I do it?

Thanks in Advance.
Posted
Updated 13-Dec-10 18:58pm
v2

1 solution

You can create a new temporary datatable with the required columns and bind it with the gridview. Rest things will be take care by Gridview itself
 
Share this answer
 
Comments
Mohd Wasif 14-Dec-10 1:15am    
No No ,Actually I am retrieving data for reporting and from 2 table
1 query is a simple one but in 2 query i have used aggregate function that's the problem.
Brij 14-Dec-10 1:54am    
I think you got me wrong. I mean after retrieving data from DB, make a ADO.NET datatable with required columns and update the data in that table. There are various ways to do this. Let me know, if your query still exists

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