Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Extending datagrid with new/insert button

Reply
Thread Tools

Extending datagrid with new/insert button

 
 
Manuel Trunk
Guest
Posts: n/a
 
      11-17-2004
Hi,
I try to develop a server control which inherits from DataGrid and adds a
new/insert button to this grid. This is no problem, but I can't get the event
fired from this new button.
I tried everything, implementing INamingContainer and IPostBackDataHandler,
added the button to the footer of the datagrid and so on. Nothing works.
Anyone who can help me?

Kind regrads,
Manuel
 
Reply With Quote
 
 
 
 
Thiruppathi S
Guest
Posts: n/a
 
      11-18-2004
Hi Manuel,

Just add a footer template with required fields and add a button with
command name
when u click the button the datagrid itemcommand fires.u can capture this
and do the rest.

i hop this will help u.

Rgds,
Thiruppathi S
"Manuel Trunk" <Manuel > wrote in message
news:7B8CF6D1-B601-4ACC-99F1-...
> Hi,
> I try to develop a server control which inherits from DataGrid and adds a
> new/insert button to this grid. This is no problem, but I can't get the

event
> fired from this new button.
> I tried everything, implementing INamingContainer and

IPostBackDataHandler,
> added the button to the footer of the datagrid and so on. Nothing works.
> Anyone who can help me?
>
> Kind regrads,
> Manuel



 
Reply With Quote
 
 
 
 
Manuel Trunk
Guest
Posts: n/a
 
      11-18-2004
> Just add a footer template with required fields and add a button with
> command name


Hi Thiruppathi,

the problem is that I don't have any template within a server control
inherited from datagrid.

Best regards,
Manuel
 
Reply With Quote
 
Thiruppathi S
Guest
Posts: n/a
 
      11-18-2004
Hi Manuel,

Create a ITemplate column and add this on datagrid on databinding
for this you can see dynamically creating template column in datagrid in
google

Rgds,
Thiruppathi S

"Manuel Trunk" <> wrote in message
news:BF1E3261-EC6F-45D2-AB4C-...
> > Just add a footer template with required fields and add a button with
> > command name

>
> Hi Thiruppathi,
>
> the problem is that I don't have any template within a server control
> inherited from datagrid.
>
> Best regards,
> Manuel



 
Reply With Quote
 
Manuel Trunk
Guest
Posts: n/a
 
      11-18-2004
Hi Thiruppathi,

this could work, but I want to place the button below the datagrid and later
I want to add an "editForm" which the user of the control specifies. Found no
working solution for that until now.

Regards,
Manuel

"Thiruppathi S" wrote:

> Hi Manuel,
>
> Create a ITemplate column and add this on datagrid on databinding
> for this you can see dynamically creating template column in datagrid in
> google
>
> Rgds,
> Thiruppathi S
>
> "Manuel Trunk" <> wrote in message
> news:BF1E3261-EC6F-45D2-AB4C-...
> > > Just add a footer template with required fields and add a button with
> > > command name

> >
> > Hi Thiruppathi,
> >
> > the problem is that I don't have any template within a server control
> > inherited from datagrid.
> >
> > Best regards,
> > Manuel

>
>
>

 
Reply With Quote
 
Thiruppathi S
Guest
Posts: n/a
 
      11-18-2004
hi,

where u want to add the editform

"Manuel Trunk" <> wrote in message
news:4D855A75-ACEE-4EED-95A4-...
> Hi Thiruppathi,
>
> this could work, but I want to place the button below the datagrid and

later
> I want to add an "editForm" which the user of the control specifies. Found

no
> working solution for that until now.
>
> Regards,
> Manuel
>
> "Thiruppathi S" wrote:
>
> > Hi Manuel,
> >
> > Create a ITemplate column and add this on datagrid on databinding
> > for this you can see dynamically creating template column in datagrid in
> > google
> >
> > Rgds,
> > Thiruppathi S
> >
> > "Manuel Trunk" <> wrote in message
> > news:BF1E3261-EC6F-45D2-AB4C-...
> > > > Just add a footer template with required fields and add a button

with
> > > > command name
> > >
> > > Hi Thiruppathi,
> > >
> > > the problem is that I don't have any template within a server control
> > > inherited from datagrid.
> > >
> > > Best regards,
> > > Manuel

> >
> >
> >



 
Reply With Quote
 
Manuel Trunk
Guest
Posts: n/a
 
      11-18-2004
"Thiruppathi S" wrote:
> hi,
>
> where u want to add the editform
>


hi,
the editform should be below the datagrid and the new button...
 
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
Compaq Pesario c500 laptop . extending the power button me Computer Support 14 02-14-2010 09:31 PM
DataGrid extending with new/insert button Manuel Trunk ASP .Net Web Controls 1 11-18-2004 04:09 PM
extending datagrid - designer won't work Jon Paugh ASP .Net 3 07-17-2004 01:53 AM
Newbie:Extending an Image Button MattC ASP .Net Web Controls 3 04-28-2004 02:28 PM
Re: Extending DataGrid Francis Shanahan ASP .Net 0 08-26-2003 08:32 PM



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