GrapeCity MultiRow Windows Forms Documentation
CellEditedFormattedValueChangedEventArgs Class
Members  Example 


Provides data for the GcMultiRow.CellEditedFormattedValueChanged event.
Syntax
Public Class CellEditedFormattedValueChangedEventArgs 
   Inherits CellEventArgs
public class CellEditedFormattedValueChangedEventArgs : CellEventArgs 
Remarks

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"

Example
The following code example shows the GcMultiRow.CellEditedFormattedValueChanged event. When you click the RadioGroupCell, this event is raised, and the clicked item is shown in the label. This code example is part of a larger example provided for the RadioGroupCell class.
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
Inheritance Hierarchy

System.Object
   System.EventArgs
      GrapeCity.Win.MultiRow.CellEventArgs
         GrapeCity.Win.MultiRow.CellEditedFormattedValueChangedEventArgs

Requirements

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

See Also

Reference

CellEditedFormattedValueChangedEventArgs Members
GrapeCity.Win.MultiRow Namespace
CellEditedFormattedValueChanged Event

 

 


Copyright © GrapeCity, inc. All rights reserved.