For this follow steps below
1. create a function BindGrid with input param tableName as string
2. In function BindGrid create a SqlDataAdapter with sql query "Select * from "+ tableName +""
3. Create a DataTable object and fill it with SqlDataAdapater
4. Pass it as DataSource to DataGrid
5. On SelectedIndexChange of DropDownList call function BindGrid and pass DropDownList.SelectedItem as param into it
For this u can set properties of grid to have update and delete buttons
Hope this help u. If still have some problem then pls ask.
---V V---
Vikas Vaidya
Please mark this post as Thank if u found it useful








Reply With Quote