Thanks!! It works.
"Sonu Kapoor" <> wrote in message
news:EDC6A80E-7443-440D-86D1-...
> You need to add the handler in the Init. Where are you adding it?
>
> --
> Sonu Kapoor - [MCP]
> ASP.NET Moderator
> WebSite: http://www.Kapoorsolutions.com
> Blog: http://www.Kapoorsolutions.com/blog/
> ASP.NET News: http://www.Kapoorsolutions.com/reblogger/
>
>
> "bbernieb" wrote:
>
> > I created a DataGrid dynamically using a PlaceHolder; to sort the
DataGrid I
> > used the AddHandler statement ( AddHandler myDataGrid.SortCommand,
AddressOf
> > myEventHandler). It didn't work. The code never reached
"myEventHandler"
> > So, I tried using the AddHandler statement on a DataGrid that wasn't
created
> > dynamically. It did work. What could I be missing?
> >
> >
> >