GrapeCity.Win.MultiRow Namespace : CellEditedFormattedValueChangedEventArgs Class |
Public Class CellEditedFormattedValueChangedEventArgs Inherits CellEventArgs
Dim instance As CellEditedFormattedValueChangedEventArgs
public class CellEditedFormattedValueChangedEventArgs : CellEventArgs
When a user edits the cell's value with the editing control or editing cell, the GcMultiRow.CellEditedFormattedValueChanged event is fired.
Different cell types may have different reasons for changing the Cell.EditedFormattedValue. For example the TextBoxCell's reason is "TextChanged", but the DateTimePickerCell's reason is "ValueChanged".
The Cell.EditedFormattedValue may be changed for more than one reason with some cells. For example, the ComboBoxCell's reason can be "TextChanged" and "SelectedIndexChanged". Sometimes one action may cause the GcMultiRow.CellEditedFormattedValueChanged event to fire multiple times.
The following table lists the cells that cause an edited formatted value to change.
Cell Type | Reason |
---|---|
TextBoxCell | "TextChanged" |
ComboBoxCell | "TextChanged" or "SelectedIndexChanged" |
CheckBoxCell | "EditingCellValueChanged" |
DateTimePickerCell | "ValueChanged" |
DomainUpDownCell | "TextChanged" |
MaskedTextBoxCell | "TextChanged" |
NumericUpDownCell | "TextChanged" |
PopupCell | "TextChanged" |
RadioGroupCell | "EditingCellValueChanged" |
RichTextBoxCell | "TextChanged" |
TrackBarCell | "EditingCellValueChanged" |
Custom Cells | "Unknown" |
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
System.Object
System.EventArgs
GrapeCity.Win.MultiRow.CellEventArgs
GrapeCity.Win.MultiRow.CellEditedFormattedValueChangedEventArgs
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