Inherited datagrid does not sort with OnBubbleEvent
I have a custom datagrid that has a row of buttons in its header (it
serves as a toolbar).
I'm overriding the OnBubbleEvent to handle the clicks for these child
However, when I override the OnBubbleEvent, the grid does not sort or
page! Any ideas?
Re: Inherited datagrid does not sort with OnBubbleEvent
Did you call base.OnBubbleEvent (or in VB.NET MyBase.OnBubbleEvent)?
Moreover, you can check if the event was actually handled by the base class
implementation and execute your code only if it was not handled (not
recognized as sort, page, prev, next, select, delete, etc. command):
protected override bool OnBubbleEvent(object s, EventArgs e)
bool result = base.OnBubbleEvent(s, e);
// the event was not for you - it was handled by the
// System.Web.UI.WebControls.DataGrid implementation
// ok, it's you now:
// TODO: Your code
// mark that the event was handled by you:
result = true;
"Pat" <email@example.com> wrote in message
> Hi all:
> I have a custom datagrid that has a row of buttons in its header (it
> serves as a toolbar).
> I'm overriding the OnBubbleEvent to handle the clicks for these child
> However, when I override the OnBubbleEvent, the grid does not sort or
> page! Any ideas?
|All times are GMT. The time now is 04:37 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.