Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello boss I have one question please help me.

Is it possible to display different tables in one grid view by selecting the table name through drop down by enable the auto generates column.

But I need to insert the the edit, delete and update button dynamically through coding to the grid.

How can I achieve this?

Please help me.
Posted
Updated 21-Dec-12 0:34am
v2

1 solution

Yes you can. Do it in the SelectedIndex changed event.

Create a method that will build your grid (that takes a DataSet/DataTable as a parameter). Get the data and call the build grid method with the relevant parameter on SelectedIndex_Changed event of your dropdown.
 
Share this answer
 
Comments
Member 9644686 24-Dec-12 6:37am    
boss i did this but i want to get the editing value of the editing row how can i do will you suggest or send me some snippets of this.....

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