GrapeCity.Win.MultiRow Namespace > LabelCell Class : Value Property |
<TypeConverterAttribute("GrapeCity.Win.MultiRow.Design.CellValueTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")> <RefreshPropertiesAttribute(RefreshProperties.All)> <SRCategoryAttribute("Data")> <SRDescriptionAttribute("Indicates the value of the Cell.")> <LocalizableAttribute(True)> Public Shadows Property Value As Object
[TypeConverter("GrapeCity.Win.MultiRow.Design.CellValueTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")] [RefreshProperties(RefreshProperties.All)] [SRCategory("Data")] [SRDescription("Indicates the value of the Cell.")] [Localizable(true)] public new object Value {get; set;}
When you assign a different value to a cell, the CellValueChanged event of the GcMultiRow control is raised.
The Cell.Value property is the actual data object contained by the cell, whereas the Cell.FormattedValue property is the formatted representation of the data. The Cell.ValueType and Cell.FormattedValueType properties correspond to the data types of these values, respectively.
When you set the Cell.Value property, the specified value is not automatically converted from a formatted, display value to an underlying cell value. For example, the CellStyle in effect for the cell is ignored, so setting Cell.Value to NullValue does not result in a property value of DataSourceNullValue.
GrapeCity.Win.MultiRow.TextBoxCell text1 = new GrapeCity.Win.MultiRow.TextBoxCell(); GrapeCity.Win.MultiRow.LabelCell label1 = new GrapeCity.Win.MultiRow.LabelCell(); label1.Value = "Label"; GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { text1, label1 }, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber); template1.ColumnHeaders[0].Cells[0].Value = "Column1"; gcMultiRow1.Template = template1; gcMultiRow1.RowCount = 3; gcMultiRow1[1, 0].Value = "test";
Dim text1 As New GrapeCity.Win.MultiRow.TextBoxCell() Dim label1 As New GrapeCity.Win.MultiRow.LabelCell() label1.Value = "Label" Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {text1, label1}, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber) template1.ColumnHeaders(0).Cells(0).Value = "Column1" GcMultiRow1.Template = template1 GcMultiRow1.RowCount = 3 GcMultiRow1(1, 0).Value = "test"
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