We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Row Copy

I’m working on a form that has several command buttons and a grid in which each row represents a different “Source”. How can I, when a button is clicked, select the whole row and copy the contents of that row to the clipboard so that I can then paste that information to a new row (source)? I only want the row highlighted when the user clicks the button, other wise I need to allow the user to edit individual cells normally. Be aware that each row contains two read only cells, two combobox cells and three currency cells. Also that I am using Essential Grid, Grid control, version 2.0.5.1with Visual Basic.NET

1 Reply

AD Administrator Syncfusion Team October 1, 2004 07:39 PM UTC

Here is a button handler that will select the current row and copy it to the clipboard.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim row As Integer = Me.GridControl1.CurrentCell.RowIndex

        Me.GridControl1.Selections.SelectRange(GridRangeInfo.Row(row), True)
        Me.GridControl1.CutPaste.Copy()

End Sub

Loader.
Live Chat Icon For mobile
Up arrow icon