This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid Inheritance (Event Problem)

0 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 02 Jun 2009, 01:32 PM
I'm in the process of converting a VB.NET Class Library to C#. So far so good, except for the RadGrid events on the custom grid. In VB, I simply had the following:

Private Sub Me_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles Me.ItemDataBound
        '  Do stuff here
End If

in C#:

        protected void Me_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            // Do stuff here
        }

In the C# version, the events never get fired. What am I missing?

Thanks,
Adam

Update:

Just had to hook-up the events in the constructor... for anyone else who has this question...

public Grid()
{
     this.ItemDataBound += MeItemDataBound;
}

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Share this question
or