trying to get Key Value

2 posts, 0 answers
  1. Brett
    Brett avatar
    184 posts
    Member since:
    Jun 2006

    Posted 06 Mar 2008 Link to this post

    I am tryign to migrate from RadGrid for to RadGrid Prometheus and having an issue.  I used to get Key Values like this

    Protected Sub rgPartners_EditCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)

    'Get the value from the Grid column

    Dim key As Integer = Convert.ToInt32(Me.rgPartners.MasterTableView.Items(e.Item.ItemIndex)("PartnerID").Text)


    "editKey") = key



    End Sub

    But this prodcues an error (below) in prometheus version.  How do I got about this in the new grid?

    Compiler Error Message: BC30408: Method 'Protected Sub rgPartners_EditCommand(source As Object, e As Telerik.WebControls.GridCommandEventArgs)' does not have the same signature as delegate 'Delegate Sub GridCommandEventHandler(source As Object, e As Telerik.Web.UI.GridCommandEventArgs)'.

    Can anybody shed some light on this?

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 07 Mar 2008 Link to this post

    Hello bslaght,

    Telerik.WebControls.GridCommandEventArgs should be Telerik.Web.UI.GridCommandEventArgs for the "Prometheus" grid.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top