SftTree/OCX 7.0

SftTree.PostEdit Event

Softel vdm, Inc.

Cell editing has ended.

Deprecated - Provided for compatibility with earlier versions only - Use EditEnded instead
This event continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

Syntax       

VB.NET

Private Sub object_PostEdit(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.PostEdit

VB

Private Sub object_PostEdit(ByVal Accepted As Boolean, ByVal ItemIndex As Long, ByVal ColIndex As Integer)

C#.NET

void object_PostEdit(object sender, EventArgumentType e);

VC++

void OnPostEditobject(VARIANT_BOOL Accepted, long ItemIndex, short ColIndex);

C

HRESULT OnPostEditobject(VARIANT_BOOL Accepted, long ItemIndex, short ColIndex);

Delphi

procedure objectPostEdit(Sender: TObject; Accepted : WordBool; ItemIndex : Integer; ColIndex : Smallint);

object

A SftTree object.

Accepted

Set to True if the AfterEdit event indicated that the new value is accepted (Cancel = False) or False if the user aborted cell editing using the ESCAPE key or by clicking outside of the control used for cell editing.

ItemIndex

The zero-based item index.  The combination of ItemIndex and ColIndex describes an individual cell.

ColIndex

The zero-based column number.  The combination of ItemIndex and ColIndex describes an individual cell.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use EditEnded instead
This event continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

The PostEdit event occurs when cell editing has ended.

This event is generated if cell editing has ended normally (or after the application received an AfterEdit event and returned Cancel = False).  In this case Accepted is True.  If the user has aborted cell editing using the ESCAPE key or by clicking outside of the control used for cell editing, Accepted is False (an AfterEdit event was not generated).

The PostEdit event occurs once cell editing has completely ended.  If the user is editing a cell and uses cell navigation to edit another cell or clicks on another cell for editing purposes, the PostEdit event does not occur.

The PostEdit event can be used to validate multiple interrelated cells after cell editing has been completed or to prevent a user from exiting cell editing prematurely.  If a cell is incomplete or invalid, cell editing can be restarted using the StartEdit, StartCombo or StartComboEdit methods.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com