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 22.214.171.124with Visual Basic.NET
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