Avoid erase Headers

Hi, My headers are with own text (not a,b,c,d ...) when i click on tone header and press erase key, the text disapear. i try to set it on reaonly, but failed to prevent this behavior. How can i dot that ? thanks

2 Replies

AD Administrator Syncfusion Team May 12, 2003 02:52 PM UTC

When the 1.6 version is released, setting the readonly will prevent you header text from being deleted. Me.gridControl1(0, 2).Text = "asd" Me.gridControl1(0, 2).ReadOnly = True If you need to handle this problem before you get teh 1.6 release, you can catch teh ClearingCells event, and cancel it by setting e.Handled = true if the e.rangeList contains your header cell.
    Private Sub gridControl1_ClearingCells(ByVal sender As Object, ByVal e As GridClearingCellsEventArgs) Handles gridControl1.ClearingCells
        If e.RangeList.AnyRangeIntersects(GridRangeInfo.Row(0)) Then
            e.Handled = True
        End If
    End Sub


AN Alexandre Nicholas May 12, 2003 03:50 PM UTC

This essential suite, is incredible thanks for this very good job bye

Loader.
Up arrow icon