ComponentOne VSFlexGrid 8.0
EditCell Method

Activates edit mode.

Syntax

[form!]VSFlexGrid.EditCell

Remarks

If the Editable property is set to a non-zero value, the control goes into editing mode automatically when the user presses the edit key (F2), the space bar, or any printable character. You may use the EditCell method to force the control into cell-editing mode.

Note that EditCell will force the control into editing mode even if the Editable property is set to False. You may even use it to allow editing of fixed cells.

A typical use for this method is shown in the example below. The code traps the right mouse button to initiate editing.

    Sub fg_MouseDown(Button As Integer, Shift As Integer, X!, Y!)

        If Button = vbRightButton Then

            fg.Select fg.MouseRow, fg.MouseCol

            fg.EditCell

        End If

    End Sub

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback