More in this section
Forums / Developing with Sitefinity / What do I use for

What do I use for

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Jerald Ferguson
    Jerald Ferguson avatar
    2 posts
    Registered:
    16 Dec 2009
    02 Aug 2010
    Link to this post
    Hello all.

    This is my first attempt to use the RadGrid.  In this RadGrid I'm using a telerik:GridButtonColumn, but I'm having some trouble with the code behind.  Typically when using the asp:CommandField I can use the following for my response.redirect:  

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
            Response.Redirect("EmailForm.aspx?id=" & GridView1.SelectedDataKey.Value.ToString)
        End Sub

    Since I'm using the RadGrid, I changed the code to the following:

    Partial Class contactGrid2
        Inherits System.Web.UI.UserControl
        Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged
            Response.Redirect("EmailForm.aspx?id=" & RadGrid1.SelectedDataKey.Value.ToString)
        End Sub
    End Class


    However, I get an error stating that "SelectedDataKey is not a member of Telerik.Web.UI.RadGrid". 

    What do I use instead of 'SelectedDataKey' ?

    Any help is greatly appreciated.

    Thanks,
    Jerald


  2. Jerald Ferguson
    Jerald Ferguson avatar
    2 posts
    Registered:
    16 Dec 2009
    02 Aug 2010
    Link to this post
    Nevermind.  I figured it out...I was way off base with this one.



2 posts, 0 answered