GrapeCity.Win.MultiRow Namespace > GcMultiRow Class : CellEditedFormattedValueChanged Event |
<SRCategoryAttribute("Action")> <SRDescriptionAttribute("Occurs when the cell's edited formatted value has changed.")> Public Event CellEditedFormattedValueChanged As EventHandler(Of CellEditedFormattedValueChangedEventArgs)
Dim instance As GcMultiRow Dim handler As EventHandler(Of CellEditedFormattedValueChangedEventArgs) AddHandler instance.CellEditedFormattedValueChanged, handler
[SRCategory("Action")] [SRDescription("Occurs when the cell's edited formatted value has changed.")] public event EventHandler<CellEditedFormattedValueChangedEventArgs> CellEditedFormattedValueChanged
The event handler receives an argument of type CellEditedFormattedValueChangedEventArgs containing data related to this event. The following CellEditedFormattedValueChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CellIndex | Gets the cell index in its parent Section. (Inherited from GrapeCity.Win.MultiRow.CellEventArgs) |
CellName | Gets the cell name. (Inherited from GrapeCity.Win.MultiRow.CellEventArgs) |
Reason | Represents the Cell's Cell.EditedFormattedValue reason for the change. |
RowIndex | Gets the index of the owner Row that the event occurs for. (Inherited from GrapeCity.Win.MultiRow.CellEventArgs) |
Scope | Gets the area of the cell that the event occurs for. (Inherited from GrapeCity.Win.MultiRow.CellEventArgs) |
SectionIndex | Gets the index of the owner Section that the event occurs for. (Inherited from GrapeCity.Win.MultiRow.CellEventArgs) |
private void gcMultiRow1_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e) { int itemIndex = (int)(this.gcMultiRow1.GetEditedFormattedValue(e.RowIndex, e.CellIndex)); this.label.Text = "The clicked item is " + (this.gcMultiRow1.CurrentCell as RadioGroupCell).Items[itemIndex]; }
Private Sub gcMultiRow1_CellEditedFormattedValueChanged(ByVal sender As Object, ByVal e As CellEditedFormattedValueChangedEventArgs) Handles gcMultiRow1.CellEditedFormattedValueChanged Dim itemIndex As Integer = DirectCast((Me.gcMultiRow1.GetEditedFormattedValue(e.RowIndex, e.CellIndex)), Integer) Me.label.Text = "The clicked item is " + TryCast(Me.gcMultiRow1.CurrentCell, RadioGroupCell).Items(itemIndex) End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2