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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Avoid erase Headers

Thread ID:





4421 May 12,2003 01:45 PM UTC May 12,2003 03:50 PM UTC WinForms 2
Tags: GridControl
Alexandre Nicholas
Asked On May 12, 2003 01:45 PM UTC

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 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

Alexandre Nicholas
Replied On May 12, 2003 03:50 PM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon