Handle Datagridview RowHeaderMouceDoubleClick Event in DataRepetor using VB.NET


  • Hi,

    I have used datagridview in datarepetor, it is populating perfect and displaying very nicely. But I wanted to display some other data in other form using datagrdiview cell value by clicking on row header double click.

    Can anyone help me on?

    Thanks !!

    Tuesday, January 10, 2012 12:54 PM


  • Hi Sudesh,
    Welcome to MSDN forums.
    According to your description, it seems that you would like to edit datagridview cell in datarepeater when row header was double click. So you could add your code in the RowHeaderMouceDoubleClick event. Then you could set the value of the datagridview cell like this:
        Private Sub DataGridView1_RowHeaderMouseDoubleClick(ByVal sender As System.ObjectByVal e AsSystem.Windows.Forms.DataGridViewCellMouseEventArgsHandles DataGridView1.RowHeaderMouseDoubleClick
            CType(Me.DataRepeater1.CurrentItem.Controls("DataGridview1"),DataGridView).Rows(0).Cells(0).Value = ""
    End Sub
    I hope this will be helpful and if I misunderstood anything please feel free and let me know.
    Best regards,

    Shanks Zen
    MSDN Community Support | Feedback to us
    Friday, January 13, 2012 12:27 PM