GrapeCity MultiRow Windows Forms Documentation
Using Button Commands (ButtonCell)

You can use the ButtonCell.ButtonCommand property to set an action that is executed when the user clicks the button type cell.

  • If a command is set in the ButtonCell.ButtonCommand property, the processing is carried out in the following order:
    1. GcMultiRow.CellContentButtonClick event processing
    2. GcMultiRow.CellContentClick event processing
    3. Command set in the ButtonCell.ButtonCommand property
  • If the button command of the button type cell placed in the row header section or the row footer section is run, the action is performed for the current row.

Button Commands

The button commands provide the following 15 types of actions.

Action Description Condition in which it is not performed
NavigationButtonCommands
MoveToNextRow Move to the row below. If the current row is the last row
MoveToPreviousRow Move to the row above. If the current row is the first row
MoveToFirstRow Move to the first row. If the current row is the first row
MoveToLastRow Move to the last row. If the current row is the last row
RowActionButtonCommands
Insert Add an empty row above the current row. If the GcMultiRow control is in bound mode
Remove Delete the current row. If the current row is a new row
Select Select the current row. If the current row cannot be selected
MoveUp Replace with the row above. If the current row is the first row
MoveDown Replace with the row below. If the current row is the last row
InsertCopy Add a row above the current row. The added row has the same content as that in the current row. If the current row is the last row
CopyRowValue Copy the value of the current row to the clipboard. -
ClearValues Clear the value of the current row. If the current row cannot be edited
FormActionButtonCommands
Print Print the GcMultiRow. -
PrintPreview Display a preview of the print result, using the PrintPreviewDialog. -
Close Close the current form. -
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options