GrapeCity.Win.MultiRow Namespace > ButtonCell Class : Value Property |
<RefreshPropertiesAttribute(RefreshProperties.All)> <SRCategoryAttribute("Data")> <SRDescriptionAttribute("Indicates the value of the Cell.")> <LocalizableAttribute(True)> <TypeConverterAttribute("GrapeCity.Win.MultiRow.Design.CellValueTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")> Public Shadows Property Value As Object
Dim instance As ButtonCell Dim value As Object instance.Value = value value = instance.Value
[RefreshProperties(RefreshProperties.All)] [SRCategory("Data")] [SRDescription("Indicates the value of the Cell.")] [Localizable(true)] [TypeConverter("GrapeCity.Win.MultiRow.Design.CellValueTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")] public new object Value {get; set;}
When you assign a different value to a cell, the GcMultiRow.CellValueChanged event of the GcMultiRow control occurs.
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 CellStyle.NullValue does not result in a property value of CellStyle.DataSourceNullValue.
GrapeCity.Win.MultiRow.ButtonCell button1 = new GrapeCity.Win.MultiRow.ButtonCell(); button1.Value = "Click"; GrapeCity.Win.MultiRow.CheckBoxCell check2 = new GrapeCity.Win.MultiRow.CheckBoxCell(); GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { button1, check2 }, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber); gcMultiRow1.Template = template1; gcMultiRow1.RowCount = 3;
Dim button1 As New GrapeCity.Win.MultiRow.ButtonCell() button1.Value = "Click" Dim check2 As New GrapeCity.Win.MultiRow.CheckBoxCell() Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {button1, check2}, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber) GcMultiRow1.Template = Template1 GcMultiRow1.RowCount = 3
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