Click here to Skip to main content
15,914,924 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I need Gridview which is used for all the webpages, it has dropdownlist pages and next previous button for go next and previous page with editbutton and delete button. How do we create as usercontrol. Can we bind the pages dropdownlist within usercontrol. How to set automatically go next and previous that button clicks. Anybody have an idea please suggest me. Thank u..
Posted
Comments
sri senthil kumar 3-May-13 8:12am    
It can be, create a user control which has some properties for accepting datasource and other required values you want to pass like page's dropdown list etc., Load the gridview in that write the logics you want to perform. Thts all.
UshaCbe 4-May-13 3:08am    
thank u for ur comment. But I can't got it. Can u explanin me, or anyother examples?
sri senthil kumar 4-May-13 13:03pm    
Just customize the gridview control and load them into user control with datasource for gridview hard coded. Once that is working fine create some properties for user control and set it from page.This one of the article I made but this not the exact one. It gives you an idea on how to set datasource for repeater with user control property. http://www.codeproject.com/Tips/548924/Custom-Treeview

Check this and reply to my comment if you have any queries.

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