I have a GridView with a Checkbox Column, normal Text Colums and one Richtext Column.
Wenn the checkbox in one row is checked, I want to select and copy all formatted text from the Richtext cell in that row.
That does not work because the editingControl is Nothing.
When I use manual Clicks, I need one click to enter the cell, another one to start Edit Mode and a double click to select the Richtext.
My favorite version wold be, to check a checkbox with the mouse and select and copy the formatted richtext via code.
Private Sub LogReview_CheckBoxCellClick(sender As Object, e As EventArgs) Handles masterDetail.DoubleClick
Dim strLineNr As String
Dim strLine As String
masterDetail.CurrentRow.Cells(6).Selected = True
editingControlRTF.SelectAll()
strLine = editingControlRTF.SelectedText
What I have tried:
I have tried diferent handles
Handles masterDetail.DoubleClick, masterDetail.CurrentCellDirtyStateChanged, masterDetail.CellContentClick
The result is as described above.