Object Model comparison

The tables below summarize the main properties, methods and events in the C1FlexGrid for WinForms and the corresponding members in the C1FlexGrid for Silverlight/WPF.

C1FlexGrid Properties

WinForms

Silverlight/WPF

Comments

AllowAddNew

 

Supported at the data source level, no built-in UI.

AllowDelete

 

Supported at the data source level, no built-in UI.

AllowDragging

AllowDragging

 

AllowEditing

IsReadOnly

Renamed for consistency with most other Silverlight/WPF controls.

AllowFiltering

 

Supported at the data source level, no built-in UI.

AllowFreezing

 

See the Rows.Frozen and Columns.Frozen properties.

AllowMerging

AllowMerging

 

AllowResizing

AllowResizing

 

AllowSorting

AllowSorting

 

AutoClipboard

 

See ClipboardCopyMode and ClipboardPasteMode properties, Copy and Paste methods.

AutoGenerateColumns

AutoGenerateColumns

 

AutoResize

 

See AutoSizeRows and AutoSizeColumns methods.

AutoSearch

 

Not supported.

AutoSearchDelay

 

Not supported.

BackColor

Background

 

BottomRow

ViewRange.BottomRow

 

ClipboardCopyMode

ClipboardCopyMode

 

Cols

Columns

 

DataSource

ItemsSource

 

DrawMode

 

See CellFactory property.

EditOptions

 

See CellFactory property, PrepareCellForEdit event.

Enabled

IsEnabled

 

ExtendLastCol

 

Set the width of the last column to “*”. Star sizing is a lot more flexible and powerful because it allows you to resize multiple columns and to specify their relative sizes.

FocusRect

 

Not supported.

HighLight

 

Not supported.

KeyActionEnter

KeyActionEnter

 

KeyActionTab

KeyActionTab

 

LeftColumn

ViewRange.LeftColumn

 

NewRowWatermark

 

Not supported

RightColumn

ViewRange.RightColumn

 

Rows

Rows

 

Scrollbars

HorizontalScrollbarVisibility
VerticalScrollbarVisibility

 

ScrollOptions

 

Not supported

ScrollPosition

ScrollPosition

 

SelectionMode

SelectionMode

 

ShowButtons

 

Not supported

ShowCellLabels

 

Not supported

ShowCursor

 

Not supported

ShowErrors

 

Not supported

ShowSort

ShowSort

 

Subtotal

Column. GroupAggregate

Use the data source’s GroupDescriptors collection to group the data; set the GroupAggregate property on individual columns to show aggregates such as sum or average for each group.

SubtotalPosition

 

Not supported

TopRow

ViewRange.TopRow

 

Tree.Indent

TreeIndent

 

Tree.Show(level)

CollapseGroupsToLevel
(level)

 

 

C1FlexGrid.Column Properties

WinForms

Silverlight/WPF

Comments

AllowDragging

AllowDragging

 

AllowEditing

IsReadOnly

 

AllowFiltering

 

Supported at the data source level, no built-in UI.

AllowMerging

AllowMerging

 

AllowResizing

AllowResizing

 

AllowSorting

AllowSorting

 

Caption

Header

 

ComboList

 

Create a ColumnValueConverter object and assign it to the column’s ValueConverter property.

DataMap

 

Create a ColumnValueConverter object and assign it to the column’s ValueConverter property.

DataType

DataType

 

EditMask

 

Not supported

Editor

 

Not supported (the PrepareCellForEdit event provides access to the cell editor being activated)

Filter

 

Not supported (filtering can be done at the data source level, but the FlexGrid has no UI to support it)

Format

Format

 

ImageMap

 

Not supported

Index

Index

 

IsCollapsed

IsCollapsed

 

IsVisible

IsVisible

Whether this row is visible
(Visible == true && IsCollapsed == false)

Left

Left

 

Name

ColumnName

 

Right

Right

 

Selected

Selected

 

UserData

Tag

 

Visible

Visible

 

Width

Width

The Width property is of type GridLength, and supports star-sizing for dynamic column widths (making the old ExtendLastCol property obsolete)

WidthDisplay

ActualWidth

 

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.