Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > deriving from datagrid and adding other controls too

Reply
Thread Tools

deriving from datagrid and adding other controls too

 
 
Secret Squirrel
Guest
Posts: n/a
 
      02-24-2005
So what I want is to have a button that the user clicks that will cause
a datagrid to pop up in an iframe. I want the datagrid, the button, and
the iframe to all be part of the same control... ideally.

Any suggestions on how to do this and still be able to use templates to
setup the datagrid?

 
Reply With Quote
 
 
 
 
MasterGaurav
Guest
Posts: n/a
 
      02-25-2005
IFrame... will you provide the content for the IFrame or will it have
an SRC?

In anycase... extend the datagrid and override PrepareControlHierachy
to:

1. Add base-controls (use base.PrepareControlHierarchy())
2. Add your controls - button and IFrame



--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

 
Reply With Quote
 
 
 
 
Secret Squirrel
Guest
Posts: n/a
 
      02-25-2005
It would help to have more details please.

Where do I create the button and IFrame (in which overridden method?).

I am researching this on the groups and have come across a lot of
people trying to add controls to the datagrid but i have not seen a
nice way to do it yet.

Thanks,

Jon Paugh

 
Reply With Quote
 
MasterGaurav
Guest
Posts: n/a
 
      02-25-2005
I would suggest you to have a look at another response in the same
group at:

http://groups-beta.google.com/group/...b8392ab3de26a4

That should provide you all details.


--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deriving from built-in DataGrid control Axel Dahmen ASP .Net Web Controls 1 04-27-2006 07:18 AM
Adding Dynamic Controls to a DataGrid for use with the built in DataGrid Edit/Update functionality davidjgonzalez@gmail.com ASP .Net Datagrid Control 1 03-25-2006 06:55 AM
Deriving from MembershipUser and ASPNET Config Tool Mark Olbert ASP .Net 9 01-20-2006 07:59 AM
Deriving subclasses of std::exception and throw() Stefan Pantos C++ 2 05-20-2004 01:57 PM
deriving from BaseDataList to make a custom datagrid that is 100% client side... Fred Hirschfeld ASP .Net Building Controls 2 04-21-2004 06:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57