Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataGrid inside WebCustom control

Reply
Thread Tools

DataGrid inside WebCustom control

 
 
Mircea Pleteriu
Guest
Posts: n/a
 
      06-23-2004
Hi,

I am implemention a composite web custom control.
The control only contains to 2 controls: a DataGrid and an ImageButton
control.

I create the child controls within CreateChildControls method of the web
custom control.
Within this method also I register the interest in the Click event of the
ImageButton and SortCommand event of the DataGrid.

Now I host the control within an ASPX page.
When the ImageButton is clicked the page is postbacked and its associated
event handler method within the custom controls is executed.

What I do not figure out is that the event hadler of the DataGrid's
SortCommand event is not fired when the user selectes an item on the grid.
The page is postbacked only.

Do you have any idea to have it fired?


 
Reply With Quote
 
 
 
 
Mircea Pleteriu
Guest
Posts: n/a
 
      06-23-2004
Sorry, it is about the SelectedIndexChanged event of the Datagrid and not
SortCommand.


"Mircea Pleteriu" <(E-Mail Removed)> wrote in message
news:%23$(E-Mail Removed)...
> Hi,
>
> I am implemention a composite web custom control.
> The control only contains to 2 controls: a DataGrid and an ImageButton
> control.
>
> I create the child controls within CreateChildControls method of the web
> custom control.
> Within this method also I register the interest in the Click event of the
> ImageButton and SortCommand event of the DataGrid.
>
> Now I host the control within an ASPX page.
> When the ImageButton is clicked the page is postbacked and its associated
> event handler method within the custom controls is executed.
>
> What I do not figure out is that the event hadler of the DataGrid's
> SortCommand event is not fired when the user selectes an item on the grid.
> The page is postbacked only.
>
> Do you have any idea to have it fired?
>
>



 
Reply With Quote
 
 
 
 
Omar T.
Guest
Posts: n/a
 
      06-24-2004
Have you implemented the interface INamingContainer ?

"Mircea Pleteriu" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Sorry, it is about the SelectedIndexChanged event of the Datagrid and not
> SortCommand.
>
>
> "Mircea Pleteriu" <(E-Mail Removed)> wrote in message
> news:%23$(E-Mail Removed)...
> > Hi,
> >
> > I am implemention a composite web custom control.
> > The control only contains to 2 controls: a DataGrid and an ImageButton
> > control.
> >
> > I create the child controls within CreateChildControls method of the web
> > custom control.
> > Within this method also I register the interest in the Click event of

the
> > ImageButton and SortCommand event of the DataGrid.
> >
> > Now I host the control within an ASPX page.
> > When the ImageButton is clicked the page is postbacked and its

associated
> > event handler method within the custom controls is executed.
> >
> > What I do not figure out is that the event hadler of the DataGrid's
> > SortCommand event is not fired when the user selectes an item on the

grid.
> > The page is postbacked only.
> >
> > Do you have any idea to have it fired?
> >
> >

>
>



 
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
not declared error- control inside a control inside a webform DC Gringo ASP .Net 4 12-17-2007 02:22 AM
Accessing USER CONTROL which is inside Masterpagethrough Another USER Control inside normal page. Kiran More ASP .Net Web Controls 2 11-14-2006 12:58 PM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
not declared error- control inside a control inside a webform DC Gringo ASP .Net Web Controls 3 09-14-2004 09:29 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry ASP .Net 0 03-01-2004 11:48 PM



Advertisments