Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I have two gridview and i want to add a column of first gridview into second then what code i use.
please help me
Posted
Comments
Lakxman 16-Mar-12 7:55am    
Can you elaborate your query? Is that like you want to add a cell value of grid 1 with cell value of grid 2 and show it somewhere?

1 solution

Hi Ravi

I want to know how do you want to add the column
1)On data table level
2)Or on the grid view level

If you want to add the column at datatable mathod then you can use

"datatableMain.Merge(TempDataTable);"

Hope it will help you

Regards,
Deepak
 
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