Quote Originally Posted by sharpnet View Post
i wana use gridview on my page which i select the table name on dropdownlist then gridview show that table
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


Quote Originally Posted by sharpnet View Post
i wanna use delete and update buttons on gridview help me pls
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