GrapeCity MultiRow Windows Forms Documentation
FormattedValueType Property (ButtonCell)
Example 


Gets the type of the Cell.FormattedValue associated with the ButtonCell.
Syntax
Public Overrides ReadOnly Property FormattedValueType As Type
Dim instance As ButtonCell
Dim value As Type
 
value = instance.FormattedValueType
public override Type FormattedValueType {get;}

Property Value

A System.Type value that represents the type of the cell's FormattedValue. The value always is System.String.
Remarks
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.
Example
This example gets the FormattedValueType property.
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);
listBox1.Items.Add(button1.FormattedValueType.ToString());
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)
ListBox1.Items.Add(button1.FormattedValueType.ToString())
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 3
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

ButtonCell Class
ButtonCell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.