Click here to Skip to main content
15,938,325 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I want to make web user control for gridview data control.
Is it possible or not?
If Possible then give me solution about this...

thanks... :((
Posted
Comments
R. Giskard Reventlov 18-Jun-10 8:22am    
Reason for my vote of 1
What have you already tried? No one will simply do your homework for you.

You can definitely add a grid view in the webuser control. Webcontrols are designed in similar way you write your Web Forms pages. Mainly web user control are used for the re-usability of UI component. To implement the user control you need to add a Web User Control (.ASCX) in your project. Once this is added design it as per your requirement (In your case drag a data grid and bind it to some source) and implement server side functionality similar to your webpages.


To use this webuser control just drag it to the page.
 
Share this answer
 
This question makes no sense. Of course it's possible to create web user controls that do anything you want. I don't see how a user control can be 'for' a gridview, though ?
 
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