Hi Philip,
If you want to remove column header during a paste in a grid, you will have to handle this your self. One way is to subscribe to the ClipboardPaste and copy the column's data without column header. Here is a code snippet to show this.
Private Sub grdCB_EPA_ClipboardPaste(ByVal sender As System.Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs) Handles grdCB_EPA.ClipboardPaste
Dim model As GridModel = sender
Dim cRangeList As GridRangeInfoList = New GridRangeInfoList()
For Each range As GridRangeInfo In CopyRangeList
If range.IsCols Then
cRangeList.Add(GridRangeInfo.Cells(model.Rows.HeaderCount + 1, range.Left, model.RowCount, range.Right))
Else
cRangeList.Add(range)
End If
Next
If Not cRangeList.Equals(GridRangeInfoList.Empty) Then
model.CutPaste.CopyTextToClipboard(cRangeList)
End If
End Sub
>>>>> Is there any kind of built in DIRTY switch in the grid that tells me when any cell in the entire grid has been changed?
Use the Model.Data.Modified property to detect the cell changes in a grid. You can reset the modifed flag by calling Data.ResetModified method.
Here is a modified sample.
ModifiedCopyPasteHeaders.zipLet me know if this helps.
Best Regards,
Haneef