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.
Unfortunately, activation email could not send to your email. Please try again.

Avoid erase Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

4421 May 12,2003 09:45 AM May 12,2003 11:50 AM Windows Forms 2
loading
Tags: GridControl
Alexandre Nicholas
Asked On May 12, 2003 09:45 AM

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

Administrator [Syncfusion]
Replied On May 12, 2003 10:52 AM

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

Alexandre Nicholas
Replied On May 12, 2003 11:50 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;