PROBLEM WITH DOUBLE CLICK RADGRIDVIEW

5 posts, 1 answers
  1. Asesoria
    Asesoria avatar
    3 posts
    Member since:
    Jul 2015

    Posted 26 Jul 2015 Link to this post

    I have a form (see picture "form") I have a radgridview, when I want to double click on a row shows all the information in the upper controls, use the event doule click the radgridview (see picture "double click event" and "function1"). everything works fine up here.

    But when I want to filter the information of radgridview (see picture "FILTERING RADGRIDVIEW"), and I double-click a row and does nothing, does not show the information in the controls.

    I hope you can help me. I use visual studio 2012 vb.net
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 27 Jul 2015 Link to this post

    Hello Asesoria,

    Thank you for writing.

    It will be easier if you use the CellDoubleClick event, where in the event arguments you can get the clicked cell Row.

    Give this approach a try and let me know how it works for you.

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Asesoria
    Asesoria avatar
    3 posts
    Member since:
    Jul 2015

    Posted 27 Jul 2015 in reply to Stefan Link to this post

    Thanks for your reply,

    Change the doubleClick event by CellDoubleclik but does not work as I need.

    I inserted three rows to appear in the radgridview, the radgridview filtered fine but when I double-click does not display the fields. only works if I want to look through the filter the first row of data.
  5. Answer
    Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 28 Jul 2015 Link to this post

    I meant to take the clicked row from the event arguments:
    Private Sub RadGridView1_CellDoubleClick(sender As Object, e As GridViewCellEventArgs)
        Dim clickedRow As GridViewRowInfo = e.Row
        TB_CODIGO.Text = clickedRow.Cells(0).Value.ToString()
             ….
    End Sub

    Let me know how this works for you.

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Asesoria
    Asesoria avatar
    3 posts
    Member since:
    Jul 2015

    Posted 28 Jul 2015 in reply to Stefan Link to this post

    Thanks for your reply,

    It worked perfect.

    Thanks for everything
Back to Top
UI for WinForms is Visual Studio 2017 Ready