CGXGridCore::OnDeleteCell

virtual BOOL OnDeleteCell(ROWCOL nRow, ROWCOL nCol);?

nRow

Specifies the row id.

nCol

Specifies the column id.

Return Value

TRUE if the cell’s data can be deleted; FALSE to prevent deletion.

Remarks

Overridable method which is called when the user has pressed DELETE on the inactive current cell. The method is called from CGXControl::OnDeleteCell.

You can either override OnDeleteCell for all controls or subclass a specific control and override the control’s OnDeleteCell method.

You can use CGXControl::IsKindOf to determine the control’s class and compute the return value depending on the control’s runtime-type information.

See Also

 CGXGridCore::GetControl  CGXControl::OnDeleteCell  CGXControl::IsKindOf

CGXGridCore

 Class Overview |  Class Members