Tutorial WinForms.C1Flexgrid PDF
Tutorial WinForms.C1Flexgrid PDF
Internet:
Web site:
http://www.componentone.com
Sales
E-mail: [email protected]
Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office)
Trademarks
The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc. All other
trademarks used herein are the properties of their respective owners.
Warranty
ComponentOne warrants that the original CD (or diskettes) are free from defects in material and workmanship, assuming
normal use, for a period of 90 days from the date of purchase. If a defect occurs during this time, you may return the defective
CD (or disk) to ComponentOne, along with a dated proof of purchase, and ComponentOne will replace it at no charge. After
90 days, you can obtain a replacement for a defective CD (or disk) by sending it and a check for $25 (to cover postage and
handling) to ComponentOne.
Except for the express warranty of the original CD (or disks) set forth here, ComponentOne makes no other warranties, express
or implied. Every attempt has been made to ensure that the information contained in this manual is correct as of the time it was
written. We are not responsible for any errors or omissions. ComponentOnes liability is limited to the amount you paid for the
product. ComponentOne is not liable for any special, consequential, or other damages for any reason.
Copying and Distribution
While you are welcome to make backup copies of the software for your own use and protection, you are not permitted to make
copies for the use of anyone else. We put a lot of time and effort into creating this product, and we appreciate your support in
seeing that it is used by licensed users only.
Table of Contents
ComponentOne FlexGrid for WinForms Overview.......................................................................... 7
Help with ComponentOne Studio for WinForms ........................................................................ 8
Differences Between the .NET and ActiveX Versions of C1FlexGrid ............................................ 8
Differences Between the .NET and Mobile Versions of ComponentOne FlexGrid for WinForms 12
Differences Between ComponentOne FlexGrid for WinForms and ComponentOne True DBGrid
for WinForms........................................................................................................................... 16
Migrating a C1FlexGrid Project to Visual Studio 2005 ............................................................... 16
Key Features ................................................................................................................................ 17
FlexGrid for WinForms Quick Start ............................................................................................... 19
Step 1 of 3: Creating the FlexGrid for WinForms Application .................................................... 19
Step 2 of 3: Binding C1FlexGrid to a Data Source ...................................................................... 20
Step 3 of 3: Customizing C1FlexGrid Settings............................................................................ 21
Design-Time Support ................................................................................................................... 23
C1FlexGrid Editors ................................................................................................................... 24
C1FlexGrid Column Editor .................................................................................................... 24
C1FlexGrid Style Editor......................................................................................................... 28
Caption Style and Column Style............................................................................................ 30
C1FlexGrid Smart Tag ............................................................................................................... 35
C1FlexGrid Tasks Menu ........................................................................................................ 35
Column Tasks Menu ............................................................................................................. 39
Using the C1FlexGrid Control ....................................................................................................... 41
Rows and Columns................................................................................................................... 44
Column Sizing ...................................................................................................................... 46
Cell Selection ........................................................................................................................... 47
Cell Ranges .............................................................................................................................. 50
Cell Images .............................................................................................................................. 51
Formatting Cells....................................................................................................................... 51
Cell Content ......................................................................................................................... 51
Cell Appearance ................................................................................................................... 53
Getting Started
To get started,
topics:
Key
Features
C1FlexGrid Control
WinForms
Quick Start
write grids from and to compressed binary files or text files (compatible
with Microsoft Access and Excel). C1FlexGrid provides all the basics
FlexGrid for
WinForms
plus advanced features such as outline trees, sorting, cell merging, masked
Samples
aggregation.
FlexGrid for
FlexGrid for
WinForms
C1FlexGrid can be used in bound mode, where it displays data from any
Top Tips
C1FlexGridClassic Control
The C1FlexGridClassic control is a control that derives from C1FlexGrid and provides an object
model that is virtually 100% identical to the VSFlexGrid ActiveX control. C1FlexGridClassic was
developed to allow easy migration of existing VSFlexGrid projects.
The source code for C1FlexGridClassic is provided as a sample. You can use it as a reference that
shows how to use the C1FlexGrid control as a base class in the development of custom grid
controls.
See Also
Getting Started
For information on installing ComponentOne Studio for WinForms, licensing, technical support,
namespaces and creating a project with the control, please visit Getting Started with Studio for
WinForms.
What's New
For a list of the latest features added to ComponentOne Studio for WinForms, visit What's New in
Studio for WinForms.
The following table lists the differences between the .NET and ActiveX versions of C1FlexGrid:
VSFlexGrid (ActiveX)
C1FlexGrid (.NET)
Rows, Cols
Collections
Dim r%, c%
c = 1
For r = _flex.Rows.Fixed To
_flex.Rows.Count - 1
Debug.Print _flex(r,c)
Next
Dim r%, c%
c = 1
For r = _flex.FixedRows To
_flex.Rows - 1
Debug.Print
_flex.TextMatrix(r,c)
Next
Styles
Uses indexers.
_flex.Styles.Add("Red")
redStyle.BackColor = Color.Red
VSFlexGrid (ActiveX)
C1FlexGrid (.NET)
_flex.Rows(2).Style = redStyle
_flex.Cell(flexcpBackColor,
2, 0, 2, _flex.Cols-1) =
vbRed
_flex.Styles("Red").ForeColor =
Color.White
_flex.Styles("Red").Font = new
Font("Arial", 9, FontStyle.Bold)
This will change the appearance of all cells
that use the "Red" style. The previous
approach would require either (1) clearing all
styles and setting everything up again from
scratch or (2) scanning all cells in the grid to
detect which cells are red, then changing
those. CellStyle objects are used consistently
throughout the control, so instead of
BackColorFixed and ForeColorSel you can
now write Styles.Fixed.BackColor and
Styles.Highlight.ForeColor.
CellRange
The Cell property is one of the most The C1FlexGrid replaces the Cell property
powerful elements of the
instead of writing:
10
VSFlexGrid (ActiveX)
C1FlexGrid (.NET)
Dim rg As CellRange
mistakes.
rg =
_flex.GetCellRange(5,5,10,10)
rg.Image = theImage
The new approach has two significant
advantages: It is type-safe, so if the variable
theImage contained a string instead of an
image, you would get a compiler error
instead of a runtime error. You get
command-completion when writing the code
because the types for each property are
known.
Typed
columns
ColDataType allowed you to set the property that determines the type of data the
type of data that each column
used mainly for sorting columns that store anything in any column. You can set the
contained dates or numbers.
_flex.Cols[2].DataType =
typeof(int);
// Value will be set to 12.
_flex[1, 2] = "12";
11
VSFlexGrid (ActiveX)
C1FlexGrid (.NET)
// Bad value. Fire the GridError
event and ignore.
_flex[2, 2] = "hello";
This code would assign the integer 12 to cell
(1,2). Cell (2,2) would retain its original value,
because the string "hello" cannot be
converted to an integer. If you want to store
values of mixed types in a column, you have
two options:
1.
2.
C1Flex
C1FlexGrid (.NET)
C1FlexGrid (Mobile)
N/A
N/A
Grid
12
Editors
C1Flex
C1FlexGrid (.NET)
C1FlexGrid (Mobile)
Caption Style
N/A
Column Style
N/A
Grid
Smart
this menu.
Tag
Column Tasks Menu
N/A
Data
property which can be set directly in the grid by clicking and can be resized using the
dragging the horizontal double arrow that appears at the
Properties window or
programmatically.
Source Configuration
Wizard to bind to a data
source through the
Properties window.
13
C1FlexGrid (.NET)
C1FlexGrid (Mobile)
information.
Image
time.
Suppor example:
to a cell Image.FromFile is
To write code in Visual Basic
Visual Basic
C1FlexGrid1.SetCellImage(1,1,Image.FromFile(c:\
myimage.bmp"))
To write code in C#
C#
Visual Basic
Copy Code
Copy Code
c1FlexGrid1.SetCellImage(1,1,Image.FromFile(@"c
:\myimage.bmp"));
Bitmap("c:\myimage.b
mp")
C1FlexGrid1.SetCellI
mage(1, 1, myimage)
To write code in C#
C#
Copy Code
{ Bitmap myimage =
new
Bitmap("c:\\myimage.
bmp");
14
C1FlexGrid (.NET)
C1FlexGrid (Mobile)
c1FlexGrid1.SetCellI
mage(1, 1, myimage);
}
Note:The Image
class is unrelated to
C1FlexGrid. Please
see Microsoft's
documentation for
more information.
available in the
AllowMerging property,
15
16
Note: The Show All Files button does not appear in the Solution Explorer toolbar if the
Solution project node is selected.
9.
Expand the References node, right-click C1.Common and select Remove. Also remove
C1.Win.C1FlexGrid the same way.
10. Right-click the References node and select Add Reference.
11. Locate and select C1.Win.C1FlexGrid.2.dll. Click OK to add it to the project.
In the Solution Explorer, right-click the licenses.licx file and select Delete.
Click OK to permanently delete licenses.licx. The project must be rebuilt to create a new,
updated version of the .licx file.
Click the Start Debugging button to compile and run the project. The new .licx file may not
be visible in the Solution Explorer.
Select File, Close to close the form and then double-click the Form.vb or Form.cs file in
the Solution Explorer to reopen it. The new licenses.licx file appears in the list of files. The
migration process is complete.
Key Features
Some of the key features of ComponentOne FlexGrid for WinForms that you may find useful
include:
Code-free Development
Set up columns and styles at design time with easy-to-use editors accessible from the
SmartTag. The column editor allows you to insert and remove columns, reorder columns,
adjust column widths, and more. Modify existing styles and add custom styles with the style
editor. Completely manage your grid without writing any code!
Integrated Printing
Print your grid with a single statement! You have control over paper orientation, margins,
and footer text, or you can show a dialog box to let your users select and set up the printer.
17
Printing events allow you to control page breaks, add repeating header rows, or add
custom elements to each page.
Hierarchical Styles
View data the way that's best for you and your users with powerful properties and
methods. For example, you can summarize data and add aggregate values with the
C1FlexGrid.Subtotal method or use the Tree property to display hierarchical views of the
data.
Make it a Tree
By setting the IsNode property for certain rows you can transform FlexGrid into a TreeView.
You get a TreeView that has all the features of a rich datagrid.
18
Merged Cells
Merge contiguous like-valued cells, making them span multiple rows or columns to
enhance appearance or clarity.
Range Aggregates
Calculate totals, averages, and other statistics for ranges of cells with a single statement!
See Also
Step 1 of 3: Creating the FlexGrid for WinForms Application
Step 2 of 3: Binding C1FlexGrid to a Data Source
Step 3 of 3: Customizing C1FlexGrid Settings
19
1.
2.
3.
4.
5.
Congratulations! You have successfully created a simple grid application. In the next topic, you will
learn how to bind the C1FlexGrid control to a data source.
8.
9.
10.
11.
12.
13.
Open the C1FlexGrid Tasks menu. For more information on accessing the C1FlexGrid
Tasks menu, see C1FlexGrid Tasks Menu.
In the C1FlexGrid Tasks menu, click the Choose Data Source drop-down arrow and select
the Add Project Data Source link from the drop-down box.
The Data Source Configuration Wizard appears. Leave the default setting, Database,
selected on the Choose a Data Source Type page, and click Next.
On the Choose a Database Model page, leave Dataset selected and click Next.
Click the New Connection button to create a new connection or choose one from the
drop-down list. When you click New Connection, the Add Connection dialog box appears.
Leave Microsoft Access Database File as the Data source.
Click the Browse button under Database file name. In the Select Microsoft Access
Database File dialog box, browse to the NWind.mdb database in the C:\Documents and
Settings\<username>\My Documents\ComponentOne Samples\Common (Windows XP) or
C:\Users\<username>\Documents\ComponentOne Samples\Common (Vista) directory.
Select the NWind.mdb file and click Open.
In the Add Connection dialog box, click the Test Connection button to make sure that
you have successfully connected to the database or server and click OK.
Click OK again to close the Add Connection dialog box.
Click the Next button to continue. A dialog box will appear asking if you would like to add
the data file to your project and modify the connection string. Since it is not necessary to
copy the database to your project, click No.
Save the connection string in the application configuration file by checking the Yes, save
the connection as box and entering a name. Click the Next button to continue.
On the Choose Your Database Objects page, expand the Tables node, and select the
Products table. Enter ProductsDS in the DataSet name box and click Finish to exit the
wizard.
A DataSet and connection string are added to your project. Additionally, Visual Studio
automatically creates the following code to fill the DataSet:
To write code in Visual Basic
20
Visual Basic
Copy Code
Me.ProductsTableAdapter.Fill(Me.ProductsDS.Products)
To write code in C#
C#
Copy Code
this.productsTableAdapter.Fill(this.productsDS.Products);
Congratulations! You have successfully bound the grid application to a data source. In the next
topic, you will learn how to customize format strings, Visual Styles, and built-in styles.
21
1.
Resize the first column in the grid by dragging the horizontal double arrow that appears at
the right edge of the first column's header to the left until the UnitPrice column is visible:
2.
3.
Click the ellipsis button next to the Format String text box to open the Format String
dialog box.
In the Format String dialog box, select Currency under Format type and click OK.
In the Properties window, locate the VisualStyle property and set it to Office2007Blue.
Open the C1FlexGrid Tasks menu. The Column Tasks menu will appear since we last
edited a column using the Tasks menu. Select C1FlexGrid Tasks to return to the
C1FlexGrid Tasks menu.
On the C1FlexGrid Tasks menu, select Styles to open the C1FlexGrid Style Editor.
4.
5.
6.
7.
22
You have successfully set the format string, Visual Style, and built-in styles for the grid. This
concludes the Quick Start.
Design-Time Support
You can easily configure ComponentOne FlexGrid for WinForms at design time using the
property grid, menus, and designers in Visual Studio. The following sections describe how to use
C1FlexGrid's design-time environment to configure the C1FlexGrid control.
See Also
C1FlexGrid Editors
C1FlexGrid Smart Tag
23
C1FlexGrid Editors
There two are design-time editors that allow you to control the layout and appearance of
C1FlexGrid, C1FlexGrid Column Editor and C1FlexGrid Style Editor. Additionally, Caption Style
and Column Style are two design-time editors that allow you to change the appearance of a
specific caption or column.
See Also
C1FlexGrid Column Editor
C1FlexGrid Style Editor
Caption Style and Column Style
Select the grid in Design view, go to the Properties window and click the ellipsis button
() next to the Cols property.
Right-click the control and select Designer from the context menu.
Click on the smart tag ( ) in the upper right corner of the grid and select Designer from
the C1FlexGrid Tasks menu.
24
In bound mode, the editor can be used to select which fields in the DataSource should be
displayed, their order, column captions, widths, and alignment. In unbound mode, the editor is also
used to select column data types.
The editor allows you to perform the following actions:
Button
Reorder Columns: You can move columns to new positions by dragging them by the
header cells with the mouse.
Adjust Column Widths: You can adjust column widths with the mouse, by dragging the
right edge of the header cells with the mouse. You can also select multiple columns by
SHIFT-clicking the header cells, and then set all column widths at once using the property
window. Setting the column width to 1 restores the default width.
Set Column Properties: Whenever one or more columns are selected, you can see and edit
their properties in the property grid on the left of the editor.
Insert or Remove Columns: Use the toolbar to insert columns before or after the selection
(useful mostly in unbound mode), or to remove columns.
Use the Toolbar to Perform Common Tasks: The table below describes the function of
the buttons on the toolbar:
Description
Font: Sets the selected font in the drop-down list.
25
Button
Description
26
Button
Description
27
Button
Description
change the Visible property of a column to False, it will
be hidden, and therefore you won't be able to select it
with the mouse. Use this button to show all hidden
columns so you can select and edit them.
Determines whether the properties for the selected
columns should be displayed in categorized or
alphabetical order.
Select the grid, go to the Properties window and click the ellipsis button next to the Styles
property.
Right-click the grid and select Styles from the context menu.
Click on the smart tag ( ) in the upper right corner of the grid and select Styles from the
C1FlexGrid Tasks menu.
The grid will display the C1FlexGrid Style Editor dialog box.
The style editor lets you modify existing styles and add new custom ones, which may later be
assigned to cells, rows, and columns.
Use the Add button to add a custom style. You can see how your new style appears in the preview
area above the style properties.
28
The Remove button removes the selected custom style. You can rename custom styles by selecting
them on the list and typing the new name. The Clear button removes all custom styles and restores
the built-in styles to their default values.
The AutoFormat button brings up a secondary dialog box that allows you to select a complete set
of predefined styles. Here's what the AutoFormat dialog box looks like:
29
Text
The Text tab sets the font and formatting of the caption.
30
Format: Click the ellipsis button to open the Format String dialog box. For more details
on the Format String dialog box, see Cell Content.
Input Mask: Click the ellipsis button to open the Input Mask dialog box. For more details
on the Input Mask dialog box, see Masks.
Effect: Choose from Flat, Raised, or Inset. For more details on the text effect options, see
the TextEffectEnum Enumeration.
31
Alignment
The Alignment tab sets the alignment of both text and images in the caption.
Horizontal: Click the buttons to toggle between Align Left, Align Center, Align Right,
and Align General.
Vertical: Click the buttons to toggle between Align Top, Align Middle, and Align Bottom.
The following options are available in the Image Alignment area:
Clip: Click the buttons to toggle between image alignment in the cell or Scale, Tile,
Stretch, TileStretch, or Hide the image. For more details on the image alignment options,
see the ImageAlignEnum Enumeration.
32
Show Sample Image: Check the Show Sample Image box to display a sample image in
the Preview area.
The following options are available in the Display area:
Text/Image Spacing: Increase or decrease this value to increase or decrease the amount of
space between the text and the image.
Display: Choose from TextOnly, ImageOnly, Overlay, Stack, or None. For more details on
the display options, see the DisplayEnum Enumeration.
Background
The Background tab sets the background color and background image.
33
Image: Click the Select button to select an image or the Clear button to remove an image.
Layout: Toggle between Scale, Tile, Stretch, TileStretch, or Hide.
Borders
The Background tab sets the borders and margins.
Style: Choose from None, Flat, Double, Raised, Inset, Groove, Fillet, or Dotted. For
details on the different border style options, see the C1.Win.C1FlexGrid.BorderStyleEnum
Enumeration.
Width: Increase or decrease the value to increase or decrease the width of the border.
Color: Choose a color for the border.
Direction: Choose from Both, Horizontal, or Vertical. For details on the different border
direction options, see the BorderDirEnum Enumeration.
34
Left: Increase or decrease the value to increase or decrease the left margin.
Top: Increase or decrease the value to increase or decrease the top margin.
Right: Increase or decrease the value to increase or decrease the right margin.
Bottom: Increase or decrease the value to increase or decrease the bottom margin.
See Also
C1FlexGrid Tasks Menu
Column Tasks Menu
35
Enable Editing
Selecting the Enable Editing check box sets the AllowEditing property to True, and allows editing
in the grid. The default is checked.
Designer
Clicking Designer opens the C1FlexGrid Column Editor.
36
For more information on how to edit columns with the C1FlexGrid Column Editor, see C1FlexGrid
Column Editor.
Styles
Clicking Styles opens the C1FlexGrid Style Editor.
37
For more information on how to customize cell appearance with the C1FlexGrid Style Editor, see
C1FlexGrid Style Editor.
Column Tasks
Clicking Column Tasks opens the Column Tasks menu. For details on the Column Tasks menu,
see Column Tasks Menu.
About C1FlexGrid
Clicking About C1FlexGrid displays the About ComponentOne C1FlexGrid dialog box, which is
helpful in finding the version number of C1FlexGrid.
38
Clicking Dock in parent container sets the Dock property for C1FlexGrid to Fill.
If C1FlexGrid is docked in the parent container, the option to undock C1FlexGrid from the parent
container will be available. Clicking Undock in parent container sets the Dock property for
C1FlexGrid to None.
Column Caption
Entering a caption into the Column Caption box set the Caption property for the column.
Data Field
Clicking the drop-down arrow in the Data Field box opens a list of available fields in the data
source.
Data Type
Clicking the drop-down arrow in the Data Type box opens a list of available data types.
Edit Mask
Clicking the ellipsis button in the Edit Mask box opens the Input Mask dialog box.
Format String
Clicking the ellipsis button in the Format String box opens the Format String dialog box.
Combo List
Clicking the ellipsis button in the Combo List box opens the Combo List dialog box.
Allow Sorting
Selecting the Allow Sorting check box sets the AllowSorting property to True, and allows sorting in
the column. The default is checked.
39
Allow Editing
Selecting the Allow Editing check box sets the AllowEditing property to True, and allows editing in
the column. The default is checked.
Allow Resizing
Selecting the Allow Resizing check box sets the AllowResizing property to True, and allows
resizing the column. The default is checked.
Allow Dragging
Selecting the Allow Dragging check box sets the AllowDragging property to True, and allows
dragging columns in the grid. The default is checked.
Allow Merging
Selecting the Allow Merging check box sets the AllowMerging property to True, and allows
merging in the column. The default is unchecked.
Visible
Selecting the Visible check box sets the Visible property to True, and allows the column to be
visible in the grid. The default is checked.
Caption Style
Clicking Caption Style opens the Caption Style editor for the selected column, which allows you to
specify the properties for the caption text, including alignment, background, and borders.
Column Style
Clicking Column Style opens the Column Style editor for the selected column, which allows you to
specify properties for the column, including text, alignment, background, and borders.
C1FlexGrid Tasks
Clicking C1FlexGrid Tasks returns you to the C1FlexGrid Tasks menu. For details on the
C1FlexGrid Tasks menu, see C1FlexGrid Tasks Menu.
40
If C1FlexGrid is docked in the parent container, the option to undock C1FlexGrid from the parent
container will be available. Clicking Undock in parent container sets the Dock property for
C1FlexGrid to None.
41
The following topics walk you through the main features in the C1FlexGrid control:
42
See Also
Rows and Columns
43
Cell Selection
Cell Ranges
Cell Images
Formatting Cells
Editing Cells
Merging Cells
Outlining and Summarizing Data
Saving, Loading, and Printing
C1FlexGrid Filtering
C1FlexGrid Property Groups
Copy Code
_flex.Rows.Count = 500
_flex.Cols.Count = 10
To write code in C#
C#
Copy Code
_flex.Rows.Count = 500;
_flex.Cols.Count = 10;
44
There are two basic types of rows and columns: fixed and scrollable. (The counts returned by the
Count property include fixed and scrollable cells.) Fixed rows remain on the top of the grid when
the user scrolls the grid vertically, and fixed columns remain on the left of the grid when the user
scrolls the grid horizontally.
Fixed cells are useful for displaying row and column header information.
You can set the number of fixed rows and columns using the Fixed property in the Rows and Cols
collections. For example, the code below creates a grid with two fixed rows and no fixed columns:
To write code in Visual Basic
Visual Basic
Copy Code
_flex.Rows.Fixed = 1
_flex.Cols.Fixed = 0
To write code in C#
C#
Copy Code
_flex.Rows.Fixed = 1;
45
_flex.Cols.Fixed = 0;
The Rows and Cols collections also contain methods for inserting, deleting, and moving rows and
columns on the grid. You can use their Item property (an indexer) to access individual elements
(rows and columns) in each collection.
If you prefer, you can set up the grid columns at design time instead of writing code to do it using
the C1FlexGrid Column Editor. For details on editing columns using the C1FlexGrid Column
Editor, see C1FlexGrid Column Editor.
See Also
Column Sizing
Column Sizing
The width of a column is determined by its Width property. At design time, the Width property can
be set directly in the grid or through the C1FlexGrid Column Editor. In the grid, clicking and
dragging the horizontal double arrow that appears at the right edge of a column's header allows
the column to be resized.
The dotted vertical line indicates how the grid will be resized. Dragging the pointer to the left
makes the column smaller; dragging it to the right makes the column larger. The column's Width
property will be adjusted when the resize operation is complete.
In the C1FlexGrid Column Editor or in code, specify the value of the Width property for a column.
For details on the C1FlexGrid Column Editor, see C1FlexGrid Column Editor. The following code
sets the Width property of Column1 to 10:
46
Copy Code
_flex.Cols(1).Width = 10
To write code in C#
C#
Copy Code
_flex.Cols(1).Width = 10
To prevent resizing a specific column, set the AllowResizing property for the column to False either
in the Column Tasks menu or C1FlexGrid Column Editor, or in code. For details on the Column
Tasks menu, see Column Tasks Menu. The following code sets the AllowResizing property for
Column1 to False:
To write code in Visual Basic
Visual Basic
Copy Code
_flex.Cols(1).AllowResizing = False
To write code in C#
C#
Copy Code
_flex.Cols(1).AllowResizing = False
Cell Selection
The grid has a cursor cell, which displays a focus rectangle while the grid is active. The user may
move the cursor with the keyboard or the mouse, and edit the contents of the cell if the grid is
editable.
47
Notice that the Office Visual Styles also indicate the location of the cursor cell by highlighting the
row and column headers of the cursor cell's position. For more information about setting the Visual
Style, see Customizing Appearance Using Visual Styles.
You can get or set the current cell in code using the Row and Col properties. Setting either of these
properties to 1 hides the cursor.
The grid supports extended selections, rectangular ranges of cells defined by two opposing
corners: the cursor cell and the cell selection cell.
Notice that the Office Visual Styles also indicate the location of the extended selection by
highlighting the row and column headers of the selected cells. For more information about setting
the Visual Style, see Customizing Appearance Using Visual Styles.
You can get or set the selection cell in code using the RowSel and ColSel properties, or by using the
Select method.
Note: When the cursor cell changes, the selection is automatically reset. To create extended
selections in code, either set Row and Col before RowSel and ColSel, or use the Select method.
The appearance of the selection is controlled by the following properties:
FocusRect determines the type of focus rectangle that is drawn to indicate the cursor cell.
HighLight determines when the selection should be highlighted (always, when the control
has the focus, or never).
HighLight and Focus are cell styles that determine the appearance of the selection (font,
color, and border).
48
The type of selection available is determined by the SelectionMode property. By default, the grid
supports regular range selections. You can modify this behavior to prevent extended selections, to
select by row, by column, or in listbox mode (listbox mode allows you to select individual rows).
When using the listbox selection mode, you can get or set the selection status for individual rows
using the Selected property. You can also retrieve a collection of selected rows using the Selected
property. For example, the code below selects all rows that satisfy a condition:
To write code in Visual Basic
Visual Basic
Copy Code
'Selects all rows with more than 8000 sales in the Sales column.
_flex.SelectionMode = C1.Win.C1FlexGrid.SelectionModeEnum.ListBox
Dim index As Integer
For index = _flex.Rows.Fixed To _flex.Rows.Count - 1
If Val(_flex(index, "Sales")) > 80000 Then
_flex.Rows(index).Selected = True
End If
Next
Console.WriteLine("There are now {0} rows selected", _flex.Rows.Selected.Count)
To write code in C#
C#
Copy Code
// Selects all rows with more than 8000 sales in the Sales column.
_flex.SelectionMode = SelectionModeEnum.ListBox;
for (int index = _flex.Rows.Fixed ; index < _flex.Rows.Count; index++)
{
if
(Microsoft.VisualBasic.Conversion.Val(System.Runtime.CompilerServices.RuntimeHel
pers.GetObjectValue(_flex[index, "Sales"])) > 80000)
{
_flex.Rows[index].Selected = true;
}
}
49
Cell Ranges
CellRange objects allow you to work on arbitrary groups of cells as a single unit. For example, the
code below creates a CellRange object, clears the data in the range, and assigns it a custom style:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Copy Code
50
C#
Copy Code
Cell Images
Each grid cell can display images in addition to the data stored in the cell. This can be done in two
ways:
You can assign an Image object to a cell using the SetCellImage method. This method
allows you to assign arbitrary images to each cell, and is useful if the images are not related
to the data in the cell. For example, you may want to use a picture as an indicator that the
data in the cell is invalid.
You can assign an ImageMap to the column and the grid will automatically map the cell
data into a corresponding image. This method is useful in situations where the image
contains a representation of the data. For example, the images may contain icons that
represent product types.
Formatting Cells
One of the main strengths of the C1FlexGrid control is the ability to customize almost every aspect
of the appearance of the entire grid and individual cells.
See Also
Cell Content
Cell Appearance
Conditional Formatting
Owner-Drawn Cells
Cell Content
To control how the content of the cells is formatted, set the Format property to a format string
similar to the ones you use with the String.Format method in the .NET framework. For example, the
code below shows short dates on column one and currency values on column two:
To write code in Visual Basic
Visual Basic
Copy Code
51
Copy Code
// Short date.
_flex.Cols[1].Format = "d";
// Currency.
_flex.Cols[2].Format = "c";
The formatting of cell content can also be set at design time using the Format String dialog box.
The Format String dialog box can be accessed through the Column Tasks menu or through the
C1FlexGrid Column Editor.
In the Column Tasks menu, click the ellipsis button in the Format String box.
In the C1FlexGrid Column Editor, locate the Format property in the left pane, and click the
ellipsis button next to it.
Note: The Format String dialog box is column specific and will only change the Format
property of the selected column.
You can also use custom formats like the ones used in the Visual Basic Format function (for
example, "#,###", and so on).
Copy Code
52
Copy Code
// Short date.
_flex.Cols[1].Format = "d";
// Currency.
_flex.Cols[2].Format = "c";
_flex[1, 2] = 10000;
Console.WriteLine("Raw value: {0}", _flex[1, 2]);
Console.WriteLine("Display value: {0}", _flex.GetDataDisplay(1, 2));
// Raw value: 10000
// Display value: $10,000.00
Cell Appearance
The appearance of the cells (alignment, font, colors, borders, and so on) is handled with CellStyle
objects. The grid has a Styles property that holds the collection of styles used to format the grid.
This collection has some built-in members that define the appearance of grid elements, such as
fixed and scrollable cells, selection, focus cell, and so on. You can change these styles to modify the
way the grid looks, and you can also create your own custom styles and assign them to cells, rows,
or columns.
53
Changing the built-in styles is the simplest way to change the appearance of the grid. For example,
the code below displays the selection as bold green characters over a red background:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
CellStyle cs = _flex.Styles.Highlight;
cs.Font = new Font(_flex.Font, FontStyle.Bold);
cs.ForeColor = Color.Green;
cs.BackColor = Color.Red;
You can also create your own styles and assign them to cells, rows and columns. For example, the
code below creates a custom cell style and assigns it to every fifth row:
To write code in Visual Basic
Visual Basic
Copy Code
54
C#
Copy Code
CellStyle cs = _flex.Styles.Add("Fifth");
cs.BackColor = Color.Gray;
for (int index = _flex.Rows.Fixed ; index <= _flex.Rows.Count - 1; index += 5)
{
_flex.Rows[index].Style = cs;
}
Here's an example that shows how you can create custom styles and assign them to columns, rows,
and cell ranges:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
55
s.BackColor = Color.Red;
s.ForeColor = Color.White;
// Assign the new style to a column.
_flex.Cols[3].Style = _flex.Styles["MyStyle"];
// Assign the new style to a row.
_flex.Rows[3].Style = _flex.Styles["MyStyle"];
// Assign the new style to a cell range.
CellRange rg = _flex.GetCellRange(4,4,6,6);
rg.Style = _flex.Styles["MyStyle"];
If you prefer, you can set up styles at design time using the C1FlexGrid Style Editor instead of
writing code to do it. For details on customizing cell appearance with the C1FlexGrid Style Editor,
see C1FlexGrid Style Editor.
Conditional Formatting
To format cells based on their contents, you can use the CellChanged event to select a style for the
cell based on its contents. For example, the code below creates a new style for large currency values
and applies it to cells based on their contents:
To write code in Visual Basic
Visual Basic
Copy Code
Dim cs As C1.Win.C1FlexGrid.CellStyle
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Create a custom style for large values.
cs = _flex.Styles.Add("LargeValue")
cs.Font = New Font(Font, FontStyle.Italic)
cs.BackColor = Color.Gold
End Sub
' Format cells based on their content.
Private Sub _flex_CellChanged(ByVal sender As Object, ByVal e As
RowColEventArgs) Handles _flex.CellChanged
56
' Mark currency values > 50,000 as LargeValues (reset others by setting
their Style to Nothing).
Dim cs As CellStyle
If _flex(e.Row, e.Col).ToString >= 50000 Then
cs = _flex.Styles("LargeValue")
_flex.SetCellStyle(e.Row, e.Col, cs)
End If
End Sub
To write code in C#
C#
Copy Code
CellStyle cs;
private void Form1_Load(object sender, EventArgs e)
{
// Create a custom style for large values.
cs = _flex.Styles.Add("LargeValue");
cs.Font = new Font(Font, FontStyle.Italic);
cs.BackColor = Color.Gold;
}
// Format cells based on their content.
private void _flex_CellChanged( object sender, RowColEventArgs e)
{
// Mark currency values > 50,000 as LargeValues reset others by setting
their Style to null).
if (Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(_flex[e.Row,
e.Col].ToString()) >= 50000)
{
cs = _flex.Styles["LargeValue"];
_flex.SetCellStyle(e.Row, e.Col, cs);
}
}
57
Owner-Drawn Cells
Even though the CellStyle objects offer a lot of control over the cell appearance (back and
foreground colors, alignment, font, margins, borders, and so on), sometimes that is not enough.
You may want to use a gradient background, or draw some custom graphics directly into a cell. In
these cases, you can use the DrawMode property and the OwnerDrawCell event to gain total
control over how each cell is drawn.
The DrawMode property determines whether or not the OwnerDrawCell event is fired. The event
allows you to override every visual aspect of the cell. The parameters in the OwnerDrawCell event
allow you to change the data that is displayed, the style used to display the data, or to take over
completely and draw whatever you want into the cell.
You can change the text and image that will be shown in the cell by setting the e.Text and e.Image
parameters in the event handler. You can also change the style that will be used to display the cell
by setting the e.Style property.
Note that you should not modify the properties of the Style parameter because that might affect
other cells. Instead, assign a new CellStyle object to the Style parameter. For example, instead of
setting e.Style.ForeColor = Color.Red, assign a whole new style to the parameter using e.Style =
_flex.Styles["RedStyle"].
You can also use your own drawing code to draw into the cell, and even combine your custom code
with calls to the e.DrawCell method. For example, you could paint the cell background using GDI
calls and then call e.DrawCell to display the cell borders and content.
Note:For an example of advanced Owner-Draw Cells, see the RtfGrid sample on
ComponentOne HelpCentral.
The code below shows an example. It uses a gradient brush to paint the background of the selected
cells. First, the code sets the DrawMode property, declares a LinearGradientBrush object and
updates the brush whenever the grid is resized:
To write code in Visual Basic
Visual Basic
Copy Code
58
'
m_GradientBrush = New
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.SteelBlue,
Color.White, 45)
'
_flex.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw
End Sub
Private Sub _flex_Resize(ByVal sender As Object, ByVal e As System.EventArgs)
Handles _flex.Resize
'
m_GradientBrush = New
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.SteelBlue,
Color.White, 45)
End Sub
To write code in C#
C#
Copy Code
System.Drawing.Drawing2D.LinearGradientBrush m_GradientBrush;
private void Form1_Load(object sender, EventArgs e)
{
// Brush to use with owner-draw cells.
m_GradientBrush = new
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.SteelBlue,
Color.White, 45);
// Use owner-draw to add gradients.
_flex.DrawMode = DrawModeEnum.OwnerDraw;
}
private void _flex_Resize( object sender, System.EventArgs e)
59
{
// Update gradient brush when the control is resized.
m_GradientBrush = new
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.SteelBlue,
Color.White, 45);
}
The second step is handling the OwnerDrawCell event and using the custom brush for painting the
cell background. In this example, the foreground is handled by the grid itself, using the DrawCell
method in the event argument:
To write code in Visual Basic
Visual Basic
Copy Code
e.Graphics.FillRectangle(m_GradientBrush, e.Bounds)
'
e.DrawCell(C1.Win.C1FlexGrid.DrawCellFlags.Content)
'
e.Handled = True
End If
End Sub
To write code in C#
C#
Copy Code
60
{
// Draw the selected cell background using gradient brush.
if (_flex.Selection.Contains(e.Row, e.Col))
{
// Draw the background.
e.Graphics.FillRectangle(m_GradientBrush, e.Bounds);
// Let the grid draw the content.
e.DrawCell(DrawCellFlags.Content);
// We' re done drawing this cell.
e.Handled = true;
}
}
Editing Cells
By default, the C1FlexGrid control allows users to edit cells by typing into them. You can prevent
users from editing the grid by setting the AllowEditing property to False. You can also prevent
users from editing specific columns by settings the AllowEditing property to False. (When the grid
is bound to a data source, it detects which columns are editable and automatically sets the
AllowEditing property.)
To start editing a cell, the user can:
Start typing into the cell. This replaces the contents of the cell.
Press F2 or Enter. This puts the grid in edit mode and puts the current cell contents in the
editor.
Double-click a cell. This has the same effect as pressing F2, but the cursor appears where
the cell is clicked.
The basic editing mode allows users to type values into the cells. If the column being edited has a
specific data type, values entered by the user are converted into the proper data type automatically.
If the user types a value that cannot be converted into the proper data type, the grid fires a
GridError event and ignores the edits.
The basic editing is sufficient for many applications, but the C1FlexGrid has properties and events
that allow you to control the editing process and provide selection lists, editing buttons, and
advanced validation control.
Starting with version 2.5, the C1FlexGrid also has built-in support for external editors. This allows
you to use any control as a grid editor (for example, you can now use the C1Input controls as grid
editors).
61
See Also
Lists and Combos
Checkboxes
Value-Mapped Lists
Cell Buttons
Masks
Validation
Custom Editors
Edit Mode
Copy Code
62
Copy Code
// Drop-down list.
_flex.Cols[1].ComboList = "Red|Green|Blue|Red|White";
// Drop-down combo.
_flex.Cols[2].ComboList = "|Red|Green|Blue|Red|White";
The ComboList property can also be set at design time using the Combo List dialog box. The
Combo List dialog box allows you to choose if you want the list to appear as a Dropdown List,
Dropdown Combo, Ellipsis Button, or TextBox and Ellipsis Button.
The Combo List dialog box can be accessed through the Column Tasks menu or through the
C1FlexGrid Column Editor.
In the Column Tasks menu, click the ellipsis button in the Combo List box.
In the C1FlexGrid Column Editor, locate the ComboList property in the left pane, and click
the ellipsis button next to it.
63
Note: The Combo List dialog box is column specific and will only change the ComboList
property of the selected column.
In some cases, cells in the same column may need different lists. For example, a property list may
show properties on the first column and their values on the second. The values depend on the
property, so valid choices change from one row to the next. In these cases, you should trap the
BeforeEdit event and set the ComboList property to the appropriate list for the current cell. The
ComboList property applies to the whole grid.
The built-in ComboBox provides an auto-search feature by default. As the user types a value, the
selection will move to the next match. You can disable this feature using the EditOptions property
and control the time before the grid resets the auto-search buffer using the AutoSearchDelay
property.
The built-in ComboBox also has an auto-cycle feature like the editors in the Visual Studio Properties
window. When you double-click a cell that has a list associated with it, the grid will automatically
select the next value. You can also disable this feature using the EditOptions property.
Checkboxes
By default, the grid displays values in Boolean columns as checkboxes (the type of the column is
determined by the DataType property of the Column object). If you don't want Boolean values
displayed as checkboxes, set the column's Format property to a string containing the values that
should be displayed for True and False values. For example:
To write code in Visual Basic
Visual Basic
Copy Code
_flex.Cols["bools"].Format = "Yes;No"
To write code in C#
C#
Copy Code
_flex.Cols["bools"].Format = "Yes;No";
In unbound mode, you can use the GetCellCheck and SetCellCheck properties to add checkboxes to
any cells. The checkboxes will be displayed along with any text in the cell, and you can set their
position using the column's ImageAlign property.
64
There are two types of check boxes: Boolean and tri-state. Boolean check boxes toggle between the
CheckEnum.Checked and CheckEnum.Unchecked states. Tri-state check boxes cycle through the
settings CheckEnum.TSChecked and CheckEnum.TSUnchecked and CheckEnum.TSGrayed.
If the cell has a check box and the AllowEditing property is set to True, the user can change the
state of the check boxes by clicking them with the mouse or by pressing the SPACE bar or ENTER
keys.
By default, toggling the value of checkbox with the mouse or keyboard will toggle all selected
checkboxes. You can disable this feature using the EditOptions property.
Value-Mapped Lists
The ComboList property described above ensures that cell values are selected from a list. The value
selected by the user is converted into the appropriate type for the column and stored in the grid,
exactly as if the user had typed the value.
In many cases, cells can assume values from well-defined lists, but you want to display a userfriendly version of the actual value. For example, if a column contains product codes, you may want
to store the code but display the product name instead.
This is accomplished with the DataMap property. This property contains a reference to an
IDictionary object that establishes the mapping between what is stored in the grid and what is
visible to the user (the IDictionary interface is defined in the System.Collections namespace, and is
implemented by the Hashtable class among others).
For example, the code below creates a data map that contains color values and their names. The
colors are stored in the grid, and their names are displayed to the user:
To write code in Visual Basic
Visual Basic
Copy Code
65
C#
Copy Code
Copy Code
66
Copy Code
67
ld.Add(1, "One");
ld.Add(2, "Two");
ld.Add(3, "Three");
// Arbitrary order.
System.Collections.Hashtable ht = new System.Collections.Hashtable();
ht.Add(0, "Zero");
ht.Add(1, "One");
ht.Add(2, "Two");
ht.Add(3, "Three");
_flex.Cols[1].DataMap = sl;
_flex.Cols[1].Caption = "SortedList";
_flex.Cols[2].DataMap = ld;
_flex.Cols[2].Caption = "ListDictionary";
_flex.Cols[3].DataMap = ht;
_flex.Cols[3].Caption = "HashTable";
}
Also, if the column's DataType property is set to an enumeration, the grid will automatically build
and use a data map with the names of each value in the enumeration. For example, the following
code creates an enumeration containing countries. The country values are stored in the grid, and
their names are displayed to the user:
To write code in Visual Basic
Visual Basic
Copy Code
68
End Sub
To write code in C#
C#
Copy Code
Cell Buttons
Certain types of cells may require sophisticated editors other than text boxes or drop-down lists.
For example, if a column contains file names or a color, it should be edited with a dialog box.
In these cases, you should set the ComboList property to an ellipsis (""). The control will display a
button next to the cell and will fire the CellButtonClick event when the user clicks on it. You can trap
the event, show the dialog box, and update the cell' s contents with the user's selection.
If you add a pipe character before the ellipsis, then the user will also be allowed to edit the cell
contents by typing into the cell.
By default, the cell buttons display the ellipsis. You can assign pictures to the cell buttons using the
CellButtonImage property.
The example below shows how you can use cell buttons to display a color picker dialog box for
choosing a color in a column.
To write code in Visual Basic
69
Visual Basic
'
Copy Code
c.ComboList = "..."
To write code in C#
C#
Copy Code
Copy Code
70
'
Copy Code
Masks
The C1FlexGrid control also supports masked editing. This type of editing uses an input mask to
provide a template and automatically validate the input as the user types. The mask is specified by
the EditMask property, which can be used with regular text fields and with drop-down combo fields.
Mask strings have two types of characters: literal characters, which become part of the input, and
template characters, which serve as placeholders for characters belonging to specific categories (for
example, digits or alphabetic). For example, the code below assigns a "(999) 999-9999" editing
71
mask to column one, which holds phone numbers (the digit "9" is a placeholder that stands for any
digit):
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Copy Code
_flex.Cols(1).DataType = GetType(DateTime)
_flex.Cols(1).Format = "hh:mm tt"
_flex.Cols(1).EditMask = "99:99 LL"
To write code in C#
C#
Copy Code
_flex.Cols[1].DataType = typeof(DateTime);
_flex.Cols[1].Format = "hh:mm tt";
72
The Input Mask dialog box can be accessed through the Column Tasks menu or through the
C1FlexGrid Column Editor.
In the Column Tasks menu, click the ellipsis button in the Edit Mask box.
In the C1FlexGrid Column Editor, locate the EditMask property in the left pane, and click
the ellipsis button next to it.
Note: The Input Mask dialog box is column specific and will only change the EditMask
property of the selected column.
For details on the syntax used to build the mask strings, see the EditMask property in the control
reference section.
If different cells in the same column need different masks, trap the BeforeEdit event and set the
EditMask property to an appropriate value for the current cell.
Validation
In many cases, edit masks alone are not enough to ensure that the data enters by the user was
valid. For example, a mask won't let you specify a range of possible values, or validate the current
cell based on the contents of another cell.
73
In these cases, trap the ValidateEdit event and see if the value contained in the Editor.Text
property is a valid entry for the current cell (at this point, the cell still has the original value in it). If
the input is invalid, set the Cancel parameter to True and the grid will remain in edit mode until the
user types a valid entry.
For example, the code below validates input into a currency column to ensure that values entered
are between 1,000 and 10,000:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
74
if (_flex.Cols[e.Col].DataType == typeof(Decimal))
{
try
{
Decimal dec = Decimal.Parse(_flex.Editor.Text);
if ( dec < 1000 || dec > 10000 )
{
MessageBox.Show("Value must be between 1,000 and 10,000");
e.Cancel = true;
}
}
catch
{
MessageBox.Show("Value not recognized as a Currency");
e.Cancel = true;
}
}
}
Custom Editors
The built-in editors provide a lot of flexibility and power, but in some cases you may want to use
external controls as specialized editors. For example, you may want to use the C1NumericInput
control that provides a drop-down calculator for entering numbers, or an editor for selecting from
multi-column lists, or a specialized control that you wrote to edit your business objects.
Any control that derives from the base Control class can be used as a basic grid editor. Controls
that implement the IC1EmbeddedEditor interface (defined in C1.Common.dll) can provide better
integration with the grid and more advanced features. For details on the IC1EmbeddedEditor
interface, see the Editor property.
To use a control as a custom editor, all you have to do is associate an instance of the control with a
grid column or a style using its Editor property. You can do this in the designer (using the Column
Editor) or in code. After that, the control will be automatically used by the grid.
To define custom editors at design time, add an instance of the editor control to the form, then
select Designer from the C1FlexGrid Tasks menu to open the C1FlexGrid Column Editor. Select
the columns that should use the custom editor and set their Editor properties to the name of the
new editor control.
For example, to use a NumericUpDown control as a grid editor, follow these steps:
75
1.
2.
3.
4.
Run the project and edit some values in the first column. Notice how the grid positions and
initializes the NumericUpDown control so you can edit cell values. When you are done editing a
cell, click a different cell or press the TAB key to move to the next one. Notice how the new value is
applied to the cell.
You can also assign custom editors to the grid using code:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
76
See Also
Creating Custom Editors
We provide source code for this wrapper class in the CustomEditors sample.
Using the UITypeEditor wrapper class, you can use any UITypeEditors with the C1FlexGrid. .NET
provides several UITypeEditors for editing colors, fonts, file names, and so on. You can also write
your own UITypeEditors, in some cases that is easier than writing a control.
Note: For an example of using built-in, custom, and UITypeEditor editors with C1FlexGrid, see
the CustomEditors sample on ComponentOne HelpCentral.
77
Edit Mode
You can determine whether the grid is in edit mode by reading the value of the Editor property. If
this property returns null, the grid is not in edit mode. Otherwise, the grid is in edit mode and the
property returns a reference to the control that is being used to edit the cell (the control may be a
TextBox, a ComboBox, or other type of control).
You can put the grid in edit mode programmatically using the StartEditing method, and finish
editing using the FinishEditing method.
You can control the editing process further by handling the editing events fired by the grid. In the
process of editing a cell, the grid fires the following sequence of events:
Event
Description
BeforeEdit
StartEdit
SetupEditor
This event fires after the editor control has been created and
configured to edit the cell, but before it is displayed. You can
change the editor properties at this point (for example, set the
maximum length or password character to be used in a TextBox
editor). You can also attach your own event handlers to the
editor.
78
Event
Description
ValidateEdit
This event fires when the user is done editing, before the editor
value gets copied back into the grid. You can examine the
original value by retrieving it from the grid (the event provides
the coordinates of the cell). You can examine the new value
about to be assigned to the grid through the Editor properties
(for example, Editor.Text). If the new value is not valid for the
cell, set the Cancel parameter to True and the grid will remain in
edit mode. If instead of keeping the cell in edit mode you would
rather restore the original value and leave edit mode, set Cancel
to True and then call the FinishEditing method.
AfterEdit
This event fires after the new value has been applied to the cell
and the editor has been deactivated. You can use this event to
update anything that depends on the cell value (for example,
subtotals or sorting).
Merging Cells
The C1FlexGrid control allows you to merge cells, making them span multiple rows or columns. This
capability can be used to enhance the appearance and clarity of the data displayed on the grid. The
effect of these settings is similar to the HTML <ROWSPAN> and <COLSPAN> tags.
To enable cell merging, you must do two things:
1.
2.
Set the grid's AllowMerging property to a value other than None. (The effect of each
setting is explained in the reference section.)
If you want to merge columns, set the AllowMerging property to True for each column that
you would like to merge. If you want to merge rows, set the AllowMerging property to True
for each row that you would like to merge
Merging will occur if adjacent cells contain the same non-empty string. There is no method to force
a pair of cells to merge. The merging is done automatically based on the cell contents. This makes it
easy to provide merged views of sorted data, where values in adjacent rows present repeated data.
Cell merging has several possible uses. For example, you can use it to create merged table headers,
merged data views, or grids where the text spills into adjacent columns.
79
See Also
Merged Table Headers
Merged Data Views
Spilling Text
Custom Merging
Copy Code
_flex.Styles.Normal.WordWrap = True
_flex.Cols.Count = 9
_flex.Rows.Fixed = 2
_flex.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.FixedOnly
'
_flex.Rows(0).AllowMerging = True
'
rng = _flex.GetCellRange(0, 5, 0, 8)
80
rng.Data = "South"
For i = 1 To 4
_flex(1, i) = "Qtr " & i
_flex(1, i + 4) = "Qtr " & i
Next
'
_flex.Cols(0).AllowMerging = True
'
rng = _flex.GetCellRange(0, 0, 1, 0)
rng.Data = "Sales by Product"
'
_flex.Styles.Fixed.TextAlign = C1.Win.C1FlexGrid.TextAlignEnum.CenterCenter
_flex.AutoSizeCols(1, _flex.Cols.Count - 1, 10)
End Sub
To write code in C#
C#
Copy Code
81
Copy Code
82
Copy Code
System.EventArgs e)
{
int i;
// Set up cell merging.
_flex.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.RestrictCols;
for (int i = _flex.Cols.Fixed; i <= _flex.Cols.Count - 1; i++)
{
_flex.Cols(i).AllowMerging = true;
}
}
This is the result:
83
Notice how merging the cells has the effect of visually grouping the data and making the
information on the table easier to understand.
Note: For an example of displaying merged data views with C1FlexGrid, see the CellMerging
sample on ComponentOne HelpCentral.
Spilling Text
The AllowMerging property has two settings that operate differently from the others that do not
require you to set the AllowMerging property on specific rows and columns.
Spill Setting
The Spill setting causes text that is too long to fit in a cell to spill into empty adjacent cells. The
resulting behavior is similar to the one in Microsoft Excel. If you type a long entry into a cell and the
adjacent cell is empty, the entry will spill to occupy as much room as needed.
For example, the picture below shows what a grid might look like when AllowMerging is set to Spill
and the user types entries of varying lengths:
84
Nodes Setting
The Nodes setting is similar to Spill but only applies to outline nodes. This setting is useful when
data is organized into groups, and the node rows contain information in a format different from the
data rows.
For example, the picture below shows what a grid might look like when the data is grouped and
summarized using the C1FlexGridBase.Subtotal method, and then AllowMerging is set to Nodes:
This image is similar to the one in the Creating Subtotals topic. The difference is that the subtotal
rows (nodes) now spill onto empty adjacent cells, improving the appearance of the grid.
Custom Merging
85
By default, the grid will merge adjacent cells that contain the same non-null value. String
comparisons are case-sensitive and blanks are included.
If you wanted the grid to merge cells using a case-insensitive comparison and trimming
blanks, you could write a custom class that implements IComparer and assign it to the
CustomComparer property.
Write a new class that derives from the C1FlexGrid and override the GetMergedRange
virtual method, providing your own custom merging logic.
Note: For samples that show how to implement custom merging logic, see the
CustomMerge, CustomMerge2, CustomMerge3, and CustomMerge4 samples on
ComponentOne HelpCentral.
See Also
Creating Subtotals
Creating Custom Trees
Creating Outlines and Trees with the C1FlexGrid Control
Outline Tree
Adding Subtotals
Using the Subtotal Method
Outline Maintenance
Using the Node class
Creating Subtotals
The C1FlexGrid.Subtotal method adds subtotal rows that contain aggregate data for the regular
(non-subtotal) rows.
Subtotal supports hierarchical aggregates. For example, if your grid contains sales data, you may
Subtotal to get aggregate sales figures by Product, Region, and Salesperson. The code below
illustrates this:
86
Copy Code
_flex.Tree.Column = 0
_flex.Tree.Style = TreeStyleFlags.Simple
'
_flex.Subtotal(AggregateEnum.Clear)
'
_flex.AutoSizeCols()
End Sub
To write code in C#
C#
Copy Code
87
_flex.Subtotal(AggregateEnum.Clear);
// Get a Grand total (use -1 instead of column index).
_flex.Subtotal(AggregateEnum.Sum, -1, -1, 3, "Grand Total");
// Total per Product (column 0).
_flex.Subtotal(AggregateEnum.Sum, 0, 0, 3, "Total {0}");
// Total per Region (column 1).
_flex.Subtotal(AggregateEnum.Sum, 1, 1, 3, "Total {0}");
// Size column widths based on content.
_flex.AutoSizeCols();
}
When the C1FlexGrid.Subtotal method adds rows with the aggregate information, it automatically
assigns subtotal styles to the new rows (there are built-in styles for 5 levels of subtotals). You can
customize the appearance of the subtotal rows by changing the properties of the outline styles in
the designer with the Style Editor or with code. For example:
To write code in Visual Basic
Visual Basic
'
Copy Code
Dim cs As C1.Win.C1FlexGrid.CellStyle
cs = _flex.Styles(C1.Win.C1FlexGrid.CellStyleEnum.GrandTotal)
cs.BackColor = Color.Black
cs.ForeColor = Color.White
cs.Font = New Font(Font, FontStyle.Bold)
cs = _flex.Styles(C1.Win.C1FlexGrid.CellStyleEnum.Subtotal0)
cs.BackColor = Color.DarkRed
cs.ForeColor = Color.White
cs.Font = New Font(Font, FontStyle.Bold)
cs = _flex.Styles(C1.Win.C1FlexGrid.CellStyleEnum.Subtotal1)
cs.BackColor = Color.DarkBlue
cs.ForeColor = Color.White
88
To write code in C#
C#
Copy Code
The Grand Total row contains the total sales for all products, regions, and sales personnel. It was
created using a 1 for the groupOn parameter in the call to the C1FlexGrid.Subtotal method. The
89
other subtotals show total sales by product and region. They were created using a values 0 and 1
for the groupOn parameter.
You may also calculate aggregates other than sums (for example, averages or percentages), and
calculate several aggregates for each row (for example, gross and net sales).
Subtotal rows created by the Subtotal method differ from regular rows in three aspects:
1.
2.
3.
4.
Subtotal rows can be automatically removed by invoking the Subtotal method with the
flexSTClear parameter. This is useful to provide dynamic views of the data, where the user
may move columns and re-sort the data, making it necessary to recalculate the subtotals.
Subtotal rows can be used as nodes in an outline, allowing you to collapse and expand
groups of rows to present an overview of the data or to reveal its details. To see the outline
tree, you need to set the Column and Tree.Style properties to define the position and
appearance of the outline tree.
Subtotal rows can be treated as nodes in a tree. You can get a Node object for any subtotal
row through the Node property.
When the grid is bound to a data source, the subtotal rows do not correspond to actual
data. If you move the cursor in the data source, subtotal rows will be skipped in the grid.
The outline tree allows users to collapse and expand sections of the grid by clicking on the nodes.
You can use outline trees to display many types of information, not only aggregates. The next topic
shows how you can create a custom outline tree to display directory information.
'
Copy Code
Imports System.IO
Imports C1.Win.C1FlexGrid
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
90
_flex.Cols.Fixed = 0
_flex.Cols.Count = 1
_flex.Rows.Count = 1
_flex.ExtendLastCol = True
_flex.Styles.Normal.TextAlign = TextAlignEnum.LeftCenter
_flex.Styles.Normal.Border.Style = BorderStyleEnum.None
'
_flex.Tree.Column = 0
_flex.Tree.Style = TreeStyleFlags.SimpleLeaf
_flex.Tree.LineColor = Color.DarkBlue
'
AddDirectory("c:\", 0)
End Sub
To write code in C#
C#
Copy Code
91
_flex.Cols.Fixed = 0;
_flex.Cols.Count = 1;
_flex.Rows.Count = 1;
_flex.ExtendLastCol = true;
_flex.Styles.Normal.TextAlign = TextAlignEnum.LeftCenter;
_flex.Styles.Normal.Border.Style = BorderStyleEnum.None;
// Initialize outline tree.
_flex.Tree.Column = 0;
_flex.Tree.Style = TreeStyleFlags.SimpleLeaf;
_flex.Tree.LineColor = Color.DarkBlue;
// Populate the grid.
AddDirectory(@"c:\\", 0);
}
The code above initializes the grid layout and calls the AddDirectory routine that does the job of
populating the grid and setting up the tree structure:
To write code in Visual Basic
Visual Basic
Copy Code
Dim nd As Node
nd = row.Node
92
nd.Level = level
'
Copy Code
93
row.IsNode = true;
//set node level
Node nd = row.Node;
nd.Level = level;
// add files in this director.
int cnt = 0;
Row r;
foreach (string file in Directory.GetFiles(dir))
{
_flex.AddItem(Path.GetFileName(file).ToLower());
//mark the row without child row as node
r = _flex.Rows[_flex.Rows.Count - 1];
r.IsNode = true;
r.Node.Level = level + 1;
cnt = cnt + 1;
if (cnt > 10) break;
}
// add subdirectories (up to level 4.
if (level <= 4)
{
cnt = 0;
foreach (string subdir in Directory.GetDirectories(dir))
{
AddDirectory(subdir, level + 1);
cnt = cnt + 1;
if (cnt > 10) break;
}
}
}
AddDirectory is a recursive routine that traverses the current directory and all its subdirectories. In
this example, the tree size is limited to four directory levels in order to save time. In a real
application, the routine should be changed to populate tree branches only when they are expanded
(see the FlexGrid for WinForms Tutorials).
This code creates a grid that looks like this:
94
95
All the information is there, but it's hard to see the total sales for each country or customer. You
could use the C1FlexGrid's outlining features to group the data by country (level 0), then by city
within each country (level 1), then by customer within each city (level 2). Here is the same grid with
after adding the outline:
This grid shows the same information as the previous one (it is bound to the same data source), but
it adds a tree where each node contains a summary of the data below it. Nodes can be collapsed to
show only the summary, or expanded to show the detail. Note that each node row can show
summaries for more than one column (in this case, total units sold and total amount).
In this article, we will walk you through the process of turning a regular grid into a richer outline
grid.
See Also
Loading the Data
96
Copy Code
public Form1()
{
InitializeComponent();
// get data
var fields = @"
Country,
City,
SalesPerson,
Quantity,
ExtendedPrice";
var sql = string.Format("SELECT {0} FROM Invoices ORDER BY {0}", fields);
var da = new OleDbDataAdapter(sql, GetConnectionString());
da.Fill(_dt);
// bind grid to data
this._flex.DataSource = _dt;
// format ExtendedPrice column
_flex.Cols["ExtendedPrice"].Format = "n2";
}
The code uses an OleDbDataAdapter to fill a DataTable with data, thenand then assigns the
DataTable to the grid's DataSource property.
After running this code, you would get the "regular grid" shown in the first image. To turn this
regular grid into the outline grid shown in the second image, we need to insert the node rows that
make up the outline.
97
See Also
Creating Node Rows
Node rows are not data bound. When the grid is bound to a data source, each regular row
corresponds to an item in the data source. Node rows do not. Instead, they exist to group
regular rows that contain similar data.
Node rows can be collapsed or expanded. When a node row is collapsed, all its data and
child nodes are hidden. If the outline tree is visible, users can collapse and expand nodes
using the mouse or the keyboard. If the outline tree is not visible, then nodes can only be
expanded or collapsed using code.
To determine whether a row is a node or not, you can use the IsNode property:
To write code in C#
C#
Copy Code
2.
Use the Rows.InsertNode method. This will insert a new node row at a specified index.
Once the node row has been created, you can use it like you would any other row (set the
data for each column, apply styles, etc.). This is the 'low-level' way of inserting totals and
building outlines. It gives the most control and flexibility and is demonstrated below.
Use the C1FlexGrid.Subtotal method. This method scans the entire grid and automatically
inserts node rows with optional subtotals at locations where the grid data changes. This is
the 'high-level' way of inserting totals and building outlines. It requires very little code, but
98
3.
makes some assumptions about how the data is structured on the grid and what the
outline should look like.
If the grid is unbound, then you can turn regular rows into node rows by setting the IsNode
property to true. Note that this only works when the grid is unbound. Trying to turn a
regular data bound row into a node will cause the grid to throw an exception.
The code below shows how you could implement a GroupBy method that inserts node rows
grouping identical values on a given column.
To write code in C#
C#
Copy Code
99
Back to our example, you could use this method to create a two-level outline by calling:
To write code in C#
C#
Copy Code
Copy Code
100
The DeferRefresh class is a simple utility that sets the grid's Redraw property to false and restores
its original value when it is disposed. This ensures that Redraw is properly restored even when
exceptions happen during the updates. Here is the implementation of the DeferRefresh class:
To write code in C#
C#
Copy Code
Copy Code
101
_flex.DataSource = null;
// reset any custom sortin.
_dt.DefaultView.Sort = string.Empty;
// re-bind gri.
_flex.DataSource = _dt;
// format ExtendedPrice colum.
_flex.Cols["ExtendedPrice"].Format = "n2";
// auto-size the columns to fit their conten.
_flex.AutoSizeCols();
}
If you run this code now, you will notice that the node rows are created as expected, but the outline
tree is not visible, so you can't expand and collapse the nodes. The outline tree is described in the
next section.
Outline Tree
The outline tree is very similar to the one you see in a regular TreeView control. It shows an
indented structure with collapse/expand icons next to each node row so the user can expand and
collapse the outline to see the desired level of detail.
The outline tree can be displayed in any column, defined by the Tree.Column property. By default,
this property is set to -1, which causes the tree not to be displayed at all. To show the outline tree
in the example given above, you would use this code:
To write code in C#
C#
Copy Code
102
_flex.Tree.Column = 0;
// autosize to accommodate tree
_flex.AutoSizeCol(_flex.Tree.Column);
// collapse detail nodes
_flex.Tree.Show(1);
}
}
The code calls the previous method to build the outline, thenand then sets the Tree.Column
property to zero in order to show the outline tree in the first column. It also calls the
C1FlexGrid.AutoSizeCol method to ensure that the column is wide enough to accommodate the
outline tree. Finally, it calls the Tree.Show method to display all level-0 nodes (cities in this case)
and hide all the detail.
The Tree property returns a reference to a GridTree object that exposes several methods and
properties used to customize the outline tree. The main ones are listed below:
Column: Gets or sets the index of the column that contains the outline tree. Setting this
property to -1 causes the outline tree to be hidden from the users.
Indent: Gets or sets the indent, in pixels, between adjacent node levels. Higher indent
levels cause the tree to become wider.
Style: Gets or sets the type of outline tree to display. Use this property to determine
whether the tree should include a button bar at the top to allow users to collapse/expand
the entire tree, whether lines and/or symbols should be displayed, and whether lines should
be displayed connecting the tree to data rows as well as node rows.
LineColor: Gets or sets the color of the tree's connecting lines.
LineStyle: Gets or sets the style of the tree's connecting lines.
For example, by changing the code above to include these two lines:
To write code in C#
C#
Copy Code
103
Notice the buttons labeled "1", "2", and "*" on the top left cell. Clicking these buttons would cause
the entire tree to collapse or expand to the corresponding level. Also notice the much wider
indentation and the lines connecting the tree to regular rows ("Anne Dodsworth") as well as to
node rows.
Adding Subtotals
So far we have covered the creation of node rows and outline trees. To make the outlines really
useful, however, the node rows should include summary information for the data they contain.
If you create an outline tree using the C1FlexGrid.Subtotal method, then the subtotals are added
automatically. This will be described in a later section.
If you created the outline tree using the Rows.InsertNode method as described above, then you
should use the C1FlexGrid.Aggregate method to calculate the subtotals for each group of rows and
insert the result directly into the node rows.
The C1FlexGrid.Subtotal method listed below shows how to do this:
To write code in C#
C#
Copy Code
104
{
if (_flex.Rows[r].IsNode)
{
var node = _flex.Rows[r].Node;
if (node.Level == level)
{
// found a node, calculate the sum of extended price
var range = node.GetCellRange();
var sum = _flex.Aggregate(AggregateEnum.Sum,
range.r1, colIndex, range.r2, colIndex,
AggregateFlags.ExcludeNodes);
// show the sum on the grid
// (will use the column format automatically)
_flex[r, colIndex] = sum;
}
}
}
}
The AddSubtotals method scans the grid rows looking for node rows. When a node row of the
desired level is found, the method uses the GetCellRange method to retrieve the node's child rows.
Then it uses the C1FlexGrid.Aggregate method to calculate the sum of the values on the target
column over the entire range. The call to Aggregate includes the ExcludeNodes flag to avoid
double-counting existing nodes. Once the subtotal has been calculated, it is assigned to the node
row's cell with the usual _flex[row, col] indexer.
Note that this does not affect the data source in any way, since node rows are not bound to the
data.
Note also that the method can be used to add multiple totals to each node row. In this example, we
will add totals for the Quantity and ExtendedPrice columns. In addition to sums, you could add
other aggregates such as average, maximum, minimum, etc.
We can now use this method to create a complete outline, with node rows, outline tree, and
subtotals:
To write code in C#
C#
Copy Code
105
AddSubtotals(0, "Quantity");
AddSubtotals(1, "ExtendedPrice");
AddSubtotals(1, "Quantity");
0)
106
This is correct, but it is also a waste of screen real estate. Eliminating these duplicate values is easy;
all you have to do is set the Width of the columns that are being grouped on to zero. When you do
that, however, you should remember to set the grid's AllowMerging property to Nodes, so the text
assigned to the node rows will spill into the visible columns. (Another option would be to assign the
node text to the first visible column, but merging is usually a better solution because it allows you
to use longer text for the node rows).
Here is the revised code and the final result:
To write code in C#
C#
Copy Code
107
AddTotals(0, "Quantity");
AddTotals(1, "ExtendedPrice");
AddTotals(1, "Quantity");
108
The Country and City columns are now invisible, but their values still appear in the node rows.
Collapsing the tree shows totals for each country and city.
Copy Code
109
_flex.Tree.Show(1);
}
}
The Subtotal method is very convenient and flexible. It has a number of overloads that allow you to
specify which columns should be grouped on and totaled on by index or by name, whether to
include a caption in the node rows that it inserts, how to perform the grouping, and so on. The
summary below describes the overloads available:
1.
Subtotal(AggregateEnum aggType)
This version of the method takes only one aggregate type as a parameter. It is useful only
for removing existing subtotals before inserting new ones. In this case, the aggType
parameter is set to AggregateEnum.Clear.
2.
3.
4.
110
should be in different groups and inserts a new node row even though the value of the
groupBy column is the same. These aggregates let you override that behavior and specify
the range of columns that should be considered when identifying a group.
Outline Maintenance
So far we have discussed how to create outlines with trees and totals using the high-level
C1FlexGrid.Subtotal method as well as lower-level Rows.InsertNode and Aggregate methods.
At this point, it is important to remember that the outline tree is created based on the data, but is
not bound to it in any way, and is not automatically maintained when there are changes to the grid
or to the data.
If the user modifies a value in the "ExtendedPrice" column, for example, the subtotals will not be
automatically updated. If the user sorts the grid, the data will be refreshed and the subtotals will
disappear.
There are two common ways to maintain the outlines:
1.
2.
Prevent the user from making any changes that would invalidate the outline. This is the
easiest option. You would set the grid's AllowEditing, AllowDragging, and AllowSorting
properties to false and prevent any changes that would affect the outline.
Update the outline when there are changes to the data or to the grid. You would attach
handlers to the grid's AfterDataRefresh, AfterSort, and AfterEdit events and re-generate the
outline appropriately.
Option 2 is usually more interesting since it provides a quick and simple tool for dynamic data
analysis. This approach is illustrated by the Analyze sample provided with the C1FlexGrid. The
sample creates an initial outline and allows users to reorder the columns. When the column order
changes, the sample automatically re-sorts the data and re-creates the outline. The user can easily
create simple reports showing sales by country, by product, by salesperson, and so on.
111
: null;
Either way, once you have a Node object you can manipulate it using the following properties and
methods:
You can also explore the outline structure using the following methods:
GetCellRange(): Gets a CellRange object that described the range of rows that belong to
this node.
Children: Gets the number of child nodes under this node.
Nodes: Gets a node array containing this node's child nodes.
GetNode: Gets the node that has a given relationship to this node (parent, first child, next
sibling, and so on).
The discussion above focused on bound scenarios, where the grid is attached to a data source that
provides the data. You can also create trees and outlines in unbound scenarios. Things are actually
somewhat simpler in this case, since you can turn any row into a node row by setting its IsNode
property to true.
If the grid is unbound, it owns all the data that is displayed, and you do things that are not possible
when a data source owns the data. For example, you can move nodes around the tree using the
Move method as shown by the TreeNode sample provided with the C1FlexGrid.
Using nodes in an unbound grid is very similar to using nodes in a regular TreeView control.
See Also
Saving and Loading Grids to Text Files
Saving and Loading Microsoft Excel Files
Loading Grids from Databases
Printing Grids
112
113
Visual Basic
Copy Code
Prepare DataReader.
dt.Rows
_flex.Rows.Count = 1
Dim row As Integer = 1
Dim cols As Integer = dt.Columns.Count
Dim v As Object() = CType(Array.CreateInstance(GetType(Object), cols),
Object())
While myReader.Read()
myReader.GetValues(v)
_flex.AddItem(v, row + 1, 1)
End While
'
Cleanup.
_flex.AutoSizeCols()
myReader.Close()
myConn.Close()
End Sub
114
To write code in C#
C#
Copy Code
115
myReader.Close();
myConn.Close();
}
Printing Grids
Use the PrintGrid method to print the contents of the grid. The method has parameters that allow
you to select the scaling mode, whether to display print/preview dialog boxes, set headers and
footers, and so on.
The PrintParameters property exposes additional printing properties such as the font to use for
headers and footers, and a .NET Framework PrintDocument object that can be used to select the
printer, paper size and orientation, margins, and so on.
The code below uses the PrintParameters property to set up the page orientation, margins, header
and footer fonts. Then it calls the PrintGrid method to display a print preview dialog window:
To write code in Visual Basic
Visual Basic
'
Copy Code
Dim pd As Printing.PrintDocument
pd = _flex.PrintParameters.PrintDocument()
'
With pd.DefaultPageSettings
.Landscape = True
.Margins.Left = 150
End With
'
_flex.PrintGrid("C1FlexGrid", C1.Win.C1FlexGrid.PrintGridFlags.FitToPageWidth +
C1.Win.C1FlexGrid.PrintGridFlags.ShowPreviewDialog, "C1FlexGrid" + Chr(9) +
Chr(9) + Format(DateTime.Now, "d"), Chr(9) + Chr(9) + "Page {0} of {1}")
116
To write code in C#
C#
Copy Code
C1FlexGrid Filtering
Data filtering in grids usually comes in two flavors:
Header-based: A filter icon appears over each column that has a filter applied to it. Users
may see and edit the filters by clicking the filter icon. This is the mechanism used by
Windows 7/Vista and by the C1FlexGrid control. The main benefits of this type of filter are:
(1) the user can see which columns are being filtered, (2) the filtering does not require extra
real estate on the screen, and (3) this type of filter allows for better filter editors and easier
customization.
Filter Row: A filter row remains always visible and allows users to type values or
expressions directly into the row. The main benefit of this type of filter is that users can
always see which columns are being filtered and what the current filter criteria are. The
main disadvantage is that the filter takes up some real estate and may interfere with the
regular grid operation. Although filter rows are not built into the C1FlexGrid control,
implementing them is relatively easy. We provide a FilterRow sample that shows how to
do it.
117
The code samples presented below were mostly taken from two new samples included with the
product: ColumnFilters and CustomFilters. Please refer to the samples for complete projects that
show the features in action.
See Also
AllowFiltering property
Managing filters programmatically
Applying filters programmatically
Customizing filter behavior
Customizing the Filtering UI
AllowFiltering property
To implement the header-based filters, the C1FlexGrid control follows the same pattern used to
implement column moving and sizing. The grid has a new AllowFiltering property that controls
filtering at a control level, and the grid's Column object also has an AllowFiltering property that
controls filtering at the column level.
To enable simple filtering scenarios, users simply set the grid's AllowFiltering property to True. They
can then disable or customize the filtering behavior for specific columns by changing the value of
the column's AllowFiltering property. The column's AllowFiltering property may be set to one of the
following values:
Default: The grid automatically creates a filter of type ColumnFilter. This filter combines a
ValueFilter and a ConditionFilter, both described below.
ByValue: The grid automatically creates a filter of type ValueFilter. This filter contains a list
of values that should be displayed. Any values not present on the list are hidden from the
end user.
ByCondition: The grid automatically creates a filter of type ConditionFilter. This filter
specifies two conditions such as "greater than" or "contains". The conditions may be
combined with an AND or an OR operator.
Custom: The grid does not create a filter automatically. The developer is expected to
instantiate a filter and explicitly assign it to the column's Filter property.
None: The column cannot be filtered.
By default, the C1FlexGrid control localizes the column filter editor to use the language specified by
the CurrentUICulture setting. However, you can use the Language property to override the default
and specify the language that should be used when the grid displays the column filter editor.
Value Filter
118
The ValueFilter is conceptually very simple. It contains a list of values, and only the values listed are
displayed on the grid. If the list is set to null, the filter is de-activated and all values are displayed.
This type of filter is recommended for filtering columns that contain discrete values such as names
or enumerations.
The ValueFilter editor consists of a list of values with checkboxes. Users may check or uncheck all
values at once. Navigating long lists is easy with the advanced built-in keyboard navigation. The
editor implements a flexible search buffer that allows users to locate values by typing any part of
the value. For example, typing "Hilton" will select the next value that contains "Hilton", including
"New York Hilton", "Prince Edward Hilton", or "Paris Hilton". Also, typing ctrl+Up or ctrl+Down will
navigate to the next or previous checked item.
Values are displayed on the list using the Format currently assigned to the column.
This image shows the ValueFilter editor.
Condition Filter
The ConditionFilter is more flexible. Instead of selecting specific values, it allows users to specify up
to two conditions using operators such as "greater than", "starts with", or "contains". This type of
filter is recommended for filtering columns that contain "continuous" values such as numeric or
date/time values.
This image shows the ConditionFilter editor.
119
Columns that have filters applied display the filter icon on their headers even when the mouse is
not over them. You can see this in the images, where the ProductName and Quantity column
headers show the filter icon.
The built-in filters support automatic localization in the following languages: English, Spanish,
French, Italian, Portuguese, German, Dutch, Russian, Japanese, Greek, Danish, Finnish, Norwegian,
Swedish, Arabic, Polish, Chinese (Traditional: Tawain, Hong Kong, Macao; Simplified: PRC,
Singapore), Turkish, Persian (Farsi), Korean, and Hebrew. The localization is built-in and does not
require satellite dlls.
Custom Filters
Custom filters may be created to handle specialized values. For example, custom filters would be
recommended to filter on colors, geographic, or custom data types.
To create a custom filter, the developer must create two classes:
Filter: This class must implement the IC1ColumnFilter interface, which specifies methods
used to apply the filter to a specific value, to reset the filter, and to return an editor to be
used for viewing and editing the filter's parameters.
Filter Editor: This class must inherit from Control and must implement the
IC1ColumnFilterEditor interface, which specifies methods used to initialize the editor and to
apply changes to the filter.
120
The CustomFilters sample contains implementations of three custom filters used for filtering values
of type Color, DateTime, and string.
Copy Code
Copy Code
121
Copy Code
public Form1()
{
InitializeComponent();
// get some data
var da = new OleDbDataAdapter("select * from products",
GetConnectionString());
var dtProducts = new DataTable();
da.Fill(dtProducts);
// bind the grid to the data
_flex.DataSource = dtProducts;
// enable filtering
_flex.AllowFiltering = true;
122
Copy Code
Copy Code
123
If instead of requiring a button click you simply wanted to apply the filter after every edit, you could
call the ApplyFilter directly from the AfterEdit event handler, as shown below:
To write code in C#
C#
Copy Code
Copy Code
public Form1()
{
InitializeComponent();
// configure grid
_flex.AllowFiltering = true;
_flex.DataSource = dtInvoices;
// create style for rows excluded by the filter
var cs = _flexStyles.Styles.Add("filteredOut");
cs.BackColor = Color.LightSalmon;
cs.ForeColor = Color.DarkOrange;
// connect handlers for the before and after filter events
_flex.BeforeFilter += _flex_BeforeFilter;
124
_flex.AfterFilter += _flex_AfterFilter;
}
The code creates a custom style that will be used to show rows that did not pass the filter (instead
of making them invisible). Next, the code attaches handlers for the BeforeFilter and AfterFilter
events. The event handlers are listed below:
To write code in C#
C#
Copy Code
125
// resume updates
_flexStyles.EndUpdate();
}
The BeforeFilter event handler calls the new BeginUpdate method to prevent the grid from
repainting itself until we are done applying the custom style to the rows that are filtered out. The
BeginUpdate and EndUpdate methods replace the Redraw property which has been deprecated.
The AfterFilter event handler starts by retrieving the style we created to show the rows that have
been filtered out. It then scans the rows on the grid and applies the new style to all rows that have
the Visible property set to False. These are the rows that were hidden by the filter. Once this is
done, the code calls EndUpdate to restore grid updating.
Copy Code
public Form1()
{
InitializeComponent();
// configure timer to apply the filter 1/2 second after the
// user stops typing into the search box
_timer.Interval = 500;
_timer.Tick += t_Tick;
// monitor changes to the search box
126
_txtSearch.TextChanged += _txtSearch_TextChanged;
}
// re-start timer when the text in the search box changes
void _txtSearch_TextChanged(object sender, EventArgs e)
{
_timer.Stop();
_timer.Start();
}
Now that the timer is configured, all we need to do is create and apply the filter when the timer
ticks:
To write code in C#
C#
Copy Code
127
}
}
_flex.Rows[r].Visible = visible;
}
_flex.EndUpdate();
}
Grid Layout
Rows, Cols, AutoSizeCols, ScrollBars
2.
3.
Editing
AllowEditing, ComboList, EditMask, BeforeEdit, StartEdit, ValidateEdit, AfterEdit, StartEditing,
FinishEditing, Editor, CellButtonClick, KeyDownEdit, KeyPressEdit, KeyUpEdit, ChangeEdit
4.
5.
User Interface
AllowEditing, AllowMerging, AllowResizing, AllowDragging, AllowSorting, BeforeSort,
AfterSort, AutoSearch, AutoSearchDelay, BeforeDragColumn, AfterDragColumn,
BeforeDragRow, AfterDragRow, BeforeResizeColumn, AfterResizeColumn, BeforeResizeRow,
AfterResizeRow, ShowScrollTip
128
6.
7.
Merging Cells
AllowMerging
8.
Data Binding
DataSource, DataMember, AfterDataRefresh, AutoResize, GridError
9.
Data Binding
Data binding is a process that allows one or more data consumers to be connected to a data
provider in a synchronized manner. If you move the cursor on a data-bound grid, other controls
connected to the same data source will change to reflect the new current record. If you edit a value
on a data-bound grid, other controls connected to the same data source will change to reflect the
new value.
C1FlexGrid supports data binding to ADO.NET data source objects such as DataTable, DataView,
DataSet, and DataViewManager.
C1FlexGrid also supports data binding to ComponentOne DataObjects for WinForms
components such as C1ExpressTable, C1ExpressView, C1ExpressConnection, C1DataView,
C1DataTableSource and C1DataSet.
To bind the grid to a data source, assign the data source object to the grid's DataSource property. If
the data source object contains more than one table, you must also set the DataMember property a
string that specifies which table should be used.
Alternatively, you can assign both properties simultaneously with a single call to the SetDataBinding
method.
129
When you assign a new data source to the grid, it will automatically refresh its columns to bind to
the columns available in the data source. You can then customize the columns by moving, hiding,
or deleting them. You can also set column properties such as their Width, EditMask and Format.
For an example of reordering the grid columns after binding to a data source, see the
ColumnOrder sample on ComponentOne HelpCentral
For details about creating ADO.NET data source objects, please refer to the .NET Framework
documentation.
For details about using ComponentOne DataObjects for WinForms, see the ComponentOne
DataObjects for WinForms documentation included in ComponentOne Studio Enterprise and
ComponentOne Studio for WinForms.
See Also
Binding to a Data Source
Storing and Retrieving Data
130
The Data Source Configuration Wizard walks you through adding a data source step by step. The
Choose a Data Source Type page allows you to choose which type of application you would like to
gather information from. The default selection is Database.
On the Choose Your Data Connection page, you can specify the location of the database. If you
have not already connected to the database, you can specify a new connection by clicking the New
Connection button. Clicking the New Connection button opens the Add Connection dialog box
where you can browse to the location of your database and test the connection.
Mobile device users click here for additional information.
If you are using the Mobile edition of ComponentOne FlexGrid for WinForms, in the Add
Connection dialog box, change the Data source to one that is supported by the Compact
Framework, such as the .NET Framework Data Provider for SQL Server Mobile Edition.
131
Then you can use a supported database, for example, a SQL Server Mobile Edition Database.
Microsoft provides a Northwind.sdf, by default, in the C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\SQL Server\Mobile\v3.0 folder for Microsoft Visual Studio 2005.
The wizard saves and names your connection on the Save the Connection String to the
Application Configuration File page. On this page you can specify a name or use the default
provided by the wizard.
On the Choose Your Database Objects page you can specify which tables and fields you want to
include in your DataSet. You can also provide a name for your DataSet or use the default provided
by the wizard.
132
The wizard creates the DataSet, BindingSource, and TableAdapter, and adds them to your project.
Click the drop-down arrow again next to the DataSource property or the Choose Data Source box
in the C1FlexGrid Tasks menu and then select the data source. If you double-click the form, you
will also notice that the code to fill the database is automatically generated in the Form_Load
event.
Copy Code
133
Row[2].Selected = True
To write code in C#
C#
Copy Code
Row[2].Selected = true;
The Item property is another easy way to access data in the C1FlexGrid. The Item property is an
indexer that takes row and column indices and gets or sets the data stored in the cell. (You can also
use column names as indices.) For example, the following code stores row numbers in the first grid
column:
To write code in Visual Basic
Visual Basic
Copy Code
Dim r As Integer
For r = _flex.Rows.Fixed To _flex.Rows.Count - 1
_flex(r, 0) = r
Next
To write code in C#
C#
Copy Code
134
You can also set and retrieve the contents of the selection using the Clip property. This property is
especially useful in handling the clipboard and drag-drop operations. By default, the Clip property
returns a string with tab characters (Chr(9)) between cells and return characters (Chr(13)) between
rows. To use different delimiters, change the ClipSeparators property.
Finally, you can set and retrieve the contents of arbitrary cell ranges using CellRange objects.
Description
AutoSizeEdit
This sample demonstrates resizing the editor while the user types. This
sample uses the C1FlexGrid control.
BarChart
This sample uses OwnerDrawn cells to build a chart based on the grid
data. This sample uses the C1FlexGrid control.
Blinker
This sample shows how you can use CellStyles to make cells blink. The
sample creates a custom style and uses a timer to change the foregound
color on that style. This causes all cells that have that style to blink.This
sample uses the C1FlexGrid control.
BoundDelete
This sample deletes rows from a bound FlexGrid. This sample uses the
C1FlexGrid control.
BoundFinishEdit
135
Sample
Description
BoundImage
This sample shows how to bind the grid to image fields stored as OLE
objects. This sample uses the C1FlexGrid control.
C1FlexGridPrintable
CellBorders
This sample uses OwnerDraw to provide custom cell borders. This sample
uses the C1FlexGrid control.
CellDataType
This sample assigns cell types (and editors) on a per-cell basis. This
sample uses the C1FlexGrid control.
CellMerging
CellNotes
This sample attaches notes to cells on a C1FlexGrid and implements Excelstyle cell notes using two classes: CellNote and CellNoteManager.
ColumnEditor
CustomDataMap
CustomEditor
This sample shows how to implement your own cell editor. This sample
uses the C1FlexGrid control.
CustomMerge
This sample shows how to implement your own merging logic to create a
TV-guide display. This sample calls the C1.Win.C1FlexGrid namespace.
CustomMerge2
This sample shows how to implement your own merging logic to mix
merging modes. This sample calls the C1.Win.C1FlexGrid namespace.
136
Sample
Description
CustomMerge3
CustomMerge4
CustomPrint
This sample uses the CreateImage method to print grids with arbitrary
row and column breaks. This sample uses the C1FlexGrid control.
CustomTree
This sample uses the C1FlexGrid control to build a tree. This sample uses
the C1FlexGrid control.
DataIndex
This sample uses the Row.DataIndex property to get the underlying data
row. This sample uses the C1FlexGrid control.
DataMap
DataReader
This sample populates a grid from a DataReader. This sample uses the
C1FlexGrid control.
DataTable
This sample shows how you can create, populate, and bind a DataTable
object to the grid (including add/remove rows). This sample uses the
C1FlexGrid control.
DataTree
This sample binds the grid to a hierarchical data source and show details
in child grids.
DBDynamicStyles
This sample assigns styles to grid cells based on their contents. This
sample uses the C1FlexGrid control.
DBImageField
This sample shows images stored in a DataTable. This sample uses the
C1FlexGrid control.
137
Sample
Description
DBSchemaChange
This sample shows how to test grid response to changes in the data
source object. This sample uses the C1FlexGrid control.
DBTree
This sample shows how to display bound data in a hierarchical tree view.
This sample uses the C1FlexGrid control.
DragDrop
This sample shows how to customize automatic Drag & Drop. This sample
uses the C1FlexGrid control.
DragDropManual
DragRow
This sample shows how to drag rows between grids. This sample uses the
C1FlexGrid control.
DynamicStyles
This sample shows how to assign styles to a cell based on the contents of
another cell. This sample uses the C1FlexGrid control.
Editing
This sample demonstrates how to edit cells using textboxes, lists, masks,
and checkboxes. This sample uses the C1FlexGrid control.
FilterRow_With_Totals
This sample shows a how to add totals to a bound grid with a FilterRow.
FlexByRow
FlexGroup
This sample shows how you can implement Outlook-style grouping and
filtering using the C1FlexGrid. This sample uses the C1FlexGrid control.
FreezeBottom
138
Sample
Description
GridChart
This samples show how you can attach a FlexGrid to a C1Chart control.
This sample uses the C1FlexGrid and C1Chart controls.
HierData
This sample shows how you can bind to hierarchical data sources (masterdetail style). This sample uses the C1FlexGrid control.
Hyperlink
This sample shows how you can add hyperlinks to cells in the C1FlexGrid.
This sample uses the C1FlexGrid control.
LoadSpeed
This sample shows three techinques for loading data into a C1FlexGrid.
MapAndGroup
This sample shows grouping and sorting behavior when using datamapped columns. This sample uses the C1FlexGrid control.
MergeStyles
This sample merges CellStyles assigned to rows, columns, and cells. This
sample uses the C1FlexGrid control.
MultiColumnDictionary
Outline
This sample shows how to hide repeated data in an outline. This sample
uses the C1FlexGrid control.
PdfExportVB
ProductTree
RTFGrid
This sample shows how to display RTF text in grid cells. This sample uses
the C1FlexGrid control.
ScrollPosition
This sample shows how the ScrollPosition property works. This sample
uses the C1FlexGrid control.
139
Sample
Description
SelectionMode
This sample shows the effect of the SelectionMode property. This sample
uses the C1FlexGrid control.
Sorting
This sample shows several sorting techniques. This sample uses the
C1FlexGrid control.
Splits
StartEditing
This sample implements a grid that stays in cell-editing mode. This sample
uses the C1FlexGrid control.
Styles
This sample shows how you can use Styles to customize the appearance
of the C1FlexGrid. This sample uses the C1FlexGrid control.
Subtotals
This sample creates subtotals for multiple columns. This sample uses the
C1FlexGrid control.
Transpose
This sample shows how to transpose data in a grid. This sample uses the
C1FlexGrid control.
TreeCheck
This sample shows how to add checkboxes to a grid tree. This sample
uses the C1FlexGrid control.
TreeNode
This sample shows how to manage an outline tree using the C1FlexGrid
Node objects. This sample uses the C1FlexGrid control.
Validate
This sample shows how to use the ErrorProvider control with the
C1FlexGrid. This sample uses the C1FlexGrid control.
ZoomCell
C# Samples
140
Sample
Description
AcceleratorCaption
Analyze
This sample shows how to provide dynamic data sorting and grouping.
This sample uses the C1FlexGrid control.
AnimagedGif
AutoComplete
This sample shows how to complete entries while the user types.
AutoSizeEdit
This sample shows how to resize the editor while the user types. This
sample uses the C1FlexGrid control.
BarChart
This sample shows how to draw bar charts using the grid cells. This
sample uses the C1FlexGrid control.
Blinker
BoundDelete
This sample shows how to delete rows from a bound FlexGrid. This sample
uses the C1FlexGrid control.
BoundFinishEdit
BoundImageMap
This sample shows how to use the ImageMap property with a data-bound
grid. This sample uses the C1FlexGrid control.
C1FlexGridPrintable
CellBorders
This sample shows how to use OwnerDraw to provide custom cell borders.
This sample uses the C1FlexGrid control.
141
Sample
Description
CellDataType
This sample shows how to assign cell types (and editors) on a per-cell
basis. This sample uses the C1FlexGrid control.
CellLabelDelay
This sample shows how to show cell labels after a specified interval.
CellNotes
This sample attaches notes to cells on a C1FlexGrid and implements Excelstyle cell notes using two classes: CellNote and CellNoteManager.
Classic
This sample shows a grid that derives from C1FlexGrid and provides an
(C1FlexGridClassic)
ColumnEditor
This sample shows how to expose the FlexGrid design-time column editor
in your controls. This sample uses the C1FlexGrid control.
ColumnFilters
This sample shows how to use the filtering feature in C1FlexGrid 2010.
The sample shows how you can control and customize the grid's built-in
filters using the AllowFiltering property and the AfterFilter event.
ColumnOrder
This sample shows how to position columns dynamically. This sample uses
the C1FlexGrid control.
ColumnWidthTip
This sample shows how to show a ToolTip while the user resizes columns.
CrossTabs
CustomData
This sample shows how to implement a custom data source object. This
sample uses the C1FlexGrid control.
CustomDataMap
This sample shows how to customize the options in drop-down lists when
using DataMaps. This sample uses the C1FlexGrid control.
CustomEditor
This sample shows how to implement your own cell editor. This sample
142
Sample
Description
uses the C1FlexGrid control.
CustomEditors
This sample shows how to use built-in, .NET, and custom edit controls
with the C1FlexGrid.
CustomFilters
This sample shows how to implement custom filters for the C1FlexGrid.
CustomMerge
This sample shows how to implement your own merging logic to create a
TV-guide display. This sample calls the C1.Win.C1FlexGrid namespace.
CustomMerge2
This sample shows how to implement your own merging logic to mix
merging modes. This sample calls the C1.Win.C1FlexGrid namespace.
CustomMerge3
CustomMerge4
CustomPrint
This sample shows how to use the CreateImage method to print grids
with arbitrary row and column breaks. This sample uses the C1FlexGrid
control.
CustomPrintMultiGrid
This sample shows how to use the CreateImage method to print multiple
grids in a single document.
CustomSelection
CustomSort
This sample shows how to implement your own sorting logic with a
custom IComparer object. This sample uses the C1FlexGrid control.
DataIndex
This sample shows how to use the Row.DataIndex property to get the
143
Sample
Description
underlying data row. This sample uses the C1FlexGrid control.
DataTable
This sample shows how to bind to a DataTable, add and remove rows.
This sample uses the C1FlexGrid control.
DataTree
This sample shows how to bind the grid to a hierarchical data source and
show details in child grids. This sample calls the C1.Win.C1FlexGrid
namespace.
DBDynamicStyles
This sample shows how to assign styles to grid cells based on their
contents. This sample uses the C1FlexGrid control.
DBImageField
DBImages
This sample shows how to bind the grid to a data base with image fields
stored as OLE objects. This sample uses the C1FlexGrid control.
DBSchemaChange
This sample shows how to test grid response to changes in the data
source object. This sample uses the C1FlexGrid control.
DBTree
This sample shows how to display bound data in a hierarchical tree view.
This sample uses the C1FlexGrid control.
DBUpdate
This sample shows how to save changes to the underlying database. This
sample uses the C1FlexGrid control.
DragDrop
This sample shows how to customize automatic Drag & Drop This sample
uses the C1FlexGrid control.
DragImages
This sample shows how to customize Ole Drag and Drop to use cell
images.
144
Sample
Description
DragMerged
This sample shows how to drag groups of merged columns. This sample
uses the C1FlexGrid control.
DragRow
This sample shows how to drag rows between grids. This sample uses the
C1FlexGrid control.
DynamicStyles
This sample shows how to assign styles to a cell based on the contents of
another cell. This sample uses the C1FlexGrid control.
ErrorInfo
Excel
This sample shows how to load and save Microsoft Excel files (.xls).
ExcelStyleFilter
This sample adds a context-menu that allows sorting and filtering data.
FilterRow
FindRow
This sample shows how to how to find a row in the underlying datasource.
This sample uses the C1FlexGrid control.
FlexByRow
FlexGroup
FlexHierarchical
This sample shows how to implement hierarchical data binding using the
C1FlexGrid. This sample calls the C1.Win.C1FlexGrid namespace.
FreezeBottom
145
Sample
Description
GridChart
HierData
HierData2
HostControls
This sample shows how to host controls in grid cells. This sample uses the
C1FlexGrid control.
Hyperlink
This sample shows how to add hyperlinks to cells in the FlexGrid. This
sample uses the C1FlexGrid control.
LegacyDates
LockedColumns
This sample shows how to prevent the user from selecting certain
columns.
MasterDetail
This sample shows how to create and bind master-detail DataSets in code.
This sample calls the C1.Win.C1FlexGrid namespace.
MergeStyles
MultiColumnDictionary
MultiParent
MultiSelection
146
Sample
Description
NewFeatures20091
This sample shows the new features that were added for the V1/2009
release.
NewRowTemplate
This sample shows how to place a new row template above the grid.
Outline
This sample shows how to hide repeated data in an outline. This sample
uses the C1FlexGrid control.
OwnerDraw
OwnerDrawAlpha
PasswordChar
This sample shows how to use the C1FlexGrid to enter and edit
passwords. This sample uses the C1FlexGrid control.
PdfExport
This sample shows how to use the C1Pdf method to export C1FlexGrids to
PDF files.
RowStateDisplay
RTFGrid
This sample shows how to display RTF text in grid cells. This sample uses
the C1FlexGrid control.
ScrollPosition
This sample shows how to shows how the ScrollPosition property works.
This sample uses the C1FlexGrid control.
SelectionMode
SetupEditor
This sample shows how to use the SetupEditor event to customize the
grid editors. This sample uses the C1FlexGrid control.
147
Sample
Description
SimpleCalc
Sorting
This sample shows how to shows several sorting techniques. This sample
uses the C1FlexGrid control.
SortNulls
This sample shows how to use a custom sort to place null values at the
bottom of the grid.
Splits
This sample shows how to split a C1FlexGrid into multiple views. This
sample uses the C1FlexGrid control.
SqlBuilder
StartEditing
Subtotals
This sample shows how to create subtotals for multiple columns. This
sample uses the C1FlexGrid control.
Themes
This sample shows how to change the appearance of the grid to achieve
one of several pre-defined looks.
ThreadedUpdate
This sample shows how to update the grid from a different thread.
TreeCheck
This sample shows how to add checkboxes to a grid tree. This sample uses
the C1FlexGrid control.
TreeNode
This sample shows how to manage an outline tree using the FlexGrid
Node objects. This sample uses the C1FlexGrid control.
TriStateBound
148
Sample
Description
Boolean columns. This sample calls the C1.Win.C1FlexGrid namespace.
UnboundColumns
ZoomCell
Description
Analyze
This sample shows how to provide dynamic data sorting and grouping.
This sample uses the C1FlexGrid control.
BarChart
This sample shows how to draw bar charts using the grid cells. This
sample uses the C1FlexGrid control.
EditData
ThreadedUpdate
This sample shows how to update the grid from a different thread.
Description
Analyze
This sample shows how to provide dynamic data sorting and grouping.
This sample uses the C1FlexGrid control.
BarChart
This sample shows how to draw bar charts using the grid cells. This
sample uses the C1FlexGrid control.
ContextMenu
149
Sample
Description
DataTree
EditData
MasterDetail
This sample demonstrates how to show hierarchial data using two grids.
TransparentImages
Description
Edit Tutorial
Outline
Tutorial
Data Analysis
Tutorial
150
See Also
Edit Tutorial
Outline Tutorial
Data Analysis Tutorial
Edit Tutorial
This tutorial starts with a basic data-entry grid, then adds the following features:
1.
2.
3.
4.
5.
6.
Formatting
Check boxes
Drop-down lists
Complex data validation
Clipboard support
Custom editors
Note: A video is available for this tutorial on the ComponentOne Videos Web page.
See Also
Step 1 of 6: Create the C1FlexGrid Control for the Edit Tutorial
Step 2 of 6: Set Column Types and Formats
151
2.
Set the following properties in the Properties window for the C1FlexGrid control:
Property
Setting
Dock
Fill
Cols.Count
Cols.Fixed
Double-click the form caption area to open the code window. At the top of the file, add the
following statement:
To write code in Visual Basic
Visual Basic
Copy Code
Imports C1.Win.C1FlexGrid
To write code in C#
C#
Copy Code
152
using C1.Win.C1FlexGrid;
This makes the objects defined in the C1FlexGrid assembly visible to the project and saves a
lot of typing.
3.
Set up the columns by either in the designer through the Column Tasks menu or the
C1FlexGrid Column Editor, or in code.
In the Designer
o
o
o
Select the first column in the grid. This will open the Column Tasks menu for the
column.
Enter Product in the Column Caption and Data Field boxes.
Set the Column Caption and Data Field boxes for the remainder of the columns
as follows:
Column 1
Column
Region
Caption
Data Field
Region
Column 2
Column
Salesperson
Caption
Data Field
Salesperson
Column 3
Column
Sales
Caption
Data Field
Sales
Column 4
153
Column 1
Column
Bonus
Caption
Data Field
Bonus
Alternatively, the columns can also be set up through the C1FlexGrid Column Editor:
o
o
o
o
Region
Caption
Region
Column 2
Name
Salesperson
Caption
Salesperson
Column 3
Name
Sales
Caption
Sales
Column 4
Name
Bonus
154
Column 1
Caption
Bonus
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
155
In the Designer
1.
2.
3.
4.
5.
6.
7.
Select the Sales column in the grid. This will open the Column Tasks menu for the Sales
column.
Set the Data Type box to Decimal.
Click the ellipsis button in the Format String box to open the Format String dialog box.
Under Format type select Currency.
Click OK to close the Format String dialog box.
Select the Bonus column in the grid. This will open the Column Tasks menu for the Bonus
column.
Set the Data Type box to Boolean.
Alternatively, the DataType and Format properties can also be set up through the C1FlexGrid
Column Editor:
1.
2.
3.
4.
Open the C1FlexGrid Column Editor by selecting Designer in the C1FlexGrid Tasks
menu. For details on how to access the C1FlexGrid Column Editor, see Accessing the
C1FlexGrid Column Editor.
Select the Sales column in the right pane.
Set the DataType property to Decimal.
Click the ellipsis button next to the Format property. This will open the Format String
dialog box.
156
5.
6.
7.
8.
9.
In Code
To specify the DataType and Format for the columns, add the following code after the code added
in Step 1 of 6: Create the C1FlexGrid Control for the Edit Tutorial:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
The new code formats the Sales column to store and display currency values, and the Bonus column
to deal with Boolean values.
If you enter some numeric and non-numeric values in the Sales column, you will notice that the grid
won't accept non-numeric entries. The Bonus column displays values as checkboxes, which can be
toggled with the mouse or with the keyboard. This is the default behavior for Boolean columns.
Note that the Format property does not affect the data in any way, only how it is displayed.
In the Designer
1.
2.
Select the Product column. This will open the Column Tasks menu for the Product column.
Click the ellipsis button in the Combo List box to open the Combo List dialog box.
158
3.
4.
5.
6.
7.
8. Click OK.
9. Select the Salesperson column.
10. Click the ellipsis button in the Combo List box.
159
2.
3.
4.
5.
6.
7.
8.
Open the C1FlexGrid Column Editor by selecting Designer in the C1FlexGrid Tasks
menu. For details on how to access the C1FlexGrid Column Editor, see Accessing the
C1FlexGrid Column Editor.
Select the Productcolumn in the right pane.
In the left pane, set the ComboList property to Applets|Wahoos|Gadgets.
Select the Region column in the right pane.
In the left pane, set the ComboList property to North|South|East|West.
Select the Salesperson column in the right pane.
In the left pane set the ComboList property to |Mary|Paula|Sarah.
Click OK to close the editor.
In Code
To add the combolists, add the following code after the code added in Step 2 of 6: Set Column
Types and Formats:
To write code in Visual Basic
Visual Basic
Copy Code
160
Cols("Product").ComboList = "Applets|Wahoos|Gadgets"
C1FlexGrid1.Cols("Region").ComboList = "North|South|East|West"
C1FlexGrid1.Cols("Salesperson").ComboList = "|Mary|Paula|Sarah"
To write code in C#
C#
Copy Code
161
Copy Code
162
To write code in C#
C#
Copy Code
163
Press F5 to run the project again, then try inputting some bad values. You will see that the control
will reject them.
In the Designer
Locate the AutoClipboard property in the Properties window and set it to True.
In Code
Add the following code after the code added in Step 3 of 6: Incorporate Drop-Down Lists:
To write code in Visual Basic
Visual Basic
Copy Code
C1FlexGrid1.AutoClipboard = True
To write code in C#
C#
Copy Code
c1FlexGrid1.AutoClipboard = true;
Another great Windows feature that is closely related to clipboard operations is OLE Drag and
Drop. C1FlexGrid has two properties, DragMode and DropMode, which help implement this feature.
164
Just set both properties to their automatic settings either in the designer or in code, and you will be
able to drag selections by their edges and drop them into other applications such as Microsoft
Excel, or drag ranges from an Excel spreadsheet and drop them into the C1FlexGrid control.
In the Designer
Locate the DragMode and DropMode properties and set them both to Automatic.
In Code
Add the following code after the code to set the AutoClipboard property:
To write code in Visual Basic
Visual Basic
Copy Code
C1FlexGrid1.DragMode = DragModeEnum.Automatic
C1FlexGrid1.DropMode = DropModeEnum.Automatic
To write code in C#
C#
Copy Code
c1FlexGrid1.DragMode = DragModeEnum.Automatic;
c1FlexGrid1.DropMode = DropModeEnum.Automatic;
165
1.
Set the following properties the Properties window to for the NumericUpDown control:
Property
Setting
BorderStyle
None
DecimalPlaces
Maximum
5000000
ThousandsSeparator True
Visible
2.
3.
False
Select Designer from the C1FlexGrid Tasks menu to bring up the grid's column editor.
Select the Sales column (or Column 3 where the Sales figures will be), and set the Editor
property to NumericUpDown1.
166
But the custom editor doesn't behave exactly like the built-in ones. For example:
1.
2.
3.
When you start editing by typing a number, the old value isn't cleared.
The size of the editor isn't exactly right (it looks a bit too small).
There's a beep when you press ENTER to finish editing.
You can overcome these problems in a couple of ways. One way would be to use the editor's
events, but that would make it difficult to reuse the control in other projects. Another way would be
to create a derived class and implement some methods in the IC1EmbeddedEditor interface, as in
the following code.
To write code in Visual Basic
Visual Basic
Copy Code
167
Copy Code
168
Select(0, int.MaxValue);
}
// Set the FontHeight so the control honors the rectangle height.
public void C1EditorUpdateBounds(Rectangle rc)
{
base.FontHeight = rc.Height;
Bounds = rc;
}
// Suppress the beeps when a user presses ENTER.
override protected bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Enter)
{
Parent.Focus();
if (Parent.Focused) SendKeys.Send("{Down}");
return true;
}
return base.ProcessDialogKey(keyData);
}
}
The previous code implements three methods:
C1EditorInitialize is called to initialize the editor. It sets the initial value and then selects
the whole entry. This will take care of the first problem. Because the whole entry is selected,
typing the first character will now replace the current contents as we want.
C1EditorUpdateBounds is called to position the editor over the cell being edited. The
height of the NumericUpDown control is set automatically based on the font size, though
(that is why it looks too short for the cell). The code sets the editor's FontHeight property
so it will be positioned exactly over the cell.
ProcessDialogKey method is overridden to suppress the beeps when the user presses the
Enter key.
Outline Tutorial
This tutorial shows how you can use the C1FlexGrid as an outliner to display structured (or
hierarchical) data. When used as an outliner, the C1FlexGrid control behaves like a Tree control,
displaying nodes that can be collapsed or expanded to show branches containing subordinate data.
The tutorial allows you to load an XML document into the grid, where it is displayed as a tree. Here
is what the final application will look like:
169
See Also
Step 1 of 5: Create the Controls
Step 2 of 5: Read the Data and Build the Outline
Step 3 of 5: Add Custom Mouse and Keyboard Handling
Step 4 of 5: Allow/Prevent Editing
Step 5 of 5: Implement ToolTips
If you can't find the C1FlexGrid control in the Toolbox, right-click on the toolbox and select Choose
Items. Then, look for the C1FlexGrid control on the list of .NET components and make sure it is
checked. If you can't find the grid in the component list, you may need to re-install the product.
1.
Setting
170
Property
Setting
Dock
Top
Text
"Open XML
File"
2.
C1FlexGrid
Property
Setting
Dock
Fill
Double-click the form caption area to open the code window. At the top of the file, add the
following statement:
To write code in Visual Basic
Visual Basic
Copy Code
Imports C1.Win.C1FlexGrid
To write code in C#
C#
Copy Code
using C1.Win.C1FlexGrid;
This makes the objects defined in the C1FlexGrid assembly visible to the project and saves a
lot of typing.
3.
Set up the grid either in the designer using the Properties window and editors, or in code
by typing (or copying) the following code.
In the Designer
Set the following properties for the C1FlexGrid control in the Properties window:
171
Property
Setting
Cols.Count
Cols.Fixed
ExtendLastCol True
Rows.Count
Tree.Column
Tree.Style
SimpleLeaf
o
o
o
o
o
o
Open the C1FlexGrid Style Editor by selecting Styles from the C1FlexGrid Tasks
menu. For more information on accessing the C1FlexGrid Style Editor, see
Accessing the C1FlexGrid Style Editor.
Select Normal in the list of Built-In Styles.
Set the Border.Style property to None, the TextAlign property to LeftCenter, and
the WordWrap property to False.
Click the Add button.
Rename CustomStyle1 to Data.
Set the BackColor property to Control.
Click OK to close the editor.
Select Column 0 in the grid. This will open the Column Tasks menu for Column 0.
Set the Column Caption to Element.
Uncheck the Allow Editing check box.
Select Column 1.
Set the Column Caption to Text.
Alternatively, the columns can also be set up through the C1FlexGrid Column Editor:
o
o
o
172
o
o
o
In Code
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
173
174
Next, it initializes the outline tree using the Tree property and prevents editing of the XML nodes by
setting the AllowEditing property of the first column to False. Note that the user can still edit data
in the second column, which contains the data in each XML node.
Now the control is ready. We can start adding some code to it.
Double-click the command button and add the following code to the Button1_Click event:
To write code in Visual Basic
Visual Basic
Copy Code
175
the grid.
C1FlexGrid1.Rows.Count = 1
GetXMLData(xdoc.ChildNodes(1), 0)
' Autosize the tree column.
C1FlexGrid1.AutoSizeCol(0)
' Show levels 0, 1, and 2.
C1FlexGrid1.Tree.Show(2)
' Start redrawing.
C1FlexGrid1.Redraw = True
End Sub
To write code in C#
C#
Copy Code
176
The GetXMLData routine is the most interesting one in this tutorial. It traverses the
XMLDocument object and builds the outline tree. Add the following code to the form:
To write code in Visual Basic
Visual Basic
Copy Code
177
178
End Sub
To write code in C#
C#
Copy Code
179
{
// Make this row a node.
c1FlexGrid1.Rows[row].IsNode = true;
c1FlexGrid1.Rows[row].Node.Level = level;
// Recurse to get children.
foreach (System.Xml.XmlNode child in node.ChildNodes)
GetXMLData(child, level + 1);
}
}
180
The next steps add a few improvements to make the application easier to use.
Copy Code
181
Copy Code
182
Copy Code
Copy Code
183
Row r = c1FlexGrid1.Rows[c1FlexGrid1.Row];
if (r.IsNode ) e.Cancel = true;
}
Copy Code
Copy Code
184
{
// Check the ToolTip for this cell.
string
tip;
Then the routine compares the new and current ToolTip text, and updates the text if necessary, by
calling the SetToolTip method on the ToolTip control.
185
This concludes this tutorial. You can extend this project in many ways, including saving edits back
into the XML document, adding, deleting, and moving nodes, using different styles for different
types of data, and so on.
The picture below shows what the final application looks like. The user can drag the first three
columns to group the data by salesperson, country, and product name. When a column is dragged,
the totals are automatically recalculated and the outline tree is rebuilt.
See Also
Step 1 of 4: Create the C1FlexGrid Control for the Data Analysis Tutorial
Step 2 of 4: Initialize and Populate the Grid
Step 3 of 4: Allow Automatic Sorting
186
Step 1 of 4: Create the C1FlexGrid Control for the Data Analysis Tutorial
Start a new project and add a C1FlexGrid control to the form by clicking the C1FlexGrid icon on the
toolbox, then clicking on the form and dragging until the object has the proper size.
If you can't find the C1FlexGrid control in the Toolbox, right-click on the Toolbox and select Choose
Items. Then, look for the C1FlexGrid control on the list of .NET components and make sure it is
checked. If you can't find the grid in the component list, you may need to re-install the product.
1.
2.
In the C1FlexGrid Tasks menu, click Dock in parent container. This sets the grid's Dock
property to Fill so the grid will fill the form.
Double-click the form caption area to open the code window. At the top of the file, add the
following statements:
To write code in Visual Basic
Visual Basic
Copy Code
Imports System.Data.OleDb
Imports System.ComponentModel
Imports C1.Win.C1FlexGrid
To write code in C#
C#
Copy Code
using System.Data.OleDb;
using System.ComponentModel;
using C1.Win.C1FlexGrid;
This makes the objects defined in the C1FlexGrid and OleDb assemblies visible to the
project and saves a lot of typing.
Set up the grid layout and styles either in the designer or in code.
In the Designer
187
Setting
AllowEditing
False
AllowSorting
None
AllowMerging
Nodes
ExtendLastCol
True
SelectionMode Cell
o
o
o
o
o
Tree.Style
Simple
Tree.Column
Open the C1FlexGrid Style Editor by selecting Styles from the C1FlexGrid Tasks
menu. For more information on accessing the C1FlexGrid Style Editor, see
Accessing the C1FlexGrid Style Editor.
Select Normal from the list of Built-In Styles.
Set the Border.Style property to None and the Trimming property to
EllipsisCharacter.
Select Subtotal0 from the list of Built-In Styles.
Set the BackColor property to Gold, and the ForeColor property to Black.
Set the properties for Subtotal1 and Subtotal2 to the following:
Subtotal1
BackColor Khaki
ForeColor Black
Subtotal2
BackColor LightGoldenrodYellow
188
Subtotal1
ForeColor Black
In Code
Add the following code to the Form_Load event to set up the grid layout and styles:
To write code in Visual Basic
Visual Basic
Copy Code
189
s.BackColor = Color.Khaki
s.ForeColor = Color.Black
s = C1FlexGrid1.Styles(CellStyleEnum.Subtotal2)
s.BackColor = Color.LightGoldenrodYellow
s.ForeColor = Color.Black
End Sub
To write code in C#
C#
Copy Code
190
s.ForeColor = Color.Black;
}
The routine starts by setting up the grid layout and some styles.
2.
Bind C1FlexGrid to a data source by adding the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Lock the last three columns in place by setting their AllowDragging property to False. This
is done to prevent the user from grouping the data in these columns (the values in these
columns are distinct for each row). This property can be set either in the designer or at in
code.
In the Designer
o
o
o
Select Column 4 in the grid. This will open the Column Tasks menu for Column 4.
Uncheck the Allow Dragging check box.
Repeat for Column 5 and Column 6.
Alternatively, the AllowDragging property can also be set using the C1FlexGrid Column
Editor:
o
o
o
o
191
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Set the Format property of the Sales Amount column so that the amounts are displayed as
currency values. This can be done either in the designer or in code.
In the Designer
o
o
o
o
Alternatively, the Format property can also be set using the C1FlexGrid Column Editor:
o
o
o
192
o
o
In Code
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
The GetDataSource method creates the data table that is displayed by the grid. The
routine is very basic, except for the SQL statement that retrieves the data. Most people
don't write these SQL statements manually, but use visual designers such as the one in
Visual Studio or Microsoft Access to do that.
Add the following code to the form. Note that you may have to change the connection
string slightly, because it has a reference to the NorthWind database and that file might be
in a different folder in your system:
To write code in Visual Basic
Visual Basic
Copy Code
193
Copy Code
conn = "Provider=Microsoft.Jet.OLEDB.4.0;" +
rs =
"SELECT Employees.LastName,Orders.ShipCountry," +
194
"Categories.CategoryName,Products.ProductName,Orders.OrderDate," +
"[Quantity]*[Products].[UnitPrice] AS [Sale Amount] " +
"FROM (Categories INNER JOIN Products " +
"ON Categories.CategoryID = Products.CategoryID) " +
"INNER JOIN ((Employees INNER JOIN Orders " +
"ON Employees.EmployeeID = Orders.EmployeeID) " +
"INNER JOIN [Order Details] " +
"ON Orders.OrderID = [Order Details].OrderID) " +
"ON Products.ProductID = [Order Details].ProductID " +
"ORDER BY Employees.LastName,Orders.ShipCountry," +
"Categories.CategoryName;";
// Retrieve the data into the DataSet.
OleDbDataAdapter da = new OleDbDataAdapter(rs, conn);
DataSet ds = new DataSet();
da.Fill(ds);
// Return the data table.
return ds.Tables[0];
}
195
Copy Code
196
C1FlexGrid1.Cols(3).Name
Dim dt As DataTable = C1FlexGrid1.DataSource
dt.DefaultView.Sort = sort
End Sub
To write code in C#
C#
Copy Code
197
Copy Code
198
Copy Code
199
The code then calls the C1FlexGrid.Subtotal method to group the data and insert new rows with the
subtotals. The new rows are automatically configured as outline nodes (their IsNode property is set
to True), so the subtotals are collapsible.
Try dragging columns around. You can easily see the totals by country, product category, or
salesperson. You can also expand tree nodes to drill down into the data if you want to see more
detail.
200
Note also that the grid is editable, changing some values in the Sale Amount column will cause the
AfterDataRefresh event to fire again, and the totals will be automatically updated.
This concludes this tutorial.
See Also
Accessing the C1FlexGrid Editors
Adding Pictures and Text to a Cell
Adding Row Numbers in a Fixed Column
Adding Three-Dimensional Text to a Header Row
Adding ToolTips That Display UserData
Applying a Gradient Background to a CellRange
Changing the Column Order in the Grid
Filtering by Value
Filtering by Condition
Changing the Filter Language
Clearing a Tree View
Clearing C1FlexGrid
Converting Column Letters to Uppercase
Customizing Appearance Using Visual Styles
201
See Also
202
Context Menu
Right-click on the form and select Designer from the context menu.
Properties Window
In the Properties window, click the ellipsis button next to the Cols property.
Context Menu
Right-click on the form and select Styles from the context menu.
Properties Window
In the Properties window, click the ellipsis button next to the Styles property.
203
1.
Resize the cells to fit the image using the Height and Width properties.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Rows(1).Height = 90
Me.C1FlexGrid1.Cols(1).Width = 150
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Rows[1].Height = 90;
this.c1FlexGrid1.Cols[1].Width = 150;
2.
Copy Code
Me.C1FlexGrid1.SetCellImage(1, 1, Image.FromFile("c:\c1logo.bmp"))
To write code in C#
C#
Copy Code
this.c1FlexGrid1.SetCellImage(1, 1, Image.FromFile(@"c:\c1logo.bmp"));
3.
Copy Code
204
Me.C1FlexGrid1.SetData(1, 1, "ComponentOne")
To write code in C#
C#
Copy Code
this.c1FlexGrid1.SetData(1, 1, "ComponentOne");
4.
Set the alignment of the image to CenterTop and the text to CenterBottom:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Styles.Normal.ImageAlign =
C1.Win.C1FlexGrid.ImageAlignEnum.CenterTop
Me.C1FlexGrid1.Styles.Normal.TextAlign =
C1.Win.C1FlexGrid.TextAlignEnum.CenterBottom
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Styles.Normal.ImageAlign =
C1.Win.C1FlexGrid.ImageAlignEnum.CenterTop;
this.c1FlexGrid1.Styles.Normal.TextAlign =
C1.Win.C1FlexGrid.TextAlignEnum.CenterBottom;
205
Note: To set the text on top of the picture, change the alignment of the text to CenterTop, and
the alignment of the image to CenterBottom.
Add the following code to the Form_Load event to fire the OwnerDrawCell event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw
To write code in C#
C#
Copy Code
this.c1FlexGrid1.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw;
2.
206
Visual Basic
Copy Code
Copy Code
207
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid
Style Editor, see Accessing the C1FlexGrid Style Editor.
Click Add to create a new style.
Double-click CustomStyle1, rename it 3DText, and press ENTER when finished.
Do not exit the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
208
To write code in C#
C#
Copy Code
Copy Code
tdt.TextEffect = C1.Win.C1FlexGrid.TextEffectEnum.Raised
To write code in C#
C#
Copy Code
tdt.TextEffect = C1.Win.C1FlexGrid.TextEffectEnum.Raised;
3.
Apply the style to the header row by adding the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Rows(0).Style = Me.C1FlexGrid1.Styles("3DText")
To write code in C#
209
C#
Copy Code
this.c1FlexGrid1.Rows[0].Style = this.c1FlexGrid1.Styles["3DText"];
See Also
Adding Three-Dimensional Text to a Header Row Using Built-In Styles
In the Designer
1.
2.
3.
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid Style
Editor, see Accessing the C1FlexGrid Style Editor.
Select Fixed under Built-In Styles.
In the right column, locate the TextEffect property and set it to Raised.
210
4.
In Code
Add the following code to the Form_Load event to set the TextEffect property in the Fixed style:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Styles("Fixed").TextEffect =
C1.Win.C1FlexGrid.TextEffectEnum.Raised
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Styles["Fixed"].TextEffect =
C1.Win.C1FlexGrid.TextEffectEnum.Raised;
211
See Also
UserData ToolTips for a Column
UserData ToolTips for a Cell Range
UserData ToolTips for a Cell Style
UserData ToolTips for a Row
UserData ToolTips for a Single Cell
Locate the ToolTip control in the Toolbox and add it to the form.
In the Form_Load event, set the UserData property for the AtomicMass column:
To write code in Visual Basic
212
Visual Basic
Copy Code
Copy Code
Copy Code
Copy Code
Locate the ToolTip control in the Toolbox and add it to the form.
In the Form_Load event, set the UserData property for a cell range that contains a group
of non-metallic elements:
To write code in Visual Basic
Visual Basic
Copy Code
' Set the cell range that contains the non-metallic elements.
Dim rng As C1.Win.C1FlexGrid.CellRange = Me.C1FlexGrid1.GetCellRange(6, 1, 10,
10)
' Set the background color to see the cell range more easily.
rng.StyleNew.BackColor = Color.AliceBlue
' Set the user data for the cell range.
rng.UserData = "Non-Metallic"
214
To write code in C#
C#
Copy Code
Copy Code
Copy Code
215
Locate the ToolTip control in the Toolbox and add it to the form.
In the Form_Load event, create a custom CellStyle for columns and a custom CellStyle for
rows, and assign the styles to a column and row in the grid. For more information on how
to create CellStyles, see the Setting the Background Color of Columns and Rows topic.
To write code in Visual Basic
Visual Basic
Copy Code
216
Copy Code
217
this.c1FlexGrid1.Cols[2].Style = this.c1FlexGrid1.Styles["ColumnColor"];
// Assign the RowColor Style to a row.
this.c1FlexGrid1.Rows[8].Style = this.c1FlexGrid1.Styles["RowColor"];
3.
Copy Code
Copy Code
Locate the ToolTip control in the Toolbox and add it to the form.
In the Form_Load event, set the UserData property for the row that contains Oxygen:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
219
3.
Copy Code
Copy Code
220
Locate the ToolTip control in the Toolbox and add it to the form.
Add the following SetUserData method to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
221
Visual Basic
Copy Code
Copy Code
222
Create a LinearGradient brush and a CellRange by adding the following code to the form
class level:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
System.Drawing.Drawing2D.LinearGradientBrush GradientStyleBrush;
C1.Win.C1FlexGrid.CellRange rng;
223
2.
Set C1FlexGrid's DrawMode property to OwnerDraw by adding the following code to the
Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw
To write code in C#
C#
Copy Code
this.c1FlexGrid1.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw;
3.
Copy Code
rng = Me.C1FlexGrid1.GetCellRange(2, 2, 4, 4)
To write code in C#
C#
Copy Code
Copy Code
GradientStyleBrush = New
224
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.Navy,
Color.Transparent, 270)
To write code in C#
C#
Copy Code
GradientStyleBrush = new
System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, Color.Navy,
Color.Transparent, 270);
5.
Copy Code
225
C#
Copy Code
226
In the Designer
1.
In the grid, select the column you would like to move. In this example, the Element column
will be moved.
227
2.
Click and drag the column to the left. A vertical dotted line appears where the column can
be dropped.
3.
Alternatively, columns can be reordered in the grid using the C1FlexGrid Column Editor:
1.
2.
3.
4.
5.
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
In the designer, select the column you would like to move. In this example, the Element
column will be moved.
Click and drag the column to the left. A vertical dotted line appears where the column can
be dropped.
Drop the Element column before the AtomicNumber column.
Click OK to close the editor.
In Code
Add the following code to the Form_Load event to move Column 2 (the Element column in this
example) to the Column 1 position:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols.MoveRange(2, 1, 1)
To write code in C#
228
C#
Copy Code
this.c1FlexGrid1.Cols.MoveRange(2, 1, 1);
Filtering by Value
To use the ValueFilter, follow these steps:
1.
2.
3.
4.
Select the grid and click the smart tag to open the C1FlexGrid Tasks menu.
Select the Enable Column Filtering check box.
Click the Designer link. The C1FlexGrid Column Editor appears.
Click the drop-down arrow next to the AllowFiltering property and select ByValue.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
229
Me.C1FlexGrid1.AllowFiltering = True
Me.C1FlexGrid1.Cols(1).AllowFiltering = AllowFiltering.ByValue
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AllowFiltering = true;
this.c1FlexGrid1.Cols[1].AllowFiltering = AllowFiltering.ByValue
Filtering by Condition
To use the ConditionFilter, follow these steps:
1.
2.
3.
4.
Select the grid and click the smart tag to open the C1FlexGrid Tasks menu.
Select the Enable Column Filtering check box.
Click the Designer link. The C1FlexGrid Column Editor appears.
Click the drop-down arrow next to the AllowFiltering property and select ByCondition.
In Code
230
Copy Code
Me.C1FlexGrid1.AllowFiltering = True
Me.C1FlexGrid1.Cols(1).AllowFiltering = AllowFiltering.ByCondition
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AllowFiltering = true;
this.c1FlexGrid1.Cols[1].AllowFiltering = AllowFiltering.ByCondition
Right-click your grid and select Properties to view the Visual Studio Properties window.
231
2.
3.
4.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.AllowFiltering = True
Me.C1FlexGrid1.Language = C1.Util.Localization.Language.Danish
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AllowFiltering = true;
this.c1FlexGrid1.Language = C1.Util.Localization.Language.Danish;
232
Add the following code for the Button1_Click event. This code will set the editable row count equal
to zero, and the tree will be cleared when the Clear button is clicked.
To write code in Visual Basic
Visual Basic
Copy Code
233
Me.C1FlexGrid1.Rows.Count = Me.C1FlexGrid1.Rows.Fixed
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Rows.Count = this.c1FlexGrid1.Rows.Fixed;
Clearing C1FlexGrid
To clear C1FlexGrid, use the Clear method. The Clear method clears either the content, styles,
UserData, or all three.
The following image shows the grid before any content, styles or UserData has been cleared.
234
See Also
Clearing Content
Clearing Styles
Clearing UserData
Clearing Content, Styles, and UserData
Clearing Content
To clear the contents of C1FlexGrid, add the following Clear method. In this example, the code was
added to the Click event of the Clear Contents button.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Content)
To write code in C#
C#
Copy Code
235
this.c1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Content);
Clearing Styles
To clear the style formatting of C1FlexGrid, add the following Clear method. In this example, the
code was added to the Click event of the Clear Styles button.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Style)
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Style);
236
Clearing UserData
To clear the UserData of C1FlexGrid, add the following Clear method. In this example, the code was
added to the Click event of the Clear UserData button.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.UserData)
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.UserData);
Note that there will be no visible change to the grid when clearing UserData, since UserData only
stores data that is useful to the application.
237
Copy Code
Me.C1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.All)
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.All);
238
Copy Code
Copy Code
239
Visual Style
Description
Custom
Office2007Black
Office2007Blue
Office2007Silver
System
Office2010Black
Office2010Silver
Office2010Blue
In the Designer
240
Locate the VisualStyle property in the Properties window and set it to Custom, Office2007Black,
Office2007Blue, Office2007Silver, Office2010Blue, Office2010Black, Office2010Silver, or
System. In this example, the VisualStyle property is set to Office2007Blue.
In Code
Add code to the Form_Load event to set the VisualStyle property to Custom, Office2007Black,
Office2007Blue, Office2007Silver, Office2010Blue, Office2010Black, Office2010Silver, or
System. The following code sets the VisualStyle property to Office2007Blue:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue
To write code in C#
C#
Copy Code
this.c1FlexGrid1.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
241
242
243
Visual Basic
Copy Code
Copy Code
244
Formatting Cells
Formatting cells allows you to control the accessibility and appearance of data in a single cell or
multiple cells. The following topics show you how to set cells to be read-only, format a cell to
display currency values, and format cells based on their contents.
See Also
Formatting a Cell as Read-Only
Formatting a Cell with Decimal Content
Formatting Cells Based on the Contents
Copy Code
245
C#
Copy Code
Copy Code
Copy Code
246
{
for (int i = 1; i <= 9; i++)
{
if (e.Col == 1 & e.Row == i)
{
e.Cancel = true;
}
}
}
In the Designer
1.
2.
3.
4.
Select Column 1 in the grid. This will open the Column Tasks menu for Column 1.
Click the ellipsis button in the Format String box to open the Format String dialog box.
Under Format type select Custom and set the Custom format to $#,##0.00.
Click OK to close the Format String dialog box.
Alternatively, the Format property can also be set using the C1FlexGrid Column Editor:
1.
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
247
2.
3.
Select Column 1 from the right pane and set the Format property to $#,##0.00 in the left
pane.
Click OK to close the editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols(1).Format = "$#,##0.00"
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols[1].Format = "$#,##0.00";
Note: The format specifier follows the standard .NET conventions. Use ',' for thousand
separators and '.' for the decimal, regardless of locale.
248
Create a new CellStyle called LargeValue and set the BackColor property to Gold.
In the Designer
o
o
o
o
o
o
o
o
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid
Style Editor, see Accessing the C1FlexGrid Style Editor.
Click Add to create a new style.
Double-click CustomStyle1, rename it LargeValue, and press ENTER when
finished.
Locate the BackColor property in the right pane and set it to Gold.
Locate the Font property and click the ellipsis button next to it to open the Font
dialog box.
Set the Font style box to Italic.
Click OK to close the Font dialog box.
Click OK to close the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
249
Copy Code
Use the CellChanged event to format the cells based on the contents:
To write code in Visual Basic
Visual Basic
Copy Code
250
C#
Copy Code
See Also
Formatting the Border Style of the Control
Formatting the Border Style of the Grid
251
Description
Fixed3D
FixedSingle
Light3D
None
No border.
XpThemes
In the Designer
Locate the BorderStyle property in the Properties window and set it to Fixed3D, FixedSingle,
Light3D, None, or XpThemes. In this example, the BorderStyle property is set to Fixed3D.
In Code
Add code to the Form_Load event to set the BorderStyle property to Fixed3D, FixedSingle,
Light3D, None, or XpThemes. The following code sets the BorderStyle property to Fixed3D:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.BorderStyle =
C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Fixed3D
To write code in C#
C#
Copy Code
252
this.c1FlexGrid1.BorderStyle =
C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Fixed3D;
Three-Dimensional Border
The border will be three-dimensional.
253
No Border
There is no border.
254
XP Theme Border
The border will be XP themed.
255
Border
Description
Dotted
Dotted border.
Double
Double border.
Fillet
Fillet border.
Flat
Groove
Groove border.
Inset
Inset border.
None
Raised
Raised border.
In the Designer
1.
2.
3.
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid Style
Editor, see Accessing the C1FlexGrid Style Editor.
Select Normal under Built-In Styles. In the right column, locate the Border property and
expand it. Set the Style property to Dotted, Double, Fillet, Flat, Groove, Inset, None, or
Raised. In this example, the Style property is set to Dotted.
Click OK to close the editor.
In Code
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Styles("Normal").Border.Style =
C1.Win.C1FlexGrid.BorderStyleEnum.Dotted
To write code in C#
256
C#
Copy Code
this.c1FlexGrid1.Styles["Normal"].Border.Style =
C1.Win.C1FlexGrid.BorderStyleEnum.Dotted;
Dotted Border
The cell border will be a dotted line.
Double Border
The cell border will be double lines.
257
Fillet Border
The cell border will be fillet.
Flat Border
The cell border will be a solid flat line.
258
Groove Border
The cell border will be grooved.
Inset Border
The cell border will be inset.
259
No Border
There is no cell border.
Raised Border
The cell border will be raised.
260
In the Designer
Locate the AllowFreezing property in the Properties window and set it to Both.
In Code
Add the following code to the Form_Load event to set the AllowFreezing property to Both:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.AllowFreezing = C1.Win.C1FlexGrid.AllowFreezingEnum.Both
To write code in C#
261
C#
Copy Code
this.c1FlexGrid1.AllowFreezing = C1.Win.C1FlexGrid.AllowFreezingEnum.Both;
mouse over the rows or columns to freeze. In this example, the Element column is frozen and will
remain on the grid when it is scrolled to the right.
In this example, the row containing Hydrogen is frozen and will remain on the grid when it is
scrolled to the bottom.
262
Note: Setting the AllowFreezing property to Both allows both rows and columns to be frozen
at the same time, as seen in the following image.
Copy Code
263
To write code in C#
C#
Copy Code
264
"XLSX". You can specify the file type as "Excel" and use the OpenXml option of the FileFlags
enumeration.
Add three buttons to the form containing the C1FlexGrid control and enter Save, Clear,
and Load in the Text property for each, respectively, in the Visual Basic Properties window.
2.
From the Designer, double-click the Save button, Button_1, and enter code in the
Button1_Click event, so it looks like the following:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
265
3.
Enter the following code for the Button2_Click event to be used for the Clear button:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Enter the following code for the Button3_Click event to be used for the Load button:
To write code in Visual Basic
Visual Basic
Copy Code
266
Copy Code
3.
4.
267
See Also
Populating a Column with Data
Populating a Range of Cells with Data
Populating a Row with Data
Populating a Single Cell with Data
Copy Code
Dim r As Integer
For r = C1FlexGrid1.Rows.Fixed To C1FlexGrid1.Rows.Count - 1
Me.C1FlexGrid1(r, 1) = 0
Next
To write code in C#
C#
Copy Code
int r;
for (r = c1FlexGrid1.Rows.Fixed; r <= c1FlexGrid1.Rows.Count -1;r++)
{
this.c1FlexGrid1[r, 1] = 0;
}
268
Copy Code
Copy Code
Copy Code
Dim r As Integer
For r = C1FlexGrid1.Cols.Fixed To C1FlexGrid1.Cols.Count - 1
Me.C1FlexGrid1(1, r) = 0
Next
To write code in C#
C#
Copy Code
int r;
for (r = c1FlexGrid1.Cols.Fixed; r <= c1FlexGrid1.Cols.Count -1;r++)
269
{
this.c1FlexGrid1[1, r] = 0;
}
Copy Code
Copy Code
See Also
Disable Editing for the Entire Grid
Disable Editing for a Specific Column
Disable Editing for a Specific Row
270
In the Designer
In the C1FlexGrid Tasks menu, uncheck the Enable Editing check box.
Alternatively, locate the AllowEditing property in the Properties window and set it to False.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.AllowEditing = False
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AllowEditing = false;
In the Designer
1.
2.
Select the column in the grid that you would like to edit. This will open the Column Tasks
menu for that column.
Uncheck the Allow Editing check box.
Alternatively, the AllowEditing property can be set using the C1FlexGrid Column Editor:
1.
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
271
2.
3.
Select the column that you would like to edit from the right pane and set the AllowEditing
property to False in the left pane.
Click OK to close the editor.
In Code
Add the following code to the Form_Load event to restrict editing the AtomicMass column:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols("AtomicMass").AllowEditing = False
' Is the same as: Me.C1FlexGrid1.Cols(4).AllowEditing = False
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols["AtomicMass"].AllowEditing = false;
// Is the same as: this.c1FlexGrid1.Cols[4].AllowEditing = false;
Copy Code
Me.C1FlexGrid1.Rows(5).AllowEditing = False
To write code in C#
C#
Copy Code
272
this.c1FlexGrid1.Rows[5].AllowEditing = false;
In the Designer
1.
2.
Select the column in the grid that you would like to edit. This will open the Column Tasks
menu for that column.
Uncheck the Allow Sorting check box.
Alternatively, the AllowSorting property can be set using the C1FlexGrid Column Editor:
1.
2.
3.
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
Select the column that you would like to edit from the right pane and set the AllowSorting
property to False in the left pane.
Click OK to close the editor.
In Code
Add the following code to the Form_Load event to restrict sorting the AtomicNumber column:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols("AtomicNumber").AllowSorting = False
' Is the same as: Me.C1FlexGrid1.Cols(1).AllowEditing = False
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols["AtomicNumber"].AllowSorting = false;
// Is the same as: this.c1FlexGrid1.Cols[1].AllowEditing = false;
273
Scaling an Image
To scale an image in a single column when the rows of the grid are resized, set the ImageAlign
property to Scale.
1.
Set the row height of the first two rows by adding the following code to the Form_Load
event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Rows(1).Height = 2 * Me.C1FlexGrid1.Rows.DefaultSize
Me.C1FlexGrid1.Rows(2).Height = 2 * Me.C1FlexGrid1.Rows.DefaultSize
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Rows[1].Height = 2 * this.c1FlexGrid1.Rows.DefaultSize;
this.c1FlexGrid1.Rows[2].Height = 2 * this.c1FlexGrid1.Rows.DefaultSize;
2.
In the Designer
o
o
o
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
Select the column that contains the images from the right pane and set the
ImageAlign property to Scale in the left pane.
Click OK to close the editor.
In Code
Add the following code after the code in step 1:
To write code in Visual Basic
Visual Basic
Copy Code
274
Me.C1FlexGrid1.Cols(3).ImageAlign = C1.Win.C1FlexGrid.ImageAlignEnum.Scale
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols[3].ImageAlign = C1.Win.C1FlexGrid.ImageAlignEnum.Scale;
See Also
Scaling Images in the Entire Grid
In the Designer
1.
2.
3.
4.
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid Style
Editor, see Accessing the C1FlexGrid Style Editor.
Select Normal in the Built-In Styles list.
In the right pane, locate the ImageAlign property and set it to Scale.
Click OK to close the editor.
275
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Styles("Normal").ImageAlign =
C1.Win.C1FlexGrid.ImageAlignEnum.Scale
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Styles["Normal"].ImageAlign =
C1.Win.C1FlexGrid.ImageAlignEnum.Scale;
In the Designer
Locate the AutoSearch property in the Properties window and set it to FromTop.
In Code
Add the following code to the Form_Load event to set the AutoSearch property to FromTop:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.AutoSearch = C1.Win.C1FlexGrid.AutoSearchEnum.FromTop
276
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AutoSearch = C1.Win.C1FlexGrid.AutoSearchEnum.FromTop;
Note: If more than one entry begins with the same letter, typing the next letter will highlight
the entry with those letters. For example, typing He in the Element column will highlight
Helium.
Setting a Cell's Value to Zero When Users Press the Delete Key
To set a cell's value to zero when a user presses the DELETE key, use C1FlexGrid's KeyDown event
to catch when the DELETE key is pressed.
Add the following KeyDown event to your form:
To write code in Visual Basic
277
Visual Basic
Copy Code
Copy Code
Add the following code to the Form_Load event to set the number of rows and columns to
appear in the grid.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols.Count = 5
Me.C1FlexGrid1.Rows.Count = 7
To write code in C#
278
C#
Copy Code
this.c1FlexGrid1.Cols.Count = 5;
this.c1FlexGrid1.Rows.Count = 7;
2.
Copy Code
Copy Code
Copy Code
row(1).Caption = "Date"
row(1).DataType = GetType(DateTime)
row(2).Caption = "Contact"
row(2).DataType = GetType(String)
row(3).Caption = "Phone"
row(3).DataType = GetType(String)
row(3).EditMask = "(999) 999-9999;*"
row(4).Caption = "Platform"
279
row(4).DataType = GetType(String)
row(4).ComboList = "|Windows XP|Windows 2000|Windows ME|Windows NT|Windows
98|Windows 95"
row(5).Caption = "Error Code"
row(5).DataType = GetType(Integer)
row(6).Caption = "Resolved"
row(6).DataType = GetType(Boolean)
To write code in C#
C#
Copy Code
row[1].Caption = "Date";
row[1].DataType = typeof(DateTime);
row[2].Caption = "Contact";
row[2].DataType = typeof(string);
row[3].Caption = "Phone";
row[3].DataType = typeof(string);
row[3].EditMask = "(999) 999-9999;*";
row[4].Caption = "Platform";
row[4].DataType = typeof(string);
row[4].ComboList = "|Windows XP|Windows 2000|Windows ME|Windows NT|Windows
98|Windows 95";
row[5].Caption = "Error Code";
row[5].DataType = typeof(int);
row[6].Caption = "Resolved";
row[6].DataType = typeof(bool);
4.
280
Visual Basic
Copy Code
Copy Code
Copy Code
Me.C1FlexGrid1.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.FixedOnly
row(0).AllowMerging = True
Dim rng As C1.Win.C1FlexGrid.CellRange = C1FlexGrid1.GetCellRange(0, 1, 0, 4)
rng.Data = "Call Log"
To write code in C#
C#
Copy Code
this.c1FlexGrid1.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.FixedOnly;
row[0].AllowMerging = true;
C1.Win.C1FlexGrid.CellRange rng = c1FlexGrid1.GetCellRange(0,1,0,4);
rng.Data = "Call Log";
281
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid
Style Editor, see Accessing the C1FlexGrid Style Editor.
Click Add to create a new style.
Double-click CustomStyle1, rename it ColumnColor, and press ENTER when
finished.
Do not exit the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
282
Dim cc As C1.Win.C1FlexGrid.CellStyle
cc = Me.C1FlexGrid1.Styles.Add("ColumnColor")
To write code in C#
C#
Copy Code
C1.Win.C1FlexGrid.CellStyle cc = this.c1FlexGrid1.Styles.Add("ColumnColor");
2.
In the C1FlexGrid Style Editor, locate the BackColor property in the right pane
and set it to CornSilk.
Click OK to close the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
cc.BackColor = Color.Cornsilk
To write code in C#
C#
Copy Code
cc.BackColor = Color.Cornsilk;
3.
Assign the style to a column by adding the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
283
Me.C1FlexGrid1.Cols(2).Style = Me.C1FlexGrid1.Styles("ColumnColor")
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols[2].Style = this.c1FlexGrid1.Styles["ColumnColor"];
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid
Style Editor, see Accessing the C1FlexGrid Style Editor.
Click Add to create a new style.
Double-click CustomStyle1, rename it RowColor, and press ENTER when finished.
Do not exit the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Dim rs As C1.Win.C1FlexGrid.CellStyle
rs = Me.C1FlexGrid1.Styles.Add("RowColor")
To write code in C#
C#
Copy Code
284
C1.Win.C1FlexGrid.CellStyle rs = this.c1FlexGrid1.Styles.Add("RowColor");
2.
In the C1FlexGrid Style Editor, locate the BackColor property and set it to
PowderBlue.
Click OK to close the C1FlexGrid Style Editor.
In Code
To write code in Visual Basic
Visual Basic
Copy Code
rs.BackColor = Color.PowderBlue
To write code in C#
C#
Copy Code
rs.BackColor = Color.PowderBlue;
3.
Assign the style to a row by adding the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Rows(8).Style = Me.C1FlexGrid1.Styles("RowColor")
To write code in C#
C#
Copy Code
285
this.c1FlexGrid1.Rows[8].Style = this.c1FlexGrid1.Styles["RowColor"];
See Also
Setting the Background Color of Rows and Columns in a Single Statement
Copy Code
Me.C1FlexGrid1.Cols(2).StyleNew.BackColor = Color.Cornsilk
Me.C1FlexGrid1.Rows(8).StyleNew.BackColor = Color.PowderBlue
To write code in C#
286
C#
Copy Code
this.c1FlexGrid1.Cols[2].StyleNew.BackColor = Color.Cornsilk;
this.c1FlexGrid1.Rows[8].StyleNew.BackColor = Color.PowderBlue;
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid Style
Editor, see Accessing the C1FlexGrid Style Editor.
Click Add to create a new style.
Double-click CustomStyle1, rename it myStyle, and press ENTER when finished.
Do not exit the C1FlexGrid Style Editor.
287
In Code
To write code in Visual Basic
Visual Basic
Copy Code
Dim cs As C1.Win.C1FlexGrid.CellStyle
cs = Me.C1FlexGrid1.Styles.Add("myStyle")
To write code in C#
C#
Copy Code
C1.Win.C1FlexGrid.CellStyle cs = this.c1FlexGrid1.Styles.Add("myStyle");
2.
In the C1FlexGrid Style Editor, locate the Font property in the right pane and click
the ellipsis button. The Font dialog will appear.
Set the Font box to Tahoma.
Set the Font style box to Bold.
Set the Size box to 10.
Click OK to close the Font dialog box, but do not exit the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
288
C#
Copy Code
In the C1FlexGrid Style Editor, locate the ForeColor property in the right pane
and set it to Blue.
Click OK to close the C1FlexGrid Style Editor.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
cs.ForeColor = Color.Blue
To write code in C#
C#
Copy Code
cs.ForeColor = Color.Blue;
4.
Assign the style to a cell by adding the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.SetCellStyle(6, 2, "myStyle")
To write code in C#
289
C#
Copy Code
this.c1FlexGrid1.SetCellStyle(6, 2, "myStyle");
Copy Code
290
Dim i%
For i = 0 To Me.C1FlexGrid1.Cols.Count - 1
Me.C1FlexGrid1(0, i) = colNames(i)
Me.C1FlexGrid1.Cols(i).Name = colNames(i)
Next
To write code in C#
C#
Copy Code
Add the following code to the Form_Load event to set the second column to sort in
ascending order and the third column to sort in descending order.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Cols(1).Sort = C1.Win.C1FlexGrid.SortFlags.Ascending
Me.C1FlexGrid1.Cols(2).Sort = C1.Win.C1FlexGrid.SortFlags.Descending
291
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Cols[1].Sort = C1.Win.C1FlexGrid.SortFlags.Ascending;
this.c1FlexGrid1.Cols[2].Sort = C1.Win.C1FlexGrid.SortFlags.Descending;
2.
Add the following Sort method to sort according to the settings in columns two and three.
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Sort(C1.Win.C1FlexGrid.SortFlags.UseColSort, 1, 2)
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Sort(C1.Win.C1FlexGrid.SortFlags.UseColSort, 1, 2);
292
Undoing a Sort
To undo a sort in C1FlexGrid when the grid is bound to a DataTable, set the DefaultView property
to null.
Add the following code to the Button1_Click event:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
293
}
Note: The DataTable.DefaultView returns the DataView of the DataTable, and setting the
sort string to null forces the DataView to undo the previous sort.
Create a column for passwords in the grid and set the draw mode:
To write code in Visual Basic
294
Visual Basic
Copy Code
Copy Code
{
this.c1FlexGrid1.Cols[0].Width = this.c1FlexGrid1.Rows[0].HeightDisplay;
this.c1FlexGrid1.ShowCursor = true;
this.c1FlexGrid1.Cols[1].Caption = this.c1FlexGrid1.Cols[1].Name =
"Password";
this.c1FlexGrid1.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw;
}
2.
Add the following code for the SetupEditor event. This code will hide characters that are
entered by the user.
To write code in Visual Basic
Visual Basic
Copy Code
Visual Basic
Private Sub C1FlexGrid1_SetupEditor(ByVal sender As Object, ByVal e As
C1.Win.C1FlexGrid.RowColEventArgs) Handles C1FlexGrid1.SetupEditor
Dim tb As TextBox = Me.C1FlexGrid1.Editor
If Not (tb Is Nothing) Then
If Me.C1FlexGrid1.Cols(e.Col).Name = "Password" Then
tb.PasswordChar = "*"c
295
Else
tb.PasswordChar = CChar(0)
End If
End If
End Sub
To write code in C#
C#
Copy Code
See Also
296
Add the following code for the OwnerDrawCell event. This code will hide the characters
that have already been entered and do not need edited.
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
297
Visual Basic
Copy Code
Me.C1FlexGrid1(1, 1) = "123456"
To write code in C#
C#
Copy Code
this.c1FlexGrid1[1,1] = "123456";
Select a column in the grid. This will open the Column Tasks menu for that
column.
In the Column Caption box, enter Word Wrapping in Header.
Alternatively, the Caption property can also be set using the C1FlexGrid Column Editor.
o
Open the C1FlexGrid Column Editor. For details on how to access the C1FlexGrid
Column Editor, see Accessing the C1FlexGrid Column Editor.
298
o
o
Select a column in the right pane and set the Caption property in the left pane to
Word Wrapping in Header.
Click OK to close the editor.
In Code
Add the following code to the Form_Load event.
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
Copy Code
Me.C1FlexGrid1.Rows(0).Height = 3 * Me.C1FlexGrid1.Rows.DefaultSize
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Rows[0].Height = 3 * this.c1FlexGrid1.Rows.DefaultSize;
3.
299
o
o
o
o
Open the C1FlexGrid Style Editor. For details on how to access the C1FlexGrid
Style Editor, see Accessing the C1FlexGrid Style Editor.
Select Fixed in the Built-In Styles list.
Locate the WordWrap property in the right pane and set it to True.
Click OK to close the designer.
In Code
Add the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic
Copy Code
Me.C1FlexGrid1.Styles("Fixed").WordWrap = True
To write code in C#
C#
Copy Code
this.c1FlexGrid1.Styles["Fixed"].WordWrap = true;
300
Copy Code
Copy Code
301
302
Note: Starting with the 2010/v1 release of the C1FlexGrid, the AutoResize property defaults to
False. If your data source contains a relatively small number of items and you want the grid to
resize the columns automatically, you can either set the AutoResize property to True manually
or simply call the AutoSizeCols methods after binding or populating the grid. This change was
made to increase performance in cases where the grid is bound to large data sources.
Copy Code
303
_flex.Styles.Add("Red").ForeColor = Color.Red
' Create style used to show values >= 1000.
_flex.Styles.Add("Green").ForeColor = Color.Green
' Enable OwnerDraw by setting the DrawMode property.
_flex.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw
End Sub
Private Sub _flex_OwnerDrawCell(ByVal sender As Object, ByVal e As
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs) Handles _flex.OwnerDrawCell
' Check that the row and column contain integer data.
If ((e.Row > 0) AndAlso (_flex.Cols(e.Col).DataType Is GetType(Integer)))
Then
' Get value in cell about to be painted.
Dim value As Integer = CInt(_flex(e.Row, e.Col))
If (value < 0) Then
' If the Cell value < 0, use the Red style.
e.Style = _flex.Styles("Red")
ElseIf (value >= 1000) Then
' If the Cell value >= 1000, use the Green style.
e.Style = _flex.Styles("Green")
End If
End If
End Sub
To write code in C#
C#
Copy Code
304
_flex.Cols[1].DataType = typeof(int);
Random rnd = new Random();
for (int r = 1; r < _flex.Rows.Count; r++)
{
_flex[r, 1] = rnd.Next(-10000, 10000);
}
// Create style used to show negative values.
_flex.Styles.Add("Red").ForeColor = Color.Red;
// Create style used to show values >= 1000.
_flex.Styles.Add("Green").ForeColor = Color.Green;
// Enable OwnerDraw by setting the DrawMode property.
_flex.DrawMode = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw;
_flex.OwnerDrawCell += new
C1.Win.C1FlexGrid.OwnerDrawCellEventHandler(_flex_OwnerDrawCell);
}
private void _flex_OwnerDrawCell(object sender,
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs e)
{
// Check that the row and column contain integer data.
if (e.Row > 0 && _flex.Cols[e.Col].DataType == typeof(int))
{
// Get value in cell about to be painted.
int value = (int)_flex[e.Row, e.Col];
if (value < 0)
{
// If the Cell value < 0, use the Red style.
e.Style = _flex.Styles["Red"];
}
else if (value >= 1000)
{
// If the Cell value >= 1000, use the Green style.
305
e.Style = _flex.Styles["Green"];
}
}
}
Copy Code
Copy Code
// ** CORRECT APPROACH:
private void _flex_OwnerDrawCell(object sender,
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs e)
{
306
Copy Code
Copy Code
// ** WRONG APPROACH:
private void _flex_OwnerDrawCell(object sender,
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs e)
{
// Select style to use when painting this cell:
// This is bad because changing any CellStyle objects invalidates the
// grid, which would cause this event handler to be called over and
// over again.
e.Style.Color = MyColorSelector(e.Row, e.Col);
}
The Trimming property should be used to show ellipses in a single column of the grid. To
determine how long strings are trimmed to fit the cell, the Trimming property can be set to either
None, Character, Word, EllipsisCharacter, EllipsisWord, or EllipsisPath.
The following table describes each of the be trimming options:
Member Name
Description
Character
EllipsisCharacter
EllipsisPath
EllipsisWord
None
Specifies no trimming.
Word
The following code sets the Trimming property to show ellipses at the end of the second column,
with the text trimmed to the nearest character:
To write code in Visual Basic
Visual Basic
Copy Code
308
_flex.Cols(1).StyleNew.Trimming StringTrimming.EllipsisCharacter
To write code in C#
C#
Copy Code
_flex.Cols[1].StyleNew.Trimming =StringTrimming.EllipsisCharacter;
Copy Code
309
C#
Copy Code
Copy Code
310
End Sub
Private Sub btn_ClearSort_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btn_ClearSort.Click
' Clear the sort.
Me.ProductsBindingSource.Sort = ""
End Sub
To write code in C#
C#
Copy Code
Copy Code
311
Copy Code
Copy Code
Copy Code
312
C1FlexGridClassic Control
C1FlexGridClassic is a control that derives from C1FlexGrid and provides an object model that is
virtually identical to the VSFlexGrid ActiveX control. C1FlexGridClassic was developed to allow
easy migration of existing VSFlexGrid projects.
The source code for C1FlexGridClassic is provided as a sample. You can use it as a reference that
shows how to use the C1FlexGrid control as a base class in the development of custom grid
controls.
C1.Win.C1FlexGrid.4 Assembly
Overview
%%description%%
" -->
Namespaces
Namespace
Description
C1.Win.C1FlexGrid
C1.Win.C1FlexGrid.Util.BaseControls
313
Namespaces
C1.Win.C1FlexGrid Namespace
Overview
Classes
Class
Description
C1FlexGridRenderer
CellBorder
CellRangeCollection
CellStyle
CellStyleCollection
Column
ColumnCollection
ColumnFilter
314
ConditionFilter.
ComboBoxEditor
Condition
ConditionFilter
DragRowColEventArgs
GetErrorInfoEventArgs
GridErrorEventArgs
GridGlyphs
GridPrinter
GridRendererOffice2007
315
style.
GridRendererOffice2007Blue
GridTree
KeyEditEventArgs
KeyPressEditEventArgs
MultiColumnDictionary
Node
316
OwnerDrawCellEventArgs
PrintDocumentGridRenderer
RangeEventArgs
Row
RowCol
Base class for grid rows and columns (Row and Column classes).
RowColCollection
RowColEventArgs
RowCollection
SortColEventArgs
317
C1FlexGridBase.AfterSort events.
SubtotalEventArgs
ToolTipEventArgs
UnboundValueEventArgs
ValidateEditEventArgs
ValueFilter
Interfaces
Interface
Description
IC1ColumnFilter
IC1ColumnFilterEditor
IC1EmbeddedEditor
Structures
Structure
Description
CellRange
Represents cell ranges, allowing the caller to set properties for multiple cells
with a single statement.
318
HitTestInfo
Contains information, such as the row and column indexes, about a specific
coordinate pair in the C1FlexGrid control.
Delegates
Delegate
Description
GetErrorInfoEventHandler
GridErrorEventHandler
KeyEditEventHandler
KeyPressEditEventHandler
319
OwnerDrawCellEventHandler
RangeEventHandler
RowColEventHandler
RowColToolTipEventHandler
SortColEventHandler
SubtotalEventHandler
320
C1FlexGridBase.AfterSubtotal events.
UnboundValueEventHandler
ValidateEditEventHandler
Enumerations
Enumeration
Description
AggregateEnum
AggregateFlags
AllowDraggingEnum
AllowFiltering
AllowFreezingEnum
AllowMergingEnum
AllowResizingEnum
AllowSortingEnum
321
AutoSearchEnum
Specifies where the grid should start searching for cells when
using the C1FlexGridBase.AutoSearch property.
AutoSizeFlags
BorderDirEnum
BorderStyleEnum
CheckEnum
ClearFlags
ClipboardCopyModeEnum
ConditionOperator
DisplayEnum
Specifies whether a style should display the cell text, image, both,
or none.
DragModeEnum
DrawCellFlags
DrawModeEnum
DropModeEnum
322
EditFlags
FileFlags
FileFormatEnum
FocusRectEnum
GlyphEnum
GridChangedTypeEnum
HighLightEnum
HitTestTypeEnum
ImageAlignEnum
KeyActionEnum
Specifies the action to perform when the ENTER and TAB keys are
pressed.
NodeMoveEnum
Specifies the destination of nodes when they are moved with the
Node.Move method.
NodeTypeEnum
PrintGridFlags
ScrollFlags
323
SelectionModeEnum
ShowButtonsEnum
ShowSortPositionEnum
ShowThemedHeadersEnum
SortFlags
StyleElementFlags
SubtotalPositionEnum
TextAlignEnum
TextDirectionEnum
TextEffectEnum
TreeStyleFlags
VisualStyle
See Also
Reference
C1.Win.C1FlexGrid.4 Assembly
324
Classes
BeforeMouseDownEventArgs
Provides data for the C1FlexGridBase.BeforeMouseDown event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class BeforeMouseDownEventArgs
Inherits System.EventArgs
C#
public class BeforeMouseDownEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.BeforeMouseDownEventArgs
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
BeforeMouseDownEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.BeforeMouseDown event.
Object Model
325
Syntax
Visual Basic (Declaration)
Public Class BeforeMouseDownEventArgs
Inherits System.EventArgs
C#
public class BeforeMouseDownEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.BeforeMouseDownEventArgs
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
BeforeMouseDownEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
326
Top
Public Fields
Name
Description
Button
Cancel
Clicks
Gets the number of times the mouse button was pressed and released.
Delta
Gets a signed count of the number of detents the mouse wheel has rotated.
A detent is one notch of the mouse wheel.
Top
See Also
Reference
BeforeMouseDownEventArgs Class
C1.Win.C1FlexGrid Namespace
BeforeMouseDownEventArgs Constructor
Overload List
Overload
Description
BeforeMouseDownEventArgs Constructor(MouseEventArgs)
BeforeMouseDownEventArgs
327
Constructor(C1FlexGridBase,MouseButtons,Int32)
of the
BeforeMouseDownEventA
rgs class.
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
BeforeMouseDownEventArgs Constructor(MouseEventArgs)
System.Windows.Forms.MouseEventArgs with mouse event information.
Initializes a new instance of the BeforeMouseDownEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal e As MouseEventArgs _
)
C#
public BeforeMouseDownEventArgs(
MouseEventArgs e
)
Parameters
e
System.Windows.Forms.MouseEventArgs with mouse event information.
Requirements
328
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
Overload List
BeforeMouseDownEventArgs Constructor(C1FlexGridBase,MouseButtons,Int32)
Control that will fire the event.
System.Windows.Forms.MouseButtons value that indicates which button was pressed.
Number of times the button was pressed and released.
Initializes a new instance of the BeforeMouseDownEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal view As C1FlexGridBase, _
ByVal buttons As MouseButtons, _
ByVal clicks As Integer _
)
C#
public BeforeMouseDownEventArgs(
C1FlexGridBase view,
MouseButtons buttons,
int clicks
)
Parameters
view
Control that will fire the event.
329
buttons
System.Windows.Forms.MouseButtons value that indicates which button was pressed.
clicks
Number of times the button was pressed and released.
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
Overload List
Fields
For a list of all members of this type, see BeforeMouseDownEventArgs members.
Public Fields
Name
Description
Button
Cancel
Clicks
Gets the number of times the mouse button was pressed and released.
Delta
Gets a signed count of the number of detents the mouse wheel has rotated.
A detent is one notch of the mouse wheel.
330
Top
See Also
Reference
BeforeMouseDownEventArgs Class
C1.Win.C1FlexGrid Namespace
Button Field
Gets which mouse button was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Button As MouseButtons
C#
public readonly MouseButtons Button
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
Cancel Field
Gets or sets a value indicating whether the event should be canceled.
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
331
C#
public bool Cancel
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
Clicks Field
Gets the number of times the mouse button was pressed and released.
Syntax
Visual Basic (Declaration)
Public ReadOnly Clicks As Integer
C#
public readonly int Clicks
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
332
Delta Field
Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch
of the mouse wheel.
Syntax
Visual Basic (Declaration)
Public ReadOnly Delta As Integer
C#
public readonly int Delta
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
X Field
Gets the x-coordinate of a mouse click.
Syntax
Visual Basic (Declaration)
Public ReadOnly X As Integer
C#
public readonly int X
Requirements
333
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
Y Field
Gets the y-coordinate of a mouse click.
Syntax
Visual Basic (Declaration)
Public ReadOnly Y As Integer
C#
public readonly int Y
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
BeforeMouseDownEventArgs Class
BeforeMouseDownEventArgs Members
C1FlexGrid
The C1FlexGrid control is a powerful, full-featured grid.
C1FlexGrid provides advanced features such as outline trees, cell merging, masked editing,
translated combo and image lists, owner-draw cells, and automatic data aggregation.
Object Model
334
Syntax
Visual Basic (Declaration)
Public Class C1FlexGrid
Inherits C1FlexGridBase
C#
public class C1FlexGrid : C1FlexGridBase
Remarks
C1FlexGrid can be used in bound mode, where it displays data from .NET data sources, or in
unbound mode, where the grid itself manages the data.
You can use C1FlexGrid to read and write Excel files (.Xls), or read and write grid contents to and
from Xml files.
Classes derived from C1FlexGrid should have a LicenseProvider attribute so Visual Studio will
embed the appropriate licensing information into projects that use the derived control.
For example:
[LicenseProvider(typeof(LicenseProvider))] public class MyGrid :
C1FlexGrid { // implementation }
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1FlexGrid.C1FlexGrid
C1.Win.C1FlexGrid.Classic.C1FlexGridClassic
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
335
See Also
Reference
C1FlexGrid Members
C1.Win.C1FlexGrid Namespace
Overview
The C1FlexGrid control is a powerful, full-featured grid.
C1FlexGrid provides advanced features such as outline trees, cell merging, masked editing,
translated combo and image lists, owner-draw cells, and automatic data aggregation.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1FlexGrid
Inherits C1FlexGridBase
C#
public class C1FlexGrid : C1FlexGridBase
Remarks
C1FlexGrid can be used in bound mode, where it displays data from .NET data sources, or in
unbound mode, where the grid itself manages the data.
You can use C1FlexGrid to read and write Excel files (.Xls), or read and write grid contents to and
from Xml files.
Classes derived from C1FlexGrid should have a LicenseProvider attribute so Visual Studio will
embed the appropriate licensing information into projects that use the derived control.
For example:
[LicenseProvider(typeof(LicenseProvider))] public class MyGrid :
C1FlexGrid { // implementation }
Inheritance Hierarchy
336
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1FlexGrid.C1FlexGrid
C1.Win.C1FlexGrid.Classic.C1FlexGridClassic
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
C1FlexGrid Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods Events
Public Constructors
Name
Description
Public Properties
Name
Description
AccessibilityObject
337
AccessibleDescription
AccessibleName
AccessibleRole
AllowMerging
AllowMergingFixed
Anchor
AutoScrollOffset
BackgroundImage
BackgroundImageLayout
BindingContext
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
338
CompanyName
Container
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
Enabled
Focused
Font
Handle
HasChildren
Height
339
ImeMode
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
LayoutEngine
Left
Location
Margin
MaximumSize
MergedRanges
MinimumSize
Name
Padding
Parent
PreferredSize
340
ProductName
ProductVersion
RecreatingHandle
Region
Right
RightToLeft
Site
Size
TabIndex
TabStop
Tag
Top
TopLevelControl
UseWaitCursor
Visible
Width
Top
Public Methods
341
Name
Description
BeginInvoke
BringToFront
Clear
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose
DoDragDrop
DrawToBitmap
EndInvoke
FindForm
Focus
GetChildAtPoint
GetContainerControl
GetLifetimeService
GetMergedRange
342
given cell.
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
Invoke
IsCellCursor
IsCellHighlighted
PerformLayout
PointToClient
PointToScreen
RectangleToClient
RectangleToScreen
343
Refresh
ResetText
ResumeLayout
Scale
SelectNextControl
SendToBack
SetBounds
Show
SuspendLayout
ToString
Update
Top
Public Events
Name
Description
BackColorChanged
BackgroundImageChanged
344
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
Disposed
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
345
FontChanged
ForeColorChanged
GiveFeedback
GotFocus
HandleCreated
HandleDestroyed
HelpRequested
ImeModeChanged
Invalidated
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
LostFocus
MarginChanged
MouseCaptureChanged
346
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
MouseWheel
Move
PaddingChanged
Paint
ParentChanged
PreviewKeyDown
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
Resize
347
RightToLeftChanged
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1FlexGrid Class
C1.Win.C1FlexGrid Namespace
C1FlexGrid Constructor
Creates a new instance of the C1FlexGrid control.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
348
public C1FlexGrid()
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
C1FlexGrid Class
C1FlexGrid Members
Overload List
Methods
For a list of all members of this type, see C1FlexGrid members.
Public Methods
Name
Description
BeginInvoke
BringToFront
Clear
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose
349
DoDragDrop
DrawToBitmap
EndInvoke
FindForm
Focus
GetChildAtPoint
GetContainerControl
GetLifetimeService
GetMergedRange
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
Invoke
IsCellCursor
350
IsCellHighlighted
PerformLayout
PointToClient
PointToScreen
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
SelectNextControl
SendToBack
SetBounds
Show
SuspendLayout
351
ToString
Update
Top
See Also
Reference
C1FlexGrid Class
C1.Win.C1FlexGrid Namespace
Clear Method
Overridden to clear merged ranges.
Overload List
Overload
Description
Clear()
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
C1FlexGrid Class
C1FlexGrid Members
Clear() Method
Overridden to clear merged ranges.
Syntax
Visual Basic (Declaration)
352
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
C1FlexGrid Class
C1FlexGrid Members
Overload List
GetMergedRange Method
Returns the merged range of cells that includes a given cell.
Overload List
Overload
Description
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
353
C1FlexGrid Class
C1FlexGrid Members
GetMergedRange(Int32,Int32,Boolean) Method
Example
Row index.
Column index.
Whether the range should be clipped to the visible area of the grid.
Returns the merged range of cells that includes a given cell.
Syntax
Visual Basic (Declaration)
Public Overloads Overridable Function GetMergedRange( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal clip As Boolean _
) As CellRange
C#
public virtual CellRange GetMergedRange(
int row,
int col,
bool clip
)
Parameters
row
Row index.
col
Column index.
clip
Whether the range should be clipped to the visible area of the grid.
Return Value
354
Remarks
Cell merging is controlled by the AllowMerging property. The
GetMergedRange(Int32,Int32,Boolean) method allows you to determine whether a
cell is merged with adjacent cells.
You can override the GetMergedRange(Int32,Int32,Boolean) method to implement
custom merging logic. If you do this, make sure the merging method is consistent
and efficient, since it gets called frequently and affects the grid's appearance and
behavior.
Example
The code below checks the current cell after a selection to see if it is part of a
merged range: The code below shows how you can override the
GetMergedRange(Int32,Int32,Boolean) method to provide custom merging:
C#
C#
355
if (row >= 1 && row <= 3 && col >= 1 && col <= 3)
return GetCellRange(1, 1, 3, 3);
// don't merge anything else
return GetCellRange(row, col);
}
}
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
C1FlexGrid Class
C1FlexGrid Members
Overload List
GetMergedRange(Int32,Int32) Method
Row index.
Column index.
Returns the merged range of cells that includes a given cell.
Syntax
Visual Basic (Declaration)
Public Overloads Function GetMergedRange( _
ByVal row As Integer, _
ByVal col As Integer _
) As CellRange
C#
public CellRange GetMergedRange(
int row,
int col
)
Parameters
356
row
Row index.
col
Column index.
Return Value
A CellRange object that contains the given cell.
Remarks
This method returns the entire range, including invisible cells.
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
C1FlexGrid Class
C1FlexGrid Members
Overload List
Invalidate Method
Invalidates a cell range, causing it to be repainted.
Overload List
Overload
Description
Invalidate(CellRange)
Invalidate(Region)
Invalidate(Region,Boolean)
357
Invalidate(Boolean)
Invalidate(Rectangle)
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
C1FlexGrid Class
C1FlexGrid Members
Invalidate(CellRange) Method
Range to be invalidated.
Invalidates a cell range, causing it to be repainted.
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub Invalidate( _
ByVal rg As CellRange _
)
C#
public override void Invalidate(
CellRange rg
)
Parameters
rg
Range to be invalidated.
358
Remarks
This method is rarely used by the programmer, since the grid automatically performs
invalidation as needed.
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
C1FlexGrid Class
C1FlexGrid Members
Overload List
IsCellCursor Method
Row index.
Column index.
Gets a value that determines if a cell contains the grid cursor.
Syntax
Visual Basic (Declaration)
Public Overrides Function IsCellCursor( _
ByVal row As Integer, _
ByVal col As Integer _
) As Boolean
C#
public override bool IsCellCursor(
int row,
int col
)
Parameters
359
row
Row index.
col
Column index.
Return Value
True if the cell contains the cursor, false otherwise.
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
C1FlexGrid Class
C1FlexGrid Members
IsCellHighlighted Method
Row index.
Column index.
Gets a value that determines if a cell is part of the selection and should be highlighted.
Syntax
Visual Basic (Declaration)
Public Overrides Function IsCellHighlighted( _
ByVal row As Integer, _
ByVal col As Integer _
) As Boolean
C#
public override bool IsCellHighlighted(
int row,
360
int col
)
Parameters
row
Row index.
col
Column index.
Return Value
True if the cell should be highlighted, false otherwise.
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
C1FlexGrid Class
C1FlexGrid Members
Properties
For a list of all members of this type, see C1FlexGrid members.
Public Properties
Name
Description
AccessibilityObject
361
AccessibleName
AccessibleRole
AllowMerging
AllowMergingFixed
Anchor
AutoScrollOffset
BackgroundImage
BackgroundImageLayout
BindingContext
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
CompanyName
362
Container
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
Enabled
Focused
Font
Handle
HasChildren
Height
ImeMode
363
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
LayoutEngine
Left
Location
Margin
MaximumSize
MergedRanges
MinimumSize
Name
Padding
Parent
PreferredSize
ProductName
364
ProductVersion
RecreatingHandle
Region
Right
RightToLeft
Site
Size
TabIndex
TabStop
Tag
Top
TopLevelControl
UseWaitCursor
Visible
Width
Top
See Also
Reference
C1FlexGrid Class
C1.Win.C1FlexGrid Namespace
365
AllowMerging Property
Example
Syntax
Visual Basic (Declaration)
Public Property AllowMerging As AllowMergingEnum
C#
public AllowMergingEnum AllowMerging {get; set;}
Remarks
Merging cells allows you to display data in a clear, appealing way, because it highlights groups of
identical information. It also gives you flexibility to build tables similar to the ones you can create in
HTML or using Microsoft Word, both of which support merged cells.
To create tables with merged cells, set the AllowMerging property to a value other than
AllowMergingEnum.None, and set the RowCol.AllowMerging property of individual rows and
columns true for the rows and columns you wish to merge. After these properties are set, the grid
will automatically merge adjacent cells that have the same contents.
Whenever the cell contents change, the grid updates the merging state.
Example
The code below causes the grid to merge cells with the same data in column 1:
C#
flex.AllowMerging = AllowMergingEnum.Free;
flex.Cols[1].AllowMerging = true; // merge values in column 1
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
366
C1FlexGrid Class
C1FlexGrid Members
AllowMergingFixed Property
Gets or sets how non-scrollable cells should be merged.
Syntax
Visual Basic (Declaration)
Public Property AllowMergingFixed As AllowMergingEnum
C#
public AllowMergingEnum AllowMergingFixed {get; set;}
Remarks
By default, this property is set to AllowMergingEnum.Default, which causes fixed cells to be merged
with the same setting as scrollable cells.
If you specify a different value for this property, you can use different merging modes for fixed cells
such as column headers than the setting used for scrollable cells.
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
C1FlexGrid Class
C1FlexGrid Members
MergedRanges Property
Gets the CellRangeCollection that determines which grid cells are merged when the AllowMerging
property is set to AllowMergingEnum.Custom.
Syntax
367
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
C1FlexGrid Class
C1FlexGrid Members
C1FlexGridRenderer
Represents an abstract base class for custom grid renderers.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class C1FlexGridRenderer
C#
public abstract class C1FlexGridRenderer
Remarks
To create custom grid renderers, inherit from this class, override the appropriate virtual methods
and properties, and assign an instance of your class to the grid's C1FlexGridBase.Renderer
property.
368
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererSystem
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
C1FlexGridRenderer Members
C1.Win.C1FlexGrid Namespace
Overview
Represents an abstract base class for custom grid renderers.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class C1FlexGridRenderer
C#
public abstract class C1FlexGridRenderer
Remarks
To create custom grid renderers, inherit from this class, override the appropriate virtual methods
and properties, and assign an instance of your class to the grid's C1FlexGridBase.Renderer
property.
369
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererSystem
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
C1FlexGridRenderer Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state.
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells.
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers.
Top
Public Methods
370
Name
Description
OnDrawCell
Top
See Also
Reference
C1FlexGridRenderer Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see C1FlexGridRenderer members.
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
C1FlexGridRenderer Class
C1.Win.C1FlexGrid Namespace
371
GetBackgroundBrush Method
C1FlexGridBase that contains the cell being drawn.
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
A System.Drawing.Rectangle that represents the bounds of the cell being drawn.
Gets a System.Drawing.Brush object used to paint the cell background for a specific cell type.
Syntax
Visual Basic (Declaration)
Public Overridable Function GetBackgroundBrush( _
ByVal flex As C1FlexGridBase, _
ByVal cellType As C1FlexGridRenderer.CellType, _
ByVal bounds As Rectangle _
) As Brush
C#
public virtual Brush GetBackgroundBrush(
C1FlexGridBase flex,
C1FlexGridRenderer.CellType cellType,
Rectangle bounds
)
Parameters
flex
C1FlexGridBase that contains the cell being drawn.
cellType
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
bounds
A System.Drawing.Rectangle that represents the bounds of the cell being drawn.
Return Value
A System.Drawing.Brush object used to render the cell background.
Remarks
372
The bounds parameter can be used to create or select complex brushes such as
gradient or tiled image brushes.
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
C1FlexGridRenderer Class
C1FlexGridRenderer Members
GetBorderPen Method
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Gets a System.Drawing.Pen object used to paint the cell borders.
Syntax
Visual Basic (Declaration)
Public Overridable Function GetBorderPen( _
ByVal cellType As C1FlexGridRenderer.CellType _
) As Pen
C#
public virtual Pen GetBorderPen(
C1FlexGridRenderer.CellType cellType
)
Parameters
cellType
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Return Value
A System.Drawing.Pen object used to paint the cell borders.
373
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
C1FlexGridRenderer Class
C1FlexGridRenderer Members
OnDrawCell Method
Draws a grid cell of any type.
Overload List
Overload
Description
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs)
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
C1FlexGridRenderer Class
C1FlexGridRenderer Members
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs) Method
C1FlexGridBase that contains the cell being drawn.
OwnerDrawCellEventArgs that provides information about the cell being drawn.
374
Syntax
Visual Basic (Declaration)
Public Overloads Overridable Sub OnDrawCell( _
ByVal flex As C1FlexGridBase, _
ByVal e As OwnerDrawCellEventArgs _
)
C#
public virtual void OnDrawCell(
C1FlexGridBase flex,
OwnerDrawCellEventArgs e
)
Parameters
flex
C1FlexGridBase that contains the cell being drawn.
e
OwnerDrawCellEventArgs that provides information about the cell being drawn.
Remarks
This method determines the type of cell being drawn and then calls the
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs,CellType) method passing the
type of cell to be drawn.
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
375
C1FlexGridRenderer Class
C1FlexGridRenderer Members
Overload List
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs,CellType) Method
C1FlexGridBase that contains the cell being drawn.
OwnerDrawCellEventArgs that provides information about the cell being drawn.
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Draws a single grid cell of a specific type.
Syntax
Visual Basic (Declaration)
Public Overloads Overridable Sub OnDrawCell( _
ByVal flex As C1FlexGridBase, _
ByVal e As OwnerDrawCellEventArgs, _
ByVal cellType As C1FlexGridRenderer.CellType _
)
C#
public virtual void OnDrawCell(
C1FlexGridBase flex,
OwnerDrawCellEventArgs e,
C1FlexGridRenderer.CellType cellType
)
Parameters
flex
C1FlexGridBase that contains the cell being drawn.
e
OwnerDrawCellEventArgs that provides information about the cell being drawn.
cellType
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Requirements
376
See Also
Reference
C1FlexGridRenderer Class
C1FlexGridRenderer Members
Overload List
Properties
For a list of all members of this type, see C1FlexGridRenderer members.
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state.
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells.
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers.
Top
See Also
Reference
C1FlexGridRenderer Class
C1.Win.C1FlexGrid Namespace
HeaderForeColor Property
Gets the foreground color of header cells in the normal state.
Syntax
377
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
C1FlexGridRenderer Class
C1FlexGridRenderer Members
TracksMouse Property
Gets a value that determines whether this renderer renders hot cells differently than normal cells.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property TracksMouse As Boolean
C#
public virtual bool TracksMouse {get;}
Remarks
Hot cells are cells currently under the mouse. If a renderer tracks the mouse, then it will be called as
the mouse moves over the grid.
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
378
See Also
Reference
C1FlexGridRenderer Class
C1FlexGridRenderer Members
TracksSelection Property
Gets a value that determines whether this renderer tracks the selection to paint highlighted column
and row headers.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property TracksSelection As Boolean
C#
public virtual bool TracksSelection {get;}
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
C1FlexGridRenderer Class
C1FlexGridRenderer Members
CellBorder
The CellBorder class encapsulates properties that control the appearance of borders in CellStyle
objects.
Object Model
Syntax
379
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellBorder
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
CellBorder Members
C1.Win.C1FlexGrid Namespace
Overview
The CellBorder class encapsulates properties that control the appearance of borders in CellStyle
objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class CellBorder
C#
public class CellBorder
380
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellBorder
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
CellBorder Members
C1.Win.C1FlexGrid Namespace
Members
Properties
Public Properties
Name
Description
Color
Direction
Style
Width
Top
See Also
Reference
CellBorder Class
C1.Win.C1FlexGrid Namespace
381
Properties
For a list of all members of this type, see CellBorder members.
Public Properties
Name
Description
Color
Direction
Style
Width
Top
See Also
Reference
CellBorder Class
C1.Win.C1FlexGrid Namespace
Color Property
Gets or sets the border color (except for 3D borders).
Syntax
Visual Basic (Declaration)
Public Property Color As Color
C#
public Color Color {get; set;}
Remarks
3D borders are always drawn using the system colors defined for highlights and shadows.
Requirements
382
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
CellBorder Class
CellBorder Members
Direction Property
Gets or sets the border direction.
Syntax
Visual Basic (Declaration)
Public Property Direction As BorderDirEnum
C#
public BorderDirEnum Direction {get; set;}
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
CellBorder Class
CellBorder Members
Style Property
Gets or sets the border style.
Syntax
Visual Basic (Declaration)
383
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
CellBorder Class
CellBorder Members
Width Property
Gets or sets the border width (except for 3D borders).
Syntax
Visual Basic (Declaration)
Public Property Width As Integer
C#
public int Width {get; set;}
Remarks
3D borders are always one or two pixels wide.
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
384
CellBorder Class
CellBorder Members
CellRangeCollection
Collection of CellRange objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class CellRangeCollection
C#
public class CellRangeCollection
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellRangeCollection
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
CellRangeCollection Members
C1.Win.C1FlexGrid Namespace
Overview
Collection of CellRange objects.
Object Model
385
Syntax
Visual Basic (Declaration)
Public Class CellRangeCollection
C#
public class CellRangeCollection
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellRangeCollection
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
CellRangeCollection Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
386
Public Properties
Name
Description
Count
Item
Top
Public Methods
Name
Description
Add
Clear
Contains
IndexOf
Insert
Remove
RemoveAt
Top
See Also
Reference
CellRangeCollection Class
C1.Win.C1FlexGrid Namespace
CellRangeCollection Constructor
Grid that owns the collection.
387
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal flexGrid As C1FlexGrid _
)
C#
public CellRangeCollection(
C1FlexGrid flexGrid
)
Parameters
flexGrid
Grid that owns the collection.
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
CellRangeCollection Class
CellRangeCollection Members
Methods
For a list of all members of this type, see CellRangeCollection members.
Public Methods
Name
Description
Add
388
Clear
Contains
IndexOf
Insert
Remove
RemoveAt
Top
See Also
Reference
CellRangeCollection Class
C1.Win.C1FlexGrid Namespace
Add Method
Adds a new CellRange object to the collection.
Overload List
Overload
Description
Add(CellRange)
Add(CellRange,Boolean) Adds a new CellRange object to the collection, optionally removing other
overlapping ranges from the collection.
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
389
Reference
CellRangeCollection Class
CellRangeCollection Members
Add(CellRange) Method
Object to add to the collection.
Adds a new CellRange object to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add( _
ByVal value As CellRange _
) As Integer
C#
public int Add(
CellRange value
)
Parameters
value
Object to add to the collection.
Return Value
The index of the object in the collection.
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
390
CellRangeCollection Class
CellRangeCollection Members
Overload List
Add(CellRange,Boolean) Method
Object to add to the collection.
Whether to remove overlapping ranges from the collection before adding the new range.
Adds a new CellRange object to the collection, optionally removing other overlapping ranges from
the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add( _
ByVal value As CellRange, _
ByVal clearOverlappingRanges As Boolean _
) As Integer
C#
public int Add(
CellRange value,
bool clearOverlappingRanges
)
Parameters
value
Object to add to the collection.
clearOverlappingRanges
Whether to remove overlapping ranges from the collection before adding the new range.
Return Value
The index of the object in the collection.
Requirements
391
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
CellRangeCollection Class
CellRangeCollection Members
Overload List
Clear Method
Removes all objects from the collection.
Syntax
Visual Basic (Declaration)
Public Sub Clear()
C#
public void Clear()
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
CellRangeCollection Class
CellRangeCollection Members
Contains Method
Object to locate in the collection.
Determines whether a CellRange object is a member of the collection.
Syntax
392
Parameters
item
Object to locate in the collection.
Return Value
True if the object is a member of the collection, false otherwise.
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
CellRangeCollection Class
CellRangeCollection Members
IndexOf Method
Gets the index of a CellRange object in the collection.
Overload List
Overload
Description
393
IndexOf(Int32,Int32) Gets the index of the first CellRange object in the collection that contains the
specified row and column.
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
CellRangeCollection Class
CellRangeCollection Members
IndexOf(CellRange) Method
Object to locate in the collection.
Gets the index of a CellRange object in the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function IndexOf( _
ByVal item As CellRange _
) As Integer
C#
public int IndexOf(
CellRange item
)
Parameters
item
Object to locate in the collection.
Return Value
The index of the object in the collection, or -1 if the object is not a member of the collection.
394
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
CellRangeCollection Class
CellRangeCollection Members
Overload List
IndexOf(Int32,Int32) Method
Index of the row contained in the range.
Index of the column contained in the range.
Gets the index of the first CellRange object in the collection that contains the specified row and
column.
Syntax
Visual Basic (Declaration)
Public Overloads Function IndexOf( _
ByVal row As Integer, _
ByVal col As Integer _
) As Integer
C#
public int IndexOf(
int row,
int col
)
Parameters
row
Index of the row contained in the range.
col
395
Return Value
The index of the object in the collection, or -1 if no range could be found containing the
specified row and column.
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
CellRangeCollection Class
CellRangeCollection Members
Overload List
Insert Method
Inserts a CellRange object in the collection at a specified index.
Syntax
Visual Basic (Declaration)
Public Sub Insert( _
ByVal index As Integer, _
ByVal value As CellRange _
)
C#
public void Insert(
int index,
CellRange value
)
Parameters
index
value
396
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
CellRangeCollection Class
CellRangeCollection Members
Remove Method
Object to remove from the collection.
Removes a CellRange object from the collection.
Syntax
Visual Basic (Declaration)
Public Sub Remove( _
ByVal obj As CellRange _
)
C#
public void Remove(
CellRange obj
)
Parameters
obj
Object to remove from the collection.
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
397
See Also
Reference
CellRangeCollection Class
CellRangeCollection Members
RemoveAt Method
Index of the object to remove from the collection.
Removed the object at a specified index from the collection.
Syntax
Visual Basic (Declaration)
Public Sub RemoveAt( _
ByVal index As Integer _
)
C#
public void RemoveAt(
int index
)
Parameters
index
Index of the object to remove from the collection.
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
CellRangeCollection Class
CellRangeCollection Members
398
Properties
For a list of all members of this type, see CellRangeCollection members.
Public Properties
Name
Description
Count
Item
Top
See Also
Reference
CellRangeCollection Class
C1.Win.C1FlexGrid Namespace
Count Property
Gets the number of CellRange objects in the collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Count As Integer
C#
public int Count {get;}
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
399
CellRangeCollection Class
CellRangeCollection Members
Item Property
Gets or sets the CellRange object at a specified index.
Syntax
Visual Basic (Declaration)
Public ReadOnly Default Property Item( _
ByVal index As Integer _
) As CellRange
C#
public CellRange this[
int index
]; {get;}
Parameters
index
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
CellRangeCollection Class
CellRangeCollection Members
CellStyle
Example
The CellStyle class encapsulates properties that control the appearance of grid cells. This
information includes the background and foreground colors, font, text and image alignment, etc.
Object Model
400
Syntax
Visual Basic (Declaration)
Public Class CellStyle
C#
public class CellStyle
Remarks
The C1FlexGridBase.Styles property exposes a collection of grid styles, and has methods for
creating and removing styles from the grid.
You can create and define styles at design time, but right-clicking the grid and selecting the "Edit
Styles" menu option.
Styles follow a hierarchical model similar to styles in Microsoft Word or in cascading style sheets.
Every property in a CellStyle object may be left unassigned, in which case the value is inherited from
a parent style. The parent style is usually the built-in CellStyleCollection.Normal style.
To determine which elements are defined in a particular style, use the DefinedElements property.
When you modify the properties of a CellStyle object, all cells that use that style are automatically
repainted to reflect the changes.
Styles may be assigned to CellRange, Row, and Column objects, as shown in the example below.
Example
The example below creates three CellStyle objects and assigns them to grid rows, columns, and cell
ranges.
After running this code, the third column of the grid will be painted with a red background. The
third row will be painted with a green background. The cell at the intersection will be painted in red,
because column styles have priority over row styles. The remaining style elements for these cells
(font, alignment, etc) are not defined in the new styles and are automatically inherited from the
parent style (CellStyleCollection.Normal).
The cells around the intersection will have a bold font. The style that defines the bold font does not
specify a background color, so that element is inherited from the parent style, which may be the
"red", "green", or "normal" styles.
401
C#
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellStyle
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
CellStyle Members
C1.Win.C1FlexGrid Namespace
Overview
Example
The CellStyle class encapsulates properties that control the appearance of grid cells. This
information includes the background and foreground colors, font, text and image alignment, etc.
Object Model
402
Syntax
Visual Basic (Declaration)
Public Class CellStyle
C#
public class CellStyle
Remarks
The C1FlexGridBase.Styles property exposes a collection of grid styles, and has methods for
creating and removing styles from the grid.
You can create and define styles at design time, but right-clicking the grid and selecting the "Edit
Styles" menu option.
Styles follow a hierarchical model similar to styles in Microsoft Word or in cascading style sheets.
Every property in a CellStyle object may be left unassigned, in which case the value is inherited from
a parent style. The parent style is usually the built-in CellStyleCollection.Normal style.
To determine which elements are defined in a particular style, use the DefinedElements property.
When you modify the properties of a CellStyle object, all cells that use that style are automatically
repainted to reflect the changes.
Styles may be assigned to CellRange, Row, and Column objects, as shown in the example below.
Example
The example below creates three CellStyle objects and assigns them to grid rows, columns, and cell
ranges.
After running this code, the third column of the grid will be painted with a red background. The
third row will be painted with a green background. The cell at the intersection will be painted in red,
because column styles have priority over row styles. The remaining style elements for these cells
(font, alignment, etc) are not defined in the new styles and are automatically inherited from the
parent style (CellStyleCollection.Normal).
The cells around the intersection will have a bold font. The style that defines the bold font does not
specify a background color, so that element is inherited from the parent style, which may be the
"red", "green", or "normal" styles.
403
C#
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellStyle
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
CellStyle Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
404
Name
Description
BackColor
BackgroundImage
BackgroundImageLayout Gets or sets the a value that determines how the style will scale and
position background image.
Border
ComboList
DataMap
DataType
DefinedElements
Display
EditMask
Editor
Gets or sets the custom editor used to edit cells that have this style.
Font
ForeColor
Format
ImageAlign
ImageMap
405
Gets or sets the space between images and text in a cell, in pixels.
Margins
Gets or sets the margins between the edges of the cell and its
contents, in pixels.
Name
StringFormat
Gets the StringFormat element used for rendering strings when the
C1FlexGridBase.UseCompatibleTextRendering property is set to
true.
TextAlign
TextDirection
TextEffect
Trimming
Gets or sets how long strings are trimmed to fit the cell.
UserData
WordWrap
Top
Public Methods
Name
Description
BuildString
Clear
406
Equals
Serves as a hash function for a particular type, suitable for use in hashing
algorithms and data structures like a hash table.
GetImageRectangle
GetTextRectangle
MergeWith
ParseString
Render
Top
See Also
Reference
CellStyle Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see CellStyle members.
Public Methods
Name
Description
BuildString
Clear
407
Equals
Serves as a hash function for a particular type, suitable for use in hashing
algorithms and data structures like a hash table.
GetImageRectangle
GetTextRectangle
MergeWith
ParseString
Render
Top
See Also
Reference
CellStyle Class
C1.Win.C1FlexGrid Namespace
BuildString Method
Returns a compact string representation of this CellStyle.
Overload List
Overload
Description
BuildString()
Requirements
408
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
CellStyle Class
CellStyle Members
BuildString() Method
Example
Syntax
Visual Basic (Declaration)
Public Overloads Function BuildString() As String
C#
public string BuildString()
Return Value
A string containing the settings of all style elements defined in this CellStyle.
Remarks
This method is used to persist grid styles and can be used to define and save 'skins'.
See the CellStyleCollection.BuildString and CellStyleCollection.ParseString methods.
The string returned contains definitions only for the style elements that are defined by this
CellStyle. Elements inherited from other styles are not included. To build a string containing specific
elements, use the BuildString(StyleElementFlags) method instead.
Example
The code below creates a style with a custom font and background color and builds a string that
represents the new style. Then it uses the string to initialize a second style.
C#
409
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
CellStyle Class
CellStyle Members
Overload List
BuildString(StyleElementFlags) Method
Example
StyleElementFlags that specifies which style elements should be included in the string.
Returns a string representation of this CellStyle.
Syntax
Visual Basic (Declaration)
Public Overloads Function BuildString( _
ByVal elements As StyleElementFlags _
) As String
C#
public string BuildString(
410
StyleElementFlags elements
)
Parameters
elements
StyleElementFlags that specifies which style elements should be included in the string.
Return Value
A string containing the settings of the specified style elements.
Remarks
This method is used to persist grid styles and can be used to define and save 'skins'.
See the CellStyleCollection.BuildString and CellStyleCollection.ParseString methods.
Example
The code below shows the effect of specifying different values for the elements parameter. It
builds one compact string containing only the elements actually defined in a style, and
another including all style elements.
C#
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
CellStyle Class
CellStyle Members
Overload List
411
Clear Method
Clears selected elements from this style.
Overload List
Overload
Description
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
CellStyle Class
CellStyle Members
Clear(StyleElementFlags) Method
Clears selected elements from this style.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Clear( _
ByVal flags As StyleElementFlags _
)
C#
public void Clear(
StyleElementFlags flags
)
Parameters
412
flags
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
CellStyle Class
CellStyle Members
Overload List
Clear() Method
Clears all elements in this style.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Clear()
C#
public void Clear()
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
CellStyle Class
CellStyle Members
Overload List
Equals Method
Style to compare with this style.
413
Syntax
Visual Basic (Declaration)
Public Overrides Function Equals( _
ByVal o As Object _
) As Boolean
C#
public override bool Equals(
object o
)
Parameters
o
Style to compare with this style.
Return Value
True if the two styles are equal, false otherwise.
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
CellStyle Class
CellStyle Members
GetContentRectangle Method
Cell rectangle.
Gets the content portion of a cell's rectangle.
Syntax
414
Parameters
rc
Cell rectangle.
Return Value
A rectangle that represents the content portion of a cell, discounting the area taken up by the
cell borders.
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
CellStyle Class
CellStyle Members
GetHashCode Method
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data
structures like a hash table.
Syntax
Visual Basic (Declaration)
415
Return Value
A hash code for the style instance.
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
CellStyle Class
CellStyle Members
GetImageRectangle Method
Cell rectangle.
Image to be displayed on the cell.
Gets the image portion of a cell's rectangle.
Syntax
Visual Basic (Declaration)
Public Function GetImageRectangle( _
ByVal rc As Rectangle, _
ByVal img As Image _
) As Rectangle
C#
public Rectangle GetImageRectangle(
Rectangle rc,
Image img
416
Parameters
rc
Cell rectangle.
img
Image to be displayed on the cell.
Return Value
A rectangle that represents the image portion of a cell, discounting the area taken up by
the cell borders and padding.
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
CellStyle Class
CellStyle Members
GetTextRectangle Method
Cell rectangle.
Image that shares the cell space with the text.
Gets the text portion of a cell's rectangle.
Syntax
Visual Basic (Declaration)
Public Function GetTextRectangle( _
ByVal rc As Rectangle, _
ByVal img As Image _
) As Rectangle
417
C#
public Rectangle GetTextRectangle(
Rectangle rc,
Image img
)
Parameters
rc
Cell rectangle.
img
Image that shares the cell space with the text.
Return Value
A rectangle that represents the text portion of a cell, discounting the area taken up by
the cell borders, padding, and images.
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
CellStyle Class
CellStyle Members
MergeWith Method
Example
Syntax
Visual Basic (Declaration)
Public Sub MergeWith( _
418
Parameters
sourceStyle
Remarks
This method is used to create styles preserving existing style elements such as DataType or
Format.
Example
The code below changes a column so it looks like a fixed column, without modifying the
column's data type, alignment, etc.
C#
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
419
CellStyle Class
CellStyle Members
ParseString Method
Rebuilds this style based on a description contained in a string.
Syntax
Visual Basic (Declaration)
Public Function ParseString( _
ByVal str As String _
) As Boolean
C#
public bool ParseString(
string str
)
Parameters
str
Return Value
True if the string was successfully parsed, false otherwise.
Remarks
This method is used to persist grid styles and can be used to define and save 'skins'.
See the CellStyleCollection.BuildString and CellStyleCollection.ParseString methods.
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
420
CellStyle Class
CellStyle Members
Render Method
Renders a string and an image into a System.Drawing.Graphics object using this style.
Overload List
Overload
Description
Render(Graphics,Rectangle,String)
Render(Graphics,Rectangle,Image)
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
CellStyle Class
CellStyle Members
421
Render(Graphics,Rectangle,String,Image,DrawCellFlags) Method
System.Drawing.Graphics object to render into.
Area where the element will be displayed.
Text to render.
Image to render.
Combination of DrawCellFlags that determines which elements will be rendered.
Renders a string and an image into a System.Drawing.Graphics object using this style.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Render( _
ByVal g As Graphics, _
ByVal rc As Rectangle, _
ByVal str As String, _
ByVal img As Image, _
ByVal flags As DrawCellFlags _
)
C#
public void Render(
Graphics g,
Rectangle rc,
string str,
Image img,
DrawCellFlags flags
)
Parameters
g
System.Drawing.Graphics object to render into.
rc
Area where the element will be displayed.
str
422
Text to render.
img
Image to render.
flags
Combination of DrawCellFlags that determines which elements will be rendered.
Remarks
This method allows using CellStyle objects to render objects outside the
grid. It can be useful when implementing owner-drawn applications and
style editors for example.
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
CellStyle Class
CellStyle Members
Overload List
Render(Graphics,Rectangle,String,Image) Method
System.Drawing.Graphics object to render into.
Area where the element will be displayed.
Text to render.
Image to render.
Renders a string and an image into a System.Drawing.Graphics object using this style.
Syntax
Visual Basic (Declaration)
423
Parameters
g
System.Drawing.Graphics object to render into.
rc
Area where the element will be displayed.
str
Text to render.
img
Image to render.
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
424
CellStyle Class
CellStyle Members
Overload List
Render(Graphics,Rectangle,String) Method
System.Drawing.Graphics object to render into.
Area where the element will be displayed.
Text to render.
Renders a string and an image into a System.Drawing.Graphics object using this style.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Render( _
ByVal g As Graphics, _
ByVal rc As Rectangle, _
ByVal str As String _
)
C#
public void Render(
Graphics g,
Rectangle rc,
string str
)
Parameters
g
System.Drawing.Graphics object to render into.
rc
Area where the element will be displayed.
str
Text to render.
Requirements
425
See Also
Reference
CellStyle Class
CellStyle Members
Overload List
Render(Graphics,Rectangle,Image) Method
System.Drawing.Graphics object to render into.
Area where the element will be displayed.
Image to render.
Renders a string and an image into a System.Drawing.Graphics object using this style.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Render( _
ByVal g As Graphics, _
ByVal rc As Rectangle, _
ByVal img As Image _
)
C#
public void Render(
Graphics g,
Rectangle rc,
Image img
)
Parameters
g
System.Drawing.Graphics object to render into.
426
rc
Area where the element will be displayed.
img
Image to render.
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
CellStyle Class
CellStyle Members
Overload List
Properties
For a list of all members of this type, see CellStyle members.
Public Properties
Name
Description
BackColor
BackgroundImage
BackgroundImageLayout Gets or sets the a value that determines how the style will scale and
position background image.
Border
ComboList
DataMap
427
DefinedElements
Display
EditMask
Editor
Gets or sets the custom editor used to edit cells that have this style.
Font
ForeColor
Format
ImageAlign
ImageMap
ImageSpacing
Gets or sets the space between images and text in a cell, in pixels.
Margins
Gets or sets the margins between the edges of the cell and its
contents, in pixels.
Name
StringFormat
Gets the StringFormat element used for rendering strings when the
C1FlexGridBase.UseCompatibleTextRendering property is set to
true.
TextAlign
428
TextDirection
TextEffect
Trimming
Gets or sets how long strings are trimmed to fit the cell.
UserData
WordWrap
Top
See Also
Reference
CellStyle Class
C1.Win.C1FlexGrid Namespace
BackColor Property
Gets or sets the color used to paint the cell background.
Syntax
Visual Basic (Declaration)
Public Property BackColor As Color
C#
public Color BackColor {get; set;}
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
429
CellStyle Class
CellStyle Members
BackgroundImage Property
Gets or sets the style's background image.
Syntax
Visual Basic (Declaration)
Public Property BackgroundImage As Image
C#
public Image BackgroundImage {get; set;}
Remarks
This property works with BackgroundImageLayout to determine whether and how background
images are rendered in cells.
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
CellStyle Class
CellStyle Members
BackgroundImageLayout Property
Gets or sets the a value that determines how the style will scale and position background image.
Syntax
Visual Basic (Declaration)
Public Property BackgroundImageLayout As ImageAlignEnum
430
C#
public ImageAlignEnum BackgroundImageLayout {get; set;}
Remarks
This property works with BackgroundImage to determine whether and how background images are
rendered in cells.
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
CellStyle Class
CellStyle Members
Border Property
Gets the CellBorder object associated with this style.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Border As CellBorder
C#
public CellBorder Border {get;}
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
431
CellStyle Class
CellStyle Members
ComboList Property
Gets or sets a pipe-delimited list of valid values.
Syntax
Visual Basic (Declaration)
Public Property ComboList As String
C#
public string ComboList {get; set;}
Remarks
If the cell is editable, this list of values is used to populate the drop-down
System.Windows.Forms.ComboBox used to edit the cell.
If the list starts with a pipe character, then the list is not exclusive and the user may type values that
are not on the list.
If the list contains three periods ("..."), then a button is displayed in the cell. When the user presses
the button, the grid fires the C1FlexGridBase.CellButtonClick event.
If the list contains a pipe followed by three periods ("|..."), then a button is displayed in the cell as
before, and the user may also type into the cell.
See also the DataMap property for an alternate way of specifying valid values for a cell.
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
CellStyle Class
CellStyle Members
432
DataMap Property
Gets or sets an System.Collections.IDictionary used to associate cell values with display values.
Syntax
Visual Basic (Declaration)
Public Property DataMap As IDictionary
C#
public IDictionary DataMap {get; set;}
Remarks
If the cell is editable, this list of values is used to populate the drop-down
System.Windows.Forms.ComboBox used to edit the cell. In this case, the order of the items in the
combo list is determined by the order of the elements in the dictionary.
The most common dictionary class, System.Collections.Hashtable, uses arbitrary order. If you want
control over the item order, use a different dictionary class such as
System.Collections.Specialized.ListDictionary.
The C1FlexGrid assembly also includes a MultiColumnDictionary class, which can be used to create
multi-column and data-bound dictionaries.
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
CellStyle Class
CellStyle Members
DataType Property
Gets or sets the data type for the style.
Syntax
433
Remarks
When the grid is bound to a data source, this property is set automatically based on the data
schema.
This property is used to coerce values assigned to cells into the proper type.
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
CellStyle Class
CellStyle Members
DefinedElements Property
Gets or sets which elements are defined in this style.
Syntax
Visual Basic (Declaration)
Public Property DefinedElements As StyleElementFlags
C#
public StyleElementFlags DefinedElements {get; set;}
Remarks
Elements that are not defined in a particular style are automatically inherited from the ancestor
style (usually the Normal style). For example, if you create a custom style that defines the Font
434
property, all other elements (back color, alignment, and so on) are inherited from the ancestor style,
which may be the Normal style or another custom style assigned to a row or column.
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
CellStyle Class
CellStyle Members
Display Property
Gets or sets whether to show images, text, or both.
Syntax
Visual Basic (Declaration)
Public Property Display As DisplayEnum
C#
public DisplayEnum Display {get; set;}
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
CellStyle Class
CellStyle Members
EditMask Property
Gets or sets the mask string used to edit values.
435
Syntax
Visual Basic (Declaration)
Public Property EditMask As String
C#
public string EditMask {get; set;}
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
CellStyle Class
CellStyle Members
Editor Property
Gets or sets the custom editor used to edit cells that have this style.
Syntax
Visual Basic (Declaration)
Public Property Editor As Control
C#
public Control Editor {get; set;}
Remarks
The grid provides several built-in editors that are automatically selected based on the properties of
the cell being edited.
This property allows you to use external editors when editing values that have a given CellStyle. Any
control can be used as an external editor, but to achieve complete integration with the grid, the
external editor should implement the IC1EmbeddedEditor interface.
436
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
CellStyle Class
CellStyle Members
Font Property
Gets or sets the font used to paint text in the cell.
Syntax
Visual Basic (Declaration)
Public Property Font As Font
C#
public Font Font {get; set;}
Remarks
Setting the control's Font property automatically sets the Font property of the Normal style.
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
CellStyle Class
CellStyle Members
437
ForeColor Property
Gets or sets the color of the text in the cell.
Syntax
Visual Basic (Declaration)
Public Property ForeColor As Color
C#
public Color ForeColor {get; set;}
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
CellStyle Class
CellStyle Members
Format Property
Gets or sets the format string used to display values.
Syntax
Visual Basic (Declaration)
Public Property Format As String
C#
public string Format {get; set;}
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
438
See Also
Reference
CellStyle Class
CellStyle Members
ImageAlign Property
Gets or sets the image alignment.
Syntax
Visual Basic (Declaration)
Public Property ImageAlign As ImageAlignEnum
C#
public ImageAlignEnum ImageAlign {get; set;}
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
CellStyle Class
CellStyle Members
ImageMap Property
Gets or sets an System.Collections.IDictionary used to associate cell values with images.
Syntax
Visual Basic (Declaration)
Public Property ImageMap As IDictionary
C#
439
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
CellStyle Class
CellStyle Members
ImageSpacing Property
Gets or sets the space between images and text in a cell, in pixels.
Syntax
Visual Basic (Declaration)
Public Property ImageSpacing As Integer
C#
public int ImageSpacing {get; set;}
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
CellStyle Class
CellStyle Members
Margins Property
Gets or sets the margins between the edges of the cell and its contents, in pixels.
Syntax
440
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
CellStyle Class
CellStyle Members
Name Property
Gets or sets the style name.
Syntax
Visual Basic (Declaration)
Public Property Name As String
C#
public string Name {get; set;}
Remarks
Style names must be unique. Setting a style name to the name of an already existing style will
throw an exception.
Style names must have one or more characters and may not include curly braces ('{' and '}').
Requirements
441
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
CellStyle Class
CellStyle Members
StringFormat Property
Gets the StringFormat element used for rendering strings when the
C1FlexGridBase.UseCompatibleTextRendering property is set to true.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property StringFormat As StringFormat
C#
public StringFormat StringFormat {get;}
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
CellStyle Class
CellStyle Members
TextAlign Property
Gets or sets the text alignment.
Syntax
442
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
CellStyle Class
CellStyle Members
TextDirection Property
Gets or sets the text direction.
Syntax
Visual Basic (Declaration)
Public Property TextDirection As TextDirectionEnum
C#
public TextDirectionEnum TextDirection {get; set;}
Remarks
Cells containing vertical text can wrap and be auto sized as usual.
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
443
See Also
Reference
CellStyle Class
CellStyle Members
TextEffect Property
Gets or sets the 3D effect used to paint text.
Syntax
Visual Basic (Declaration)
Public Property TextEffect As TextEffectEnum
C#
public TextEffectEnum TextEffect {get; set;}
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
CellStyle Class
CellStyle Members
Trimming Property
Gets or sets how long strings are trimmed to fit the cell.
Syntax
Visual Basic (Declaration)
Public Property Trimming As StringTrimming
C#
444
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
CellStyle Class
CellStyle Members
UserData Property
Gets or sets arbitrary user data associated with this style.
Syntax
Visual Basic (Declaration)
Public Property UserData As Object
C#
public object UserData {get; set;}
Remarks
This data is not used by the control, and can be used to store any data that is useful to the
application.
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
445
CellStyle Class
CellStyle Members
WordWrap Property
Gets or sets whether long strings should automatically wrap within the cell.
Syntax
Visual Basic (Declaration)
Public Property WordWrap As Boolean
C#
public bool WordWrap {get; set;}
Remarks
This property determines whether the grid should automatically break long strings that contain
spaces and display them in multiple lines.
String that contain hard line breaks (vbCrLf or "\n\r") are always displayed in multiple lines.
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
CellStyle Class
CellStyle Members
CellStyleCollection
Collection of CellStyle objects defined for a grid.
Object Model
Syntax
446
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.CellStyleCollection
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
CellStyleCollection Members
C1.Win.C1FlexGrid Namespace
Overview
Collection of CellStyle objects defined for a grid.
Object Model
Syntax
Visual Basic (Declaration)
Public Class CellStyleCollection
C#
public class CellStyleCollection
Inheritance Hierarchy
447
System.Object
C1.Win.C1FlexGrid.CellStyleCollection
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
CellStyleCollection Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Alternate
Count
Editor
EmptyArea
Gets the style used to paint the area of the grid below and to the right
of all the cells.
FilterEditor
Fixed
Focus
Gets the style used to paint the current cell when the control has
focus.
448
Frozen
Gets the style used to paint frozen cells (frozen cells are editable and
selectable, but not scrollable).
Highlight
Item
NewRow
Gets the style used to paint cells in the new row template at the
bottom of the grid.
Normal
Search
Gets the style used to paint the cell selected while auto-searching.
Top
Public Methods
Name
Description
Add
BuildString
Clear
Clear all styles (even those in use) and reset the built-in styles.
ClearUnused
Contains
IndexOf
449
ParseString
Remove
Top
See Also
Reference
CellStyleCollection Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see CellStyleCollection members.
Public Methods
Name
Description
Add
BuildString
Clear
Clear all styles (even those in use) and reset the built-in styles.
ClearUnused
Contains
IndexOf
ParseString
Remove
Top
See Also
450
Reference
CellStyleCollection Class
C1.Win.C1FlexGrid Namespace
Add Method
Adds a new CellStyle object to the collection.
Overload List
Overload
Description
Add(String)
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
CellStyleCollection Class
CellStyleCollection Members
Add(String,CellStyle) Method
Name of the new style.
Base style, used to initialize the properties of the new style.
Adds a new CellStyle object to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add( _
451
Parameters
name
Name of the new style.
basedOn
Base style, used to initialize the properties of the new style.
Return Value
The new CellStyle object.
Remarks
If a style with the given name already exists, the existing style is returned and no
exception is thrown.
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
Add(String,String) Method
Name of the new style.
452
Name of the base style, used to initialize the properties of the new style.
Adds new CellStyle object to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add( _
ByVal name As String, _
ByVal basedOn As String _
) As CellStyle
C#
public CellStyle Add(
string name,
string basedOn
)
Parameters
name
Name of the new style.
basedOn
Name of the base style, used to initialize the properties of the new style.
Return Value
The new CellStyle object.
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
453
CellStyleCollection Class
CellStyleCollection Members
Overload List
Add(String) Method
Name of the new style.
Adds a new empty CellStyle object to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add( _
ByVal name As String _
) As CellStyle
C#
public CellStyle Add(
string name
)
Parameters
name
Name of the new style.
Return Value
The new CellStyle object.
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
454
CellStyleCollection Class
CellStyleCollection Members
Overload List
BuildString Method
Whether styles with no attributes should be included.
Builds and returns a compact string representation of the style collection.
Syntax
Visual Basic (Declaration)
Public Function BuildString( _
ByVal includeEmpty As Boolean _
) As String
C#
public string BuildString(
bool includeEmpty
)
Parameters
includeEmpty
Whether styles with no attributes should be included.
Return Value
A compact string representation of the style collection.
Remarks
This method is used internally to implement design-time persistence.
It can also be used for implementing 'skins', by saving the current styles into a collection and
later applying them to the grid using the ParseString method.
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
455
See Also
Reference
CellStyleCollection Class
CellStyleCollection Members
Clear Method
Clear all styles (even those in use) and reset the built-in styles.
Syntax
Visual Basic (Declaration)
Public Sub Clear()
C#
public void Clear()
Remarks
The Clear method also removes any custom styles assigned to rows, columns, and cells.
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
CellStyleCollection Class
CellStyleCollection Members
ClearUnused Method
Clear all unused styles.
Syntax
Visual Basic (Declaration)
456
Remarks
Unused styles are unnamed styles that were created and are no longer assigned to any grid
elements.
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
CellStyleCollection Class
CellStyleCollection Members
Contains Method
Name of the style to look for.
Checks whether the collection contains a given style.
Syntax
Visual Basic (Declaration)
Public Function Contains( _
ByVal name As String _
) As Boolean
C#
public bool Contains(
string name
)
Parameters
457
name
Name of the style to look for.
Return Value
True if the collection contains a style called name, false otherwise.
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
CellStyleCollection Class
CellStyleCollection Members
IndexOf Method
Style object to look for.
Gets the index of a style in the collection.
Syntax
Visual Basic (Declaration)
Public Function IndexOf( _
ByVal style As CellStyle _
) As Integer
C#
public int IndexOf(
CellStyle style
)
Parameters
style
Style object to look for.
458
Return Value
Index of the style in the collection, or -1 if the style is not a member of the collection.
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
CellStyleCollection Class
CellStyleCollection Members
ParseString Method
String containing style definitions.
Parses a string containing style definitions.
Syntax
Visual Basic (Declaration)
Public Function ParseString( _
ByVal styleDef As String _
) As Boolean
C#
public bool ParseString(
string styleDef
)
Parameters
styleDef
String containing style definitions.
Return Value
True if the string was parsed successfully, false otherwise.
459
Remarks
The style definition string is usually obtained from a call to BuildString method.
The new definitions are merged with the current ones. To completely replace the styles, call
the Clear method before parsing the new styles.
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
CellStyleCollection Class
CellStyleCollection Members
Remove Method
Removes a custom style from the collection.
Overload List
Overload
Description
Remove(Int32)
Remove(String)
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
460
CellStyleCollection Class
CellStyleCollection Members
Remove(Int32) Method
Index of the style to be removed.
Removes a custom style from the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Remove( _
ByVal index As Integer _
)
C#
public void Remove(
int index
)
Parameters
index
Index of the style to be removed.
Remarks
Built-in styles can't be removed.
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
461
Remove(String) Method
Name of the style to be removed.
Removes a custom style from the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Remove( _
ByVal name As String _
)
C#
public void Remove(
string name
)
Parameters
name
Name of the style to be removed.
Remarks
Built-in styles can't be removed.
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
Remove(CellStyle) Method
Style to be removed from the collection.
462
Syntax
Visual Basic (Declaration)
Public Overloads Sub Remove( _
ByVal style As CellStyle _
)
C#
public void Remove(
CellStyle style
)
Parameters
style
Style to be removed from the collection.
Remarks
Built-in styles can't be removed.
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
Properties
For a list of all members of this type, see CellStyleCollection members.
Public Properties
463
Name
Description
Alternate
Count
Editor
EmptyArea
Gets the style used to paint the area of the grid below and to the right
of all the cells.
FilterEditor
Fixed
Focus
Gets the style used to paint the current cell when the control has
focus.
Frozen
Gets the style used to paint frozen cells (frozen cells are editable and
selectable, but not scrollable).
Highlight
Item
NewRow
Gets the style used to paint cells in the new row template at the
bottom of the grid.
Normal
Search
Gets the style used to paint the cell selected while auto-searching.
464
Top
See Also
Reference
CellStyleCollection Class
C1.Win.C1FlexGrid Namespace
Alternate Property
Gets the style used to paint scrollable cells in alternate rows.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Alternate As CellStyle
C#
public CellStyle Alternate {get;}
Remarks
This style is empty by default, so all scrollable cells are rendered using the Normal style.
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
CellStyleCollection Class
CellStyleCollection Members
Count Property
Gets the number of CellStyle objects in the collection.
Syntax
465
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
CellStyleCollection Class
CellStyleCollection Members
Editor Property
Gets the style used to paint the cell being edited.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Editor As CellStyle
C#
public CellStyle Editor {get;}
Remarks
This style is empty by default, so cells being edited are rendered using the Focus style.
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
466
See Also
Reference
CellStyleCollection Class
CellStyleCollection Members
EmptyArea Property
Gets the style used to paint the area of the grid below and to the right of all the cells.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property EmptyArea As CellStyle
C#
public CellStyle EmptyArea {get;}
Remarks
Only the CellStyle.BackColor and CellStyle.Border elements of this style are used. They define the
appearance of the space between the last cell and the edges of the control.
The CellBorder.Color value defines the color of the lines drawn around the edge of the sheet and
between frozen and scrollable cells.
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
CellStyleCollection Class
CellStyleCollection Members
FilterEditor Property
Gets the style used to paint the column filter editors.
467
Syntax
Visual Basic (Declaration)
Public ReadOnly Property FilterEditor As CellStyle
C#
public CellStyle FilterEditor {get;}
Remarks
This style is only used if the grid's C1FlexGridBase.AllowFiltering property is set to true.
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
CellStyleCollection Class
CellStyleCollection Members
Fixed Property
Gets the style used to paint fixed cells.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Fixed As CellStyle
C#
public CellStyle Fixed {get;}
Requirements
468
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
CellStyleCollection Class
CellStyleCollection Members
Focus Property
Gets the style used to paint the current cell when the control has focus.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Focus As CellStyle
C#
public CellStyle Focus {get;}
Remarks
This style is empty by default, so focused cells are rendered using the Normal style.
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
CellStyleCollection Class
CellStyleCollection Members
Frozen Property
Gets the style used to paint frozen cells (frozen cells are editable and selectable, but not scrollable).
469
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Frozen As CellStyle
C#
public CellStyle Frozen {get;}
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
CellStyleCollection Class
CellStyleCollection Members
Highlight Property
Gets the style used to paint highlighted selected cells.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Highlight As CellStyle
C#
public CellStyle Highlight {get;}
Remarks
Use the C1FlexGridBase.HighLight property to determine whether cells should be highlighted
when the control does not have the focus.
Use the C1FlexGridBase.SelectionMode property to determine what types of selection are
allowed.
470
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
CellStyleCollection Class
CellStyleCollection Members
Item Property
Gets a CellStyle by index.
Overload List
Overload
Description
Item(Int32)
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
CellStyleCollection Class
CellStyleCollection Members
Item(Int32) Property
Gets a CellStyle by index.
471
Syntax
Visual Basic (Declaration)
Public Overloads ReadOnly Property Item( _
ByVal index As Integer _
) As CellStyle
C#
public CellStyle Item(
int index
) {get;}
Parameters
index
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
Item(CellStyleEnum) Property
Gets a built-in CellStyle by style type.
Syntax
Visual Basic (Declaration)
Public Overloads ReadOnly Property Item( _
ByVal index As CellStyleEnum _
) As CellStyle
472
C#
public CellStyle Item(
CellStyleEnum index
) {get;}
Parameters
index
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
Item(String) Property
Gets a CellStyle by name.
Syntax
Visual Basic (Declaration)
Public Overloads ReadOnly Property Item( _
ByVal name As String _
) As CellStyle
C#
public CellStyle Item(
string name
) {get;}
Parameters
name
473
Remarks
If the specified name doesn't exist, this indexer returns null.
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
CellStyleCollection Class
CellStyleCollection Members
Overload List
NewRow Property
Gets the style used to paint cells in the new row template at the bottom of the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property NewRow As CellStyle
C#
public CellStyle NewRow {get;}
Remarks
The new row template is only present when the C1FlexGridBase.AllowAddNew property is set to
true.
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
474
Reference
CellStyleCollection Class
CellStyleCollection Members
Normal Property
Gets the default style used to paint scrollable cells.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Normal As CellStyle
C#
public CellStyle Normal {get;}
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
CellStyleCollection Class
CellStyleCollection Members
Search Property
Gets the style used to paint the cell selected while auto-searching.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Search As CellStyle
C#
public CellStyle Search {get;}
Remarks
475
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
CellStyleCollection Class
CellStyleCollection Members
SelectedColumnHeader Property
Gets the style used to paint selected column headers.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property SelectedColumnHeader As CellStyle
C#
public CellStyle SelectedColumnHeader {get;}
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
CellStyleCollection Class
CellStyleCollection Members
SelectedRowHeader Property
Gets the style used to paint selected column headers.
476
Syntax
Visual Basic (Declaration)
Public ReadOnly Property SelectedRowHeader As CellStyle
C#
public CellStyle SelectedRowHeader {get;}
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
CellStyleCollection Class
CellStyleCollection Members
Column
Class that represents a grid column.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Column
Inherits RowCol
C#
public class Column : RowCol
Remarks
477
This class does not have a public constructor. You can add and remove columns using methods in
the grid's C1FlexGridBase.Cols property, which exposes the column collection.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Column
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
Column Members
C1.Win.C1FlexGrid Namespace
Overview
Class that represents a grid column.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Column
Inherits RowCol
C#
public class Column : RowCol
Remarks
478
This class does not have a public constructor. You can add and remove columns using methods in
the grid's C1FlexGridBase.Cols property, which exposes the column collection.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Column
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
Column Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
ActiveFilter
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowFiltering
479
AllowMerging
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowSorting
Gets or sets whether this column can be sorted by clicking on the column
header.
Caption
ComboList
DataIndex
DataMap
DataType
Gets or sets the type of object stored in this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
EditMask
Gets or sets the input mask to use when editing cells on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Editor
Gets or sets the custom editor used to edit cells in this column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
Filter
Format
Gets or sets a string that specifies how to format the data on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Grid
480
ImageAlignFixed Gets or sets an ImageAlignEnum value that determines how images are
aligned in fixed cells on this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
ImageAndText
Gets or sets a value that determines whether images found in this row or
column's RowCol.ImageMap should be displayed instead of or in addition to
the cell text. (Inherited from C1.Win.C1FlexGrid.RowCol)
ImageMap
Index
IsCollapsed
IsVisible
Gets whether this row is currently visible to the user. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Item
Gets or sets the cell value specified by the row index in this column.
Left
Gets the position of the left of this column, in pixels, relative to the grid.
Name
Right
Gets the position of the right of this column, in pixels, relative to the grid.
SafeIndex
481
Selected
Sort
Style
Gets or sets a custom CellStyle associated with this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleDisplay
Gets the style used to display this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
StyleFixedDisplay Gets the style used to display fixed cells on this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
TextAlign
TextAlignFixed
UserData
Gets or sets user data associated with this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Visible
482
Width
Gets or sets the width of this column, in pixels (the value -1 represents the
default column width).
WidthDisplay
Top
Public Methods
Name
Description
Clear
Invalidate
Move
Top
See Also
Reference
Column Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see Column members.
Public Methods
Name
Description
Clear
Invalidate
Move
Top
483
See Also
Reference
Column Class
C1.Win.C1FlexGrid Namespace
Clear Method
ClearFlags value specifying which elements of the Column should be cleared.
Clears this Column.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Clear( _
ByVal clearFlags As ClearFlags _
)
C#
public override void Clear(
ClearFlags clearFlags
)
Parameters
clearFlags
ClearFlags value specifying which elements of the Column should be cleared.
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
Column Class
Column Members
484
Invalidate Method
Invalidates this column, causing it to be repainted.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Invalidate()
C#
public override void Invalidate()
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
Column Class
Column Members
Move Method
An integer specifying the column's new position.
Moves a Column to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Move( _
ByVal indexNew As Integer _
)
C#
public override void Move(
int indexNew
485
Parameters
indexNew
An integer specifying the column's new position.
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
Column Class
Column Members
Properties
For a list of all members of this type, see Column members.
Public Properties
Name
Description
ActiveFilter
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowFiltering
AllowMerging
486
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowSorting
Gets or sets whether this column can be sorted by clicking on the column
header.
Caption
ComboList
DataIndex
DataMap
DataType
Gets or sets the type of object stored in this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
EditMask
Gets or sets the input mask to use when editing cells on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Editor
Gets or sets the custom editor used to edit cells in this column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
Filter
Format
Gets or sets a string that specifies how to format the data on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Grid
ImageAlign
487
Gets or sets a value that determines whether images found in this row or
column's RowCol.ImageMap should be displayed instead of or in addition to
the cell text. (Inherited from C1.Win.C1FlexGrid.RowCol)
ImageMap
Index
IsCollapsed
IsVisible
Gets whether this row is currently visible to the user. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Item
Gets or sets the cell value specified by the row index in this column.
Left
Gets the position of the left of this column, in pixels, relative to the grid.
Name
Right
Gets the position of the right of this column, in pixels, relative to the grid.
SafeIndex
Selected
488
Sort
Style
Gets or sets a custom CellStyle associated with this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleDisplay
Gets the style used to display this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
StyleFixedDisplay Gets the style used to display fixed cells on this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
TextAlign
TextAlignFixed
UserData
Gets or sets user data associated with this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Visible
Width
Gets or sets the width of this column, in pixels (the value -1 represents the
489
Top
See Also
Reference
Column Class
C1.Win.C1FlexGrid Namespace
ActiveFilter Property
Gets the IC1ColumnFilter that is currently filtering this column.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property ActiveFilter As IC1ColumnFilter
C#
public IC1ColumnFilter ActiveFilter {get;}
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
Column Class
Column Members
AllowFiltering Property
Example
490
Syntax
Visual Basic (Declaration)
Public Property AllowFiltering As AllowFiltering
C#
public AllowFiltering AllowFiltering {get; set;}
Remarks
The grid has an C1FlexGridBase.AllowFiltering property that determines whether columns can be
filtered by the user. If that property is set to true, then filters are created automatically for each
column based on the setting of the column's AllowFiltering property.
The grid provides condition and value filters. Condition filters allow users to specify conditions such
as 'value > 10'. Value filters allow users to select values that should be displayed from a list of
values present in the data source. All filters can be customized in code as shown in the examples
below.
Example
The code below customizes the filters for two columns. The "ShipRegion" column is initialized to
show only two states, AK and CA. The "UnitPrice" column is initialized to show only items with unit
price greater than $30. After the column filters have been initialized, the code calls the
C1FlexGridBase.ApplyFilters method to apply the filters.
C#
// initialize "ShipRegion" column filter to show only two values: "AK" and "CA"
var col = _flex.Cols["ShipRegion"];
col.AllowFiltering = AllowFiltering.ByValue;
var vf = col.Filter as ValueFilter;
vf.ShowValues = new object[] { "AK", "CA" };
// initialize "UnitPrice" column filter to show only values greater than $30
col = _flex.Cols["UnitPrice"];
col.AllowFiltering = AllowFiltering.ByCondition;
var cf = col.Filter as ConditionFilter;
cf.Condition1.Operator = ConditionOperator.GreaterThan;
cf.Condition1.Parameter = 30;
// apply both column filters to the data
_flex.ApplyFilters();
Requirements
491
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
Column Class
Column Members
AllowSorting Property
Gets or sets whether this column can be sorted by clicking on the column header.
Syntax
Visual Basic (Declaration)
Public Property AllowSorting As Boolean
C#
public bool AllowSorting {get; set;}
Remarks
The grid has an C1FlexGridBase.AllowSorting property that determines whether columns can be
sorted with the mouse. The AllowSorting property of the Column objects can be used to prevent
the user from sorting specific columns.
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
Column Class
Column Members
Caption Property
Gets or sets the text of the column's header cell.
492
Syntax
Visual Basic (Declaration)
Public Property Caption As String
C#
public string Caption {get; set;}
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
Column Class
Column Members
DataIndex Property
Gets the position of the column in the data source object.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property DataIndex As Integer
C#
public int DataIndex {get;}
Remarks
This property returns -1 for fixed and unbound columns.
Requirements
493
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
Column Class
Column Members
Filter Property
Gets or sets the IC1ColumnFilter responsible for filtering this column.
Syntax
Visual Basic (Declaration)
Public Property Filter As IC1ColumnFilter
C#
public IC1ColumnFilter Filter {get; set;}
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
Column Class
Column Members
Index Property
Gets the index of this column in the Column collection.
Syntax
Visual Basic (Declaration)
494
Remarks
Returns -1 if the column is not a member of the collection.
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
Column Class
Column Members
Item Property
Gets or sets the cell value specified by the row index in this column.
Syntax
Visual Basic (Declaration)
Public Default Property Item( _
ByVal rowIndex As Integer _
) As Object
C#
public object this[
int rowIndex
]; {get; set;}
Parameters
rowIndex
495
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
Column Class
Column Members
Left Property
Gets the position of the left of this column, in pixels, relative to the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Left As Integer
C#
public int Left {get;}
Remarks
The value returned is the sum of column widths from the left of the grid until this column, and does
not account for the scroll position. To account for the scroll position, this value should be adjusted
using the grid's C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.ScrollPosition property.
To retrieve the size and position of a cell, use the C1FlexGridBase.GetCellRect method.
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
496
Column Class
Column Members
Name Property
Gets or sets the name of this column.
Syntax
Visual Basic (Declaration)
Public Property Name As String
C#
public string Name {get; set;}
Remarks
The name can be used as an index in the ColumnCollection property indexer.
When the grid is bound to a DataSource, the column names are set automatically to the names of
columns in the data source, and are used for binding.
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
Column Class
Column Members
Right Property
Gets the position of the right of this column, in pixels, relative to the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Right As Integer
497
C#
public int Right {get;}
Remarks
The value returned corresponds to the sum of the Left and WidthDisplay properties.
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
Column Class
Column Members
SafeIndex Property
Gets the index of this column in the Column collection.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property SafeIndex As Integer
C#
public virtual int SafeIndex {get;}
Remarks
This property is similar to the Index property, except it throws an exception if the Column is not a
member of the collection.
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
498
See Also
Reference
Column Class
Column Members
Selected Property
Gets or sets whether this column is selected.
Syntax
Visual Basic (Declaration)
Public Overrides Property Selected As Boolean
C#
public override bool Selected {get; set;}
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
Column Class
Column Members
Sort Property
Specifies how this column should be sorted when the C1FlexGridBase.Sort method is called with a
SortFlags.UseColSort flag.
Syntax
Visual Basic (Declaration)
Public Property Sort As SortFlags
499
C#
public SortFlags Sort {get; set;}
Remarks
Use this property when you want to sort multiple columns in different orders. For example, you
could set the Sort property to SortFlags.Ascending for columns 1, 2, and 3, and to
SortFlags.Descending for columns 4, 5, and 6. You would then call the grid's C1FlexGridBase.Sort
method with the sort parameter set to SortFlags.UseColSort to perform the sort using the order
specified for each column.
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
Column Class
Column Members
Width Property
Gets or sets the width of this column, in pixels (the value -1 represents the default column width).
Syntax
Visual Basic (Declaration)
Public Property Width As Integer
C#
public int Width {get; set;}
Remarks
Setting this property to -1 causes the grid to use the default column width for this column (see the
RowColCollection.DefaultSize property).
500
Width returns the width assigned to the column even if the row is invisible, and returns -1 if the
row has the default height. To obtain the actual display width of a column, use the WidthDisplay
property.
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
Column Class
Column Members
WidthDisplay Property
Gets or sets the display width for this column, in pixels.
Syntax
Visual Basic (Declaration)
Public Property WidthDisplay As Integer
C#
public int WidthDisplay {get; set;}
Remarks
WidthDisplay returns zero if the column is invisible, and returns the actual display width even if the
Width property is set to -1 (which stands for default column width).
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
501
Column Class
Column Members
ColumnCollection
Collection of grid Column objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ColumnCollection
Inherits RowColCollection
C#
public class ColumnCollection : RowColCollection
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.ColumnCollection
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
ColumnCollection Members
C1.Win.C1FlexGrid Namespace
Overview
Collection of grid Column objects.
Object Model
502
Syntax
Visual Basic (Declaration)
Public Class ColumnCollection
Inherits RowColCollection
C#
public class ColumnCollection : RowColCollection
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.ColumnCollection
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
ColumnCollection Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Count
503
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels). (Inherited from C1.Win.C1FlexGrid.RowColCollection)
Fixed
Frozen
Grid
Item
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
MinSize
Gets or sets the minimum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
Selected
Top
Public Methods
Name
Description
Add
BuildString
Contains
GetNext
Gets the index of the next visible row or column. (Inherited from
504
C1.Win.C1FlexGrid.RowColCollection)
GetPrevious
Gets the index of the previous visible row or column. (Inherited from
C1.Win.C1FlexGrid.RowColCollection)
IndexOf
Overloaded. Gets the index of the Column with the specified name.
Insert
InsertRange
Move
MoveRange
ParseString
Remove
RemoveRange
Top
See Also
Reference
ColumnCollection Class
C1.Win.C1FlexGrid Namespace
Methods
>
Name
Add
Description
Overloaded. Appends a new Column object to this collection.
505
BuildString
Contains
GetNext
GetPrevious
IndexOf
Overloaded. Gets the index of the Column with the specified name.
Insert
InsertRange
Move
MoveRange
ParseString
Remove
RemoveRange
Top
See Also
Reference
ColumnCollection Class
C1.Win.C1FlexGrid Namespace
Add Method
Appends a new Column object to this collection.
Overload List
506
Overload
Description
Add()
Add(Int32)
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
ColumnCollection Class
ColumnCollection Members
Add() Method
Appends a new Column object to this collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add() As Column
C#
public Column Add()
Return Value
A reference to the Column that was added to the collection.
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
507
Reference
ColumnCollection Class
ColumnCollection Members
Overload List
Add(Int32) Method
Number of columns to add to the collection.
Appends a given number of Column objects to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Add( _
ByVal count As Integer _
)
C#
public void Add(
int count
)
Parameters
count
Number of columns to add to the collection.
Remarks
This method adds the new columns to the end of the collection. To insert columns at specific
positions, use the Insert or InsertRange methods.
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
508
ColumnCollection Class
ColumnCollection Members
Overload List
BuildString Method
Whether to include default values in the description.
Gets a string build a string that contains a complete description of the column collection, suitable
for persisting the control state.
Syntax
Visual Basic (Declaration)
Public Function BuildString( _
ByVal includeDefault As Boolean _
) As String
C#
public string BuildString(
bool includeDefault
)
Parameters
includeDefault
Whether to include default values in the description.
Return Value
A string that describes the column collection.
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
509
ColumnCollection Class
ColumnCollection Members
Contains Method
Gets a value that determines whether the collection contains a Column with the given name.
Overload List
Overload
Description
Contains(String)
Gets a value that determines whether the collection contains a Column with the
given name.
Contains(RowCol)
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
ColumnCollection Class
ColumnCollection Members
Contains(String) Method
Column name to look for (case-insensitive).
Gets a value that determines whether the collection contains a Column with the given name.
Syntax
Visual Basic (Declaration)
Public Overloads Function Contains( _
ByVal columnName As String _
) As Boolean
510
C#
public bool Contains(
string columnName
)
Parameters
columnName
Column name to look for (case-insensitive).
Return Value
True if the collection contains a column with the given name, False otherwise.
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
ColumnCollection Class
ColumnCollection Members
Overload List
IndexOf Method
Gets the index of the Column with the specified name.
Overload List
Overload
Description
IndexOf(String)
IndexOf(String,Boolean) Gets the index of the Column with the specified name, optionally throwing
an exception if the column is not found.
Requirements
511
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
ColumnCollection Class
ColumnCollection Members
IndexOf(String) Method
Column name to look for (case-insensitive).
Gets the index of the Column with the specified name.
Syntax
Visual Basic (Declaration)
Public Overloads Function IndexOf( _
ByVal columnName As String _
) As Integer
C#
public int IndexOf(
string columnName
)
Parameters
columnName
Column name to look for (case-insensitive).
Return Value
Index of the column that has the given name in this collection, or -1 if the collection does not
contain a column with the given name.
Requirements
512
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
ColumnCollection Class
ColumnCollection Members
Overload List
IndexOf(String,Boolean) Method
Example
Syntax
Visual Basic (Declaration)
Public Overloads Function IndexOf( _
ByVal columnName As String, _
ByVal throwIfNotFound As Boolean _
) As Integer
C#
public int IndexOf(
string columnName,
bool throwIfNotFound
)
Parameters
columnName
Column name to look for (case-insensitive).
throwIfNotFound
513
Return Value
Index of the column that has the given name in this collection, or -1 if the collection
does not contain a column with the given name.
Remarks
If the throwIfNotFound parameter is set to true and a column named columnName
cannot be found, the control throws an System.ArgumentOutOfRangeException. This
makes it easier to write compact code that relies on column names.
Example
The example below uses the IndexOf method to convert column names into indices.
Note that if the column names are invalid, the exception will be thrown by the IndexOf
method (column not found) rather than in the following method, where it would not be
as clear (invalid index).
C#
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
ColumnCollection Class
ColumnCollection Members
Overload List
Insert Method
The position where the new column will be inserted.
Adds a new Column object to this collection at a specified position.
Syntax
514
Parameters
index
The position where the new column will be inserted.
Return Value
A reference to the Column that was inserted to the collection.
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
ColumnCollection Class
ColumnCollection Members
InsertRange Method
The position where the new range will be inserted.
The number of columns to add.
Adds a range of Column objects to the collection at a specified position.
Syntax
515
Parameters
index
The position where the new range will be inserted.
count
The number of columns to add.
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
ColumnCollection Class
ColumnCollection Members
Move Method
Index of the column to be moved.
New position for the column.
Moves a Column object to a new position in the collection.
Syntax
516
Parameters
indexOld
Index of the column to be moved.
indexNew
New position for the column.
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
ColumnCollection Class
ColumnCollection Members
MoveRange Method
The index of the first column in the range that will be moved.
The number of columns that will be moved.
New position for the first column in the range.
Moves a range of Column objects to a new position in the collection.
517
Syntax
Visual Basic (Declaration)
Public Overrides Sub MoveRange( _
ByVal index As Integer, _
ByVal count As Integer, _
ByVal indexNew As Integer _
)
C#
public override void MoveRange(
int index,
int count,
int indexNew
)
Parameters
index
The index of the first column in the range that will be moved.
count
The number of columns that will be moved.
indexNew
New position for the first column in the range.
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
ColumnCollection Class
ColumnCollection Members
518
ParseString Method
Grid that receives the column collection.
String that contains the column collection definition.
Parses a string containg a description of the column collection (usually obtained by calling the
BuildString method) and applies it to a grid.
Syntax
Visual Basic (Declaration)
Public Function ParseString( _
ByVal grid As C1FlexGridBase, _
ByVal str As String _
) As Boolean
C#
public bool ParseString(
C1FlexGridBase grid,
string str
)
Parameters
grid
Grid that receives the column collection.
str
String that contains the column collection definition.
Return Value
True if the column definition was applied successfully.
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
519
Reference
ColumnCollection Class
ColumnCollection Members
Remove Method
Removes a Column object from the collection.
Overload List
Overload
Description
Remove(Int32)
Remove(Column)
Remove(String)
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
ColumnCollection Class
ColumnCollection Members
Remove(Int32) Method
The index of the column to remove from the collection.
Removes a Column object from the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Remove( _
ByVal index As Integer _
520
) As Column
C#
public Column Remove(
int index
)
Parameters
index
The index of the column to remove from the collection.
Return Value
A reference to the Column that was removed from the collection.
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
ColumnCollection Class
ColumnCollection Members
Overload List
Remove(Column) Method
The column to remove.
Removes a Column object from the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Remove( _
ByVal column As Column _
) As Column
521
C#
public Column Remove(
Column column
)
Parameters
column
The column to remove.
Return Value
A reference to the Column that was removed from the collection.
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
ColumnCollection Class
ColumnCollection Members
Overload List
Remove(String) Method
Name of the column to remove.
Removes a Column object from the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Remove( _
ByVal columnName As String _
) As Column
C#
522
Parameters
columnName
Name of the column to remove.
Return Value
A reference to the Column that was removed from the collection.
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
ColumnCollection Class
ColumnCollection Members
Overload List
RemoveRange Method
The index of the first column to remove from the collection.
The number of columns to remove from the collection.
Removes a range of Column objects from the collection.
Syntax
Visual Basic (Declaration)
Public Sub RemoveRange( _
ByVal index As Integer, _
ByVal count As Integer _
)
523
C#
public void RemoveRange(
int index,
int count
)
Parameters
index
The index of the first column to remove from the collection.
count
The number of columns to remove from the collection.
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
ColumnCollection Class
ColumnCollection Members
Properties
For a list of all members of this type, see ColumnCollection members.
Public Properties
Name
Description
Count
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels). (Inherited from C1.Win.C1FlexGrid.RowColCollection)
524
Fixed
Frozen
Grid
Item
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
MinSize
Gets or sets the minimum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
Selected
Top
See Also
Reference
ColumnCollection Class
C1.Win.C1FlexGrid Namespace
Count Property
Gets or sets the number of Column objects in this collection.
Syntax
Visual Basic (Declaration)
Public Overrides Property Count As Integer
C#
public override int Count {get; set;}
525
Remarks
You can add or remove columns by assigning a new value to this property, or you can use the Add,
Insert, InsertRange, and Remove(Int32) methods.
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
ColumnCollection Class
ColumnCollection Members
Fixed Property
Gets or sets the number of fixed columns in this collection.
Syntax
Visual Basic (Declaration)
Public Overrides Property Fixed As Integer
C#
public override int Fixed {get; set;}
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
ColumnCollection Class
ColumnCollection Members
526
Item Property
Gets the Column at the specified index.
Syntax
Visual Basic (Declaration)
Public Shadows ReadOnly Default Property Item( _
ByVal index As Integer _
) As Column
C#
public new Column this[
int index
]; {get;}
Parameters
index
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
ColumnCollection Class
ColumnCollection Members
Selected Property
Gets a collection of Column objects that are currently selected.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Selected As ColumnCollection
527
C#
public ColumnCollection Selected {get;}
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
ColumnCollection Class
ColumnCollection Members
ColumnFilter
Represents a filter that contains a ValueFilter and a ConditionFilter.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ColumnFilter
Implements IC1ColumnFilter
C#
public class ColumnFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ColumnFilter
Requirements
528
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
ColumnFilter Members
C1.Win.C1FlexGrid Namespace
Overview
Represents a filter that contains a ValueFilter and a ConditionFilter.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ColumnFilter
Implements IC1ColumnFilter
C#
public class ColumnFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ColumnFilter
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
529
ColumnFilter Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
ColumnFilter Constructor
Top
Public Properties
Name
Description
ConditionFilter
IsActive
ValueFilter
Top
Public Methods
Name
Description
Apply
GetEditor
Reset
Top
See Also
530
Reference
ColumnFilter Class
C1.Win.C1FlexGrid Namespace
ColumnFilter Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public ColumnFilter()
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
ColumnFilter Class
ColumnFilter Members
Methods
>
Name
Description
Apply
GetEditor
Reset
Top
See Also
Reference
531
ColumnFilter Class
C1.Win.C1FlexGrid Namespace
Apply Method
Value to be filtered.
Applies the filter to a value.
Syntax
Visual Basic (Declaration)
Public Function Apply( _
ByVal value As Object _
) As Boolean
C#
public bool Apply(
object value
)
Parameters
value
Value to be filtered.
Return Value
True if the value satisfies the filter; False otherwise.
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
ColumnFilter Class
ColumnFilter Members
532
GetEditor Method
Gets the editor used to modify the filter at run time.
Syntax
Visual Basic (Declaration)
Public Function GetEditor() As IC1ColumnFilterEditor
C#
public IC1ColumnFilterEditor GetEditor()
Return Value
A IC1ColumnFilterEditor that is used to edit the filter at run time.
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
ColumnFilter Class
ColumnFilter Members
Reset Method
Resets the filter making it inactive.
Syntax
Visual Basic (Declaration)
Public Sub Reset()
C#
public void Reset()
Requirements
533
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
ColumnFilter Class
ColumnFilter Members
Properties
For a list of all members of this type, see ColumnFilter members.
Public Properties
Name
Description
ConditionFilter
IsActive
ValueFilter
Top
See Also
Reference
ColumnFilter Class
C1.Win.C1FlexGrid Namespace
ConditionFilter Property
Gets the ConditionFilter contained in this ColumnFilter.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property ConditionFilter As ConditionFilter
534
C#
public ConditionFilter ConditionFilter {get;}
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
ColumnFilter Class
ColumnFilter Members
IsActive Property
Gets or sets a value that determines whether the filter is active.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsActive As Boolean
C#
public bool IsActive {get;}
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
ColumnFilter Class
ColumnFilter Members
ValueFilter Property
Gets the ValueFilter contained in this ColumnFilter.
535
Syntax
Visual Basic (Declaration)
Public ReadOnly Property ValueFilter As ValueFilter
C#
public ValueFilter ValueFilter {get;}
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
ColumnFilter Class
ColumnFilter Members
ComboBoxEditor
Helper class that provides information about a currently active ComboBox editor.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ComboBoxEditor
C#
public class ComboBoxEditor
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ComboBoxEditor
536
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
ComboBoxEditor Members
C1.Win.C1FlexGrid Namespace
Overview
Helper class that provides information about a currently active ComboBox editor.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ComboBoxEditor
C#
public class ComboBoxEditor
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ComboBoxEditor
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
537
Reference
ComboBoxEditor Members
C1.Win.C1FlexGrid Namespace
Members
Properties
Public Properties
Name
Description
Items
SelectedIndex
Gets or sets the selected index in the currently active ComboBox editor.
SelectedItem
Gets or sets the selected item in the currently active ComboBox editor.
SelectedKey
Gets the key that corresponds to the selected item in the currently active
ComboBox editor.
Top
See Also
Reference
ComboBoxEditor Class
C1.Win.C1FlexGrid Namespace
Properties
For a list of all members of this type, see ComboBoxEditor members.
Public Properties
Name
Description
Items
538
SelectedIndex
Gets or sets the selected index in the currently active ComboBox editor.
SelectedItem
Gets or sets the selected item in the currently active ComboBox editor.
SelectedKey
Gets the key that corresponds to the selected item in the currently active
ComboBox editor.
Top
See Also
Reference
ComboBoxEditor Class
C1.Win.C1FlexGrid Namespace
Items Property
Gets the collection of items in the currently active ComboBox editor.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Items As IList
C#
public IList Items {get;}
Remarks
If there's no active editor, or if the editor is not a ComboBox, the value returned is null.
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
539
ComboBoxEditor Class
ComboBoxEditor Members
SelectedIndex Property
Gets or sets the selected index in the currently active ComboBox editor.
Syntax
Visual Basic (Declaration)
Public Property SelectedIndex As Integer
C#
public int SelectedIndex {get; set;}
Remarks
If there's no active editor, or if the editor is not a ComboBox, the value returned is -1.
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
ComboBoxEditor Class
ComboBoxEditor Members
SelectedItem Property
Gets or sets the selected item in the currently active ComboBox editor.
Syntax
Visual Basic (Declaration)
Public Property SelectedItem As Object
C#
540
Remarks
If there's no active editor, or if the editor is not a ComboBox, the value returned is null.
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
ComboBoxEditor Class
ComboBoxEditor Members
SelectedKey Property
Gets the key that corresponds to the selected item in the currently active ComboBox editor.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property SelectedKey As Object
C#
public object SelectedKey {get;}
Remarks
If there's no active editor, if the editor is not a ComboBox, or if the cell being edited does not have
an associated DataMap, the value returned is null.
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
541
Reference
ComboBoxEditor Class
ComboBoxEditor Members
Condition
Represents a condition within a ConditionFilter.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Condition
C#
public class Condition
Remarks
Each ConditionFilter contains up to two conditions that can be combined with 'And' or 'Or'
operators.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.Condition
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
Condition Members
C1.Win.C1FlexGrid Namespace
542
Overview
Represents a condition within a ConditionFilter.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Condition
C#
public class Condition
Remarks
Each ConditionFilter contains up to two conditions that can be combined with 'And' or 'Or'
operators.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.Condition
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
Condition Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
543
Public Properties
Name
Description
IsActive
Operator
Parameter
Top
Public Methods
Name
Description
Apply
Clear
Clears this condition by setting the Operator to 'None' and the Parameter to
null.
Top
See Also
Reference
Condition Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see Condition members.
Public Methods
Name
Description
Apply
544
Clear
Clears this condition by setting the Operator to 'None' and the Parameter to
null.
Top
See Also
Reference
Condition Class
C1.Win.C1FlexGrid Namespace
Apply Method
Value to test.
Applies the condition to a given value.
Syntax
Visual Basic (Declaration)
Public Function Apply( _
ByVal value As Object _
) As Boolean
C#
public bool Apply(
object value
)
Parameters
value
Value to test.
Return Value
True if the value satisfies the condition, false otherwise.
Requirements
545
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
Condition Class
Condition Members
Clear Method
Clears this condition by setting the Operator to 'None' and the Parameter to null.
Syntax
Visual Basic (Declaration)
Public Sub Clear()
C#
public void Clear()
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
Condition Class
Condition Members
Properties
For a list of all members of this type, see Condition members.
Public Properties
Name
Description
546
IsActive
Operator
Parameter
Top
See Also
Reference
Condition Class
C1.Win.C1FlexGrid Namespace
IsActive Property
Gets a value that indicates whether the condition is active.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsActive As Boolean
C#
public bool IsActive {get;}
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
Condition Class
Condition Members
Operator Property
Gets or sets the operator used by this condition.
547
Syntax
Visual Basic (Declaration)
Public Property Operator As ConditionOperator
C#
public ConditionOperator Operator {get; set;}
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
Condition Class
Condition Members
Parameter Property
Gets or sets the parameter used by this condition.
Syntax
Visual Basic (Declaration)
Public Property Parameter As Object
C#
public object Parameter {get; set;}
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
548
Reference
Condition Class
Condition Members
ConditionFilter
Represents a filter based on one or two logical conditions.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ConditionFilter
Implements IC1ColumnFilter
C#
public class ConditionFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ConditionFilter
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
ConditionFilter Members
C1.Win.C1FlexGrid Namespace
Overview
Represents a filter based on one or two logical conditions.
549
Object Model
Syntax
Visual Basic (Declaration)
Public Class ConditionFilter
Implements IC1ColumnFilter
C#
public class ConditionFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ConditionFilter
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
ConditionFilter Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
550
Public Properties
Name
Description
AndConditions
Gets or sets whether the filter conditions should be combined with an 'And'
or with an 'Or' operator.
Condition1
Condition2
IsActive
Top
Public Methods
Name
Description
Apply
Clone
GetEditor
Reset
Top
See Also
Reference
ConditionFilter Class
C1.Win.C1FlexGrid Namespace
551
ConditionFilter Constructor
Initializes a new instance of a ConditionFilter.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public ConditionFilter()
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
ConditionFilter Class
ConditionFilter Members
Methods
For a list of all members of this type, see ConditionFilter members.
Public Methods
Name
Description
Apply
Clone
GetEditor
Reset
Top
552
See Also
Reference
ConditionFilter Class
C1.Win.C1FlexGrid Namespace
Apply Method
Value to be filtered.
Applies the filter to a value.
Syntax
Visual Basic (Declaration)
Public Function Apply( _
ByVal value As Object _
) As Boolean
C#
public bool Apply(
object value
)
Parameters
value
Value to be filtered.
Return Value
True if the value satisfies the filter; False otherwise.
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
553
ConditionFilter Class
ConditionFilter Members
Clone Method
Creates a clone of this ConditionFilter.
Syntax
Visual Basic (Declaration)
Public Function Clone() As ConditionFilter
C#
public ConditionFilter Clone()
Return Value
A clone of this ConditionFilter.
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
ConditionFilter Class
ConditionFilter Members
GetEditor Method
Gets the editor used to modify the filter at run time.
Syntax
Visual Basic (Declaration)
Public Function GetEditor() As IC1ColumnFilterEditor
C#
554
Return Value
A System.Windows.Forms.Control that is used to modify the filter at run time.
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
ConditionFilter Class
ConditionFilter Members
Reset Method
Resets the filter making it inactive.
Syntax
Visual Basic (Declaration)
Public Sub Reset()
C#
public void Reset()
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
ConditionFilter Class
ConditionFilter Members
555
Properties
For a list of all members of this type, see ConditionFilter members.
Public Properties
Name
Description
AndConditions
Gets or sets whether the filter conditions should be combined with an 'And'
or with an 'Or' operator.
Condition1
Condition2
IsActive
Top
See Also
Reference
ConditionFilter Class
C1.Win.C1FlexGrid Namespace
AndConditions Property
Gets or sets whether the filter conditions should be combined with an 'And' or with an 'Or'
operator.
Syntax
Visual Basic (Declaration)
Public Property AndConditions As Boolean
C#
public bool AndConditions {get; set;}
Requirements
556
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
ConditionFilter Class
ConditionFilter Members
Condition1 Property
Gets the first filter condition.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Condition1 As Condition
C#
public Condition Condition1 {get;}
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
ConditionFilter Class
ConditionFilter Members
Condition2 Property
Gets the second filter condition.
Syntax
Visual Basic (Declaration)
557
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
ConditionFilter Class
ConditionFilter Members
IsActive Property
Gets or sets a value that determines whether the filter is active.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsActive As Boolean
C#
public bool IsActive {get;}
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
ConditionFilter Class
ConditionFilter Members
558
DragRowColEventArgs
Provides data for the C1FlexGridBase.BeforeDragColumn, C1FlexGridBase.BeforeDragRow,
C1FlexGridBase.AfterDragColumn, and C1FlexGridBase.AfterDragRow events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class DragRowColEventArgs
Inherits System.EventArgs
C#
public class DragRowColEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.DragRowColEventArgs
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
DragRowColEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.BeforeDragColumn, C1FlexGridBase.BeforeDragRow,
C1FlexGridBase.AfterDragColumn, and C1FlexGridBase.AfterDragRow events.
Object Model
559
Syntax
Visual Basic (Declaration)
Public Class DragRowColEventArgs
Inherits System.EventArgs
C#
public class DragRowColEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.DragRowColEventArgs
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
DragRowColEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
560
class.
Top
Public Fields
Name
Description
Cancel
Col
Gets the original index of the column that was dragged by the user.
Position
Gets the new index of the column or row that was dragged by the user.
Row
Gets the original index of the row that was dragged by the user.
Top
See Also
Reference
DragRowColEventArgs Class
C1.Win.C1FlexGrid Namespace
DragRowColEventArgs Constructor
The original index of the row that was dragged by the user.
The original index of the column that was dragged by the user.
The new index of the column or row.
Initializes a new instance of the DragRowColEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
561
Parameters
row
The original index of the row that was dragged by the user.
col
The original index of the column that was dragged by the user.
position
The new index of the column or row.
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
DragRowColEventArgs Class
DragRowColEventArgs Members
Fields
For a list of all members of this type, see DragRowColEventArgs members.
Public Fields
562
Name
Description
Cancel
Col
Gets the original index of the column that was dragged by the user.
Position
Gets the new index of the column or row that was dragged by the user.
Row
Gets the original index of the row that was dragged by the user.
Top
See Also
Reference
DragRowColEventArgs Class
C1.Win.C1FlexGrid Namespace
Cancel Field
Gets or sets a value indicating whether the drag operation should be canceled.
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
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
563
DragRowColEventArgs Class
DragRowColEventArgs Members
Col Field
Gets the original index of the column that was dragged by the user.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
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
DragRowColEventArgs Class
DragRowColEventArgs Members
Position Field
Gets the new index of the column or row that was dragged by the user.
Syntax
Visual Basic (Declaration)
Public Position As Integer
C#
public int Position
Requirements
564
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
DragRowColEventArgs Class
DragRowColEventArgs Members
Row Field
Gets the original index of the row that was dragged by the user.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
DragRowColEventArgs Class
DragRowColEventArgs Members
GetErrorInfoEventArgs
Provides data for the C1FlexGridBase.GetCellErrorInfo and C1FlexGridBase.GetRowErrorInfo
events.
Object Model
565
Syntax
Visual Basic (Declaration)
Public Class GetErrorInfoEventArgs
Inherits System.EventArgs
C#
public class GetErrorInfoEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GetErrorInfoEventArgs
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
GetErrorInfoEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.GetCellErrorInfo and C1FlexGridBase.GetRowErrorInfo
events.
Object Model
Syntax
Visual Basic (Declaration)
566
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GetErrorInfoEventArgs
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
GetErrorInfoEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
567
Name
Description
Col
Gets the index of the column that may contain errors (or -1 if checking for
row errors).
ErrorText
Row
Top
See Also
Reference
GetErrorInfoEventArgs Class
C1.Win.C1FlexGrid Namespace
GetErrorInfoEventArgs Constructor
The row index when error information is needed for a cell or row.
The column index when error information is needed for a cell or row.
Initializes a new instance of the GetErrorInfoEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer _
)
C#
public GetErrorInfoEventArgs(
int row,
int col
)
Parameters
568
row
The row index when error information is needed for a cell or row.
col
The column index when error information is needed for a cell or row.
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
GetErrorInfoEventArgs Class
GetErrorInfoEventArgs Members
Fields
For a list of all members of this type, see GetErrorInfoEventArgs members.
Public Fields
Name
Description
Col
Gets the index of the column that may contain errors (or -1 if checking for
row errors).
ErrorText
Row
Top
See Also
Reference
GetErrorInfoEventArgs Class
C1.Win.C1FlexGrid Namespace
569
Col Field
Gets the index of the column that may contain errors (or -1 if checking for row errors).
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
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
GetErrorInfoEventArgs Class
GetErrorInfoEventArgs Members
ErrorText Field
Gets or sets a message that describes the error.
Syntax
Visual Basic (Declaration)
Public ErrorText As String
C#
public string ErrorText
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
570
See Also
Reference
GetErrorInfoEventArgs Class
GetErrorInfoEventArgs Members
Row Field
Gets the index of the row that may contain errors.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
GetErrorInfoEventArgs Class
GetErrorInfoEventArgs Members
GetLocalizedStringEventArgs
Provides data for the C1FlexGridBase.GetLocalizedString event.
Object Model
Syntax
Visual Basic (Declaration)
571
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GetLocalizedStringEventArgs
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
GetLocalizedStringEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.GetLocalizedString event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GetLocalizedStringEventArgs
Inherits System.EventArgs
C#
public class GetLocalizedStringEventArgs : System.EventArgs
572
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GetLocalizedStringEventArgs
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
GetLocalizedStringEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
Component
573
Parent
Value
Top
See Also
Reference
GetLocalizedStringEventArgs Class
C1.Win.C1FlexGrid Namespace
GetLocalizedStringEventArgs Constructor
Value to be localized.
Name of the component being localized.
Parent of the component being localized.
Component being localized.
Initializes a new instance of a GetLocalizedStringEventArgs.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal value As String, _
ByVal componentName As String, _
ByVal parent As Control, _
ByVal component As Component _
)
C#
public GetLocalizedStringEventArgs(
string value,
string componentName,
Control parent,
Component component
)
574
Parameters
value
Value to be localized.
componentName
Name of the component being localized.
parent
Parent of the component being localized.
component
Component being localized.
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
GetLocalizedStringEventArgs Class
GetLocalizedStringEventArgs Members
Fields
For a list of all members of this type, see GetLocalizedStringEventArgs members.
Public Fields
Name
Description
Component
575
Value
Top
See Also
Reference
GetLocalizedStringEventArgs Class
C1.Win.C1FlexGrid Namespace
Component Field
Component being localized.
Syntax
Visual Basic (Declaration)
Public ReadOnly Component As Component
C#
public readonly Component Component
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
GetLocalizedStringEventArgs Class
GetLocalizedStringEventArgs Members
ComponentName Field
Gets the name of the component being localized.
Syntax
Visual Basic (Declaration)
576
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
GetLocalizedStringEventArgs Class
GetLocalizedStringEventArgs Members
Parent Field
Parent of the component being localized.
Syntax
Visual Basic (Declaration)
Public ReadOnly Parent As Control
C#
public readonly Control Parent
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
GetLocalizedStringEventArgs Class
GetLocalizedStringEventArgs Members
577
Value Field
Gets or sets the value of the localized string.
Syntax
Visual Basic (Declaration)
Public Value As String
C#
public string Value
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
GetLocalizedStringEventArgs Class
GetLocalizedStringEventArgs Members
GridChangedEventArgs
Provides data for the C1FlexGridBase.GridChanged event handler.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridChangedEventArgs
Inherits System.EventArgs
C#
public class GridChangedEventArgs : System.EventArgs
578
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GridChangedEventArgs
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
GridChangedEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.GridChanged event handler.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridChangedEventArgs
Inherits System.EventArgs
C#
public class GridChangedEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GridChangedEventArgs
579
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
GridChangedEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Fields
Name
Description
c1
c2
r2
Top
See Also
Reference
GridChangedEventArgs Class
C1.Win.C1FlexGrid Namespace
580
Fields
For a list of all members of this type, see GridChangedEventArgs members.
Public Fields
Name
Description
c1
c2
r2
Top
See Also
Reference
GridChangedEventArgs Class
C1.Win.C1FlexGrid Namespace
c1 Field
Range of cells affected by the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly c1 As Integer
C#
public readonly int c1
Requirements
581
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
GridChangedEventArgs Class
GridChangedEventArgs Members
c2 Field
Range of cells affected by the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly c2 As Integer
C#
public readonly int c2
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
GridChangedEventArgs Class
GridChangedEventArgs Members
GridChangedType Field
The type of action that caused the event to fire.
Syntax
Visual Basic (Declaration)
582
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
GridChangedEventArgs Class
GridChangedEventArgs Members
r1 Field
Range of cells affected by the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly r1 As Integer
C#
public readonly int r1
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
GridChangedEventArgs Class
GridChangedEventArgs Members
583
r2 Field
Range of cells affected by the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly r2 As Integer
C#
public readonly int r2
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
GridChangedEventArgs Class
GridChangedEventArgs Members
GridErrorEventArgs
Provides data for the C1FlexGridBase.GridError event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridErrorEventArgs
Inherits System.EventArgs
C#
public class GridErrorEventArgs : System.EventArgs
584
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GridErrorEventArgs
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
GridErrorEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.GridError event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridErrorEventArgs
Inherits System.EventArgs
C#
public class GridErrorEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GridErrorEventArgs
585
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
GridErrorEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
Col
Gets the column index of the cell where the error was detected.
Exception
Gets the Exception object that contains information about the error.
Handled
Gets or sets a value indicating whether the error situation has been handled
by the control.
Row
Gets the row index of the cell where the error was detected.
Top
586
See Also
Reference
GridErrorEventArgs Class
C1.Win.C1FlexGrid Namespace
GridErrorEventArgs Constructor
The row index of the cell where the error was detected.
The column index of the cell where the error was detected.
The Exception object that contains information about the error.
Whether the error was handled internally and no exception should be thrown.
Initializes a new instance of the GridErrorEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal exception As Exception, _
ByVal handled As Boolean _
)
C#
public GridErrorEventArgs(
int row,
int col,
Exception exception,
bool handled
)
Parameters
row
The row index of the cell where the error was detected.
col
587
The column index of the cell where the error was detected.
exception
The Exception object that contains information about the error.
handled
Whether the error was handled internally and no exception should be thrown.
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
GridErrorEventArgs Class
GridErrorEventArgs Members
Fields
For a list of all members of this type, see GridErrorEventArgs members.
Public Fields
Name
Description
Col
Gets the column index of the cell where the error was detected.
Exception
Gets the Exception object that contains information about the error.
Handled
Gets or sets a value indicating whether the error situation has been handled
by the control.
Row
Gets the row index of the cell where the error was detected.
Top
See Also
588
Reference
GridErrorEventArgs Class
C1.Win.C1FlexGrid Namespace
Col Field
Gets the column index of the cell where the error was detected.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
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
GridErrorEventArgs Class
GridErrorEventArgs Members
Exception Field
Gets the Exception object that contains information about the error.
Syntax
Visual Basic (Declaration)
Public ReadOnly Exception As Exception
C#
public readonly Exception Exception
Requirements
589
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
GridErrorEventArgs Class
GridErrorEventArgs Members
Handled Field
Gets or sets a value indicating whether the error situation has been handled by the control.
Syntax
Visual Basic (Declaration)
Public Handled As Boolean
C#
public bool Handled
Remarks
If this value is set to False, the grid will throw the exception.
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
GridErrorEventArgs Class
GridErrorEventArgs Members
Row Field
Gets the row index of the cell where the error was detected.
590
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
GridErrorEventArgs Class
GridErrorEventArgs Members
GridGlyphs
Represents a collection of glyphs (images) indexed by glyph type (GlyphEnum type).
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridGlyphs
C#
public class GridGlyphs
Remarks
The GridGlyphs collection contains the images used by the grid to indicate column sorting
direction, collapsed and expanded outline groups, check boxes, cursors, error information, etc.
591
You can use the C1FlexGridBase.Glyphs property get or set these images.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridGlyphs
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
GridGlyphs Members
C1.Win.C1FlexGrid Namespace
Overview
Represents a collection of glyphs (images) indexed by glyph type (GlyphEnum type).
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridGlyphs
C#
public class GridGlyphs
Remarks
The GridGlyphs collection contains the images used by the grid to indicate column sorting
direction, collapsed and expanded outline groups, check boxes, cursors, error information, etc.
You can use the C1FlexGridBase.Glyphs property get or set these images.
592
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridGlyphs
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
GridGlyphs Members
C1.Win.C1FlexGrid Namespace
Members
Properties
Public Properties
Name
Description
Item
Top
See Also
Reference
GridGlyphs Class
C1.Win.C1FlexGrid Namespace
Properties
For a list of all members of this type, see GridGlyphs members.
Public Properties
593
Name
Description
Item
Top
See Also
Reference
GridGlyphs Class
C1.Win.C1FlexGrid Namespace
Item Property
Gets or sets the glyph for a particular GlyphEnum value.
Syntax
Visual Basic (Declaration)
Public Default Property Item( _
ByVal glyph As GlyphEnum _
) As Image
C#
public Image this[
GlyphEnum glyph
]; {get; set;}
Parameters
glyph
Remarks
Setting a glyph to null causes the grid to use the default image for the glyph. To suppress a
glyph, assign it a small transparent image.
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
594
See Also
Reference
GridGlyphs Class
GridGlyphs Members
GridPrinter
Represents a class that encapsulates the control printing functionality, including page and printer
settings, headers, and footers.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridPrinter
C#
public class GridPrinter
Remarks
See also the C1FlexGridBase.PrintGrid method.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridPrinter
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
595
GridPrinter Members
C1.Win.C1FlexGrid Namespace
Overview
Represents a class that encapsulates the control printing functionality, including page and printer
settings, headers, and footers.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridPrinter
C#
public class GridPrinter
Remarks
See also the C1FlexGridBase.PrintGrid method.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridPrinter
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
GridPrinter Members
C1.Win.C1FlexGrid Namespace
596
Members
Properties
Public Properties
Name
Description
Footer
FooterFont
Header
HeaderFont
PageCount
PageNumber
Gets the number of the page being printed (the first page is numbered
one).
PrintDocument
PrintGridFlags
Gets or sets the flags that specify printing options to use with the
C1FlexGridBase.PrintGrid method. See the PrintGridFlags enumeration for
details.
PrintPreviewDialog Gets a reference to the PrintPreviewDialog used to display the grid's print
preview.
Top
See Also
Reference
597
GridPrinter Class
C1.Win.C1FlexGrid Namespace
Properties
>
Name
Description
Footer
FooterFont
Header
HeaderFont
PageCount
PageNumber
PrintDocument
Gets the number of the page being printed (the first page is numbered
one).
Gets the System.Drawing.Printing.PrintDocument object that specifies page
and printer settings.
Gets or sets the flags that specify printing options to use with the
PrintGridFlags
PrintPreviewDialog
Top
See Also
Reference
GridPrinter Class
C1.Win.C1FlexGrid Namespace
Footer Property
Gets or sets a string that contains the page footers.
Syntax
598
Remarks
The string may be divided by tab characters into up to three sections. The sections are then left,
center, and right-aligned at the top of each page.
The string may contain placeholders "{0}" and "{1}" which are replaced with the current page
number and total page count.
Use the FooterFont property to select the font used to render the footer.
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
GridPrinter Class
GridPrinter Members
FooterFont Property
Specifies the font to use for rendering page footers.
Syntax
Visual Basic (Declaration)
Public Property FooterFont As Font
C#
public Font FooterFont {get; set;}
Remarks
599
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
GridPrinter Class
GridPrinter Members
Header Property
Example
Syntax
Visual Basic (Declaration)
Public Property Header As String
C#
public string Header {get; set;}
Remarks
The string may be divided by tab characters into up to three sections. The sections are then left,
center, and right-aligned at the top of each page.
The string may contain placeholders "{0}" and "{1}" which are replaced with the current page
number and total page count.
Use the HeaderFont property to select the font used to render the header.
Example
The code below specifies a right-aligned header with a "Page n of m" display using a 10-point
Tahoma font.
600
C#
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
GridPrinter Class
GridPrinter Members
HeaderFont Property
Specifies the font to use for rendering page headers.
Syntax
Visual Basic (Declaration)
Public Property HeaderFont As Font
C#
public Font HeaderFont {get; set;}
Remarks
See also the Header property.
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
601
GridPrinter Class
GridPrinter Members
PageCount Property
Gets the total number of the pages in the print document.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PageCount As Integer
C#
public int PageCount {get;}
Remarks
The value returned is accurate only while the document is printing. Before or after a document is
done printing, this property returns zero.
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
GridPrinter Class
GridPrinter Members
PageNumber Property
Gets the number of the page being printed (the first page is numbered one).
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PageNumber As Integer
602
C#
public int PageNumber {get;}
Remarks
Applications typically use this property to provide user feedback while printing grids.
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
GridPrinter Class
GridPrinter Members
PrintDocument Property
Gets the System.Drawing.Printing.PrintDocument object that specifies page and printer settings.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PrintDocument As PrintDocument
C#
public PrintDocument PrintDocument {get;}
Remarks
The PrintDocument class is part of the .NET framework, defined in the System.Drawing.Printing
namespace. It contains properties that specify printer and page settings for the document.
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
603
See Also
Reference
GridPrinter Class
GridPrinter Members
PrintGridFlags Property
Gets or sets the flags that specify printing options to use with the C1FlexGridBase.PrintGrid
method. See the PrintGridFlags enumeration for details.
Syntax
Visual Basic (Declaration)
Public Property PrintGridFlags As PrintGridFlags
C#
public PrintGridFlags PrintGridFlags {get; set;}
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
GridPrinter Class
GridPrinter Members
PrintPreviewDialog Property
Example
Gets a reference to the PrintPreviewDialog used to display the grid's print preview.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PrintPreviewDialog As PrintPreviewDialog
604
C#
public PrintPreviewDialog PrintPreviewDialog {get;}
Remarks
Use this property to customize the size and position of the preview dialog when printing the grid
with the PrintGridFlags.ShowPrintDialog option.
Example
The code below uses the PrintPreviewDialog property to display the preview dialog with a custom
caption and in a maximized state:
C#
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
GridPrinter Class
GridPrinter Members
GridRendererOffice2007
Represents the base abstract class for Office2007 style renderers.
Object Model
Syntax
605
Remarks
The easiest way to create a new high-quality renderer is to derive from this class and provide a
constructor that initializes the 25 colors that define the renderer.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Black
C1.Win.C1FlexGrid.GridRendererOffice2007Blue
C1.Win.C1FlexGrid.GridRendererOffice2007Silver
C1.Win.C1FlexGrid.GridRendererOffice2010Black
C1.Win.C1FlexGrid.GridRendererOffice2010Blue
C1.Win.C1FlexGrid.GridRendererOffice2010Silver
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
GridRendererOffice2007 Members
C1.Win.C1FlexGrid Namespace
Overview
Represents the base abstract class for Office2007 style renderers.
Object Model
606
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007
Inherits C1FlexGridRenderer
C#
public class GridRendererOffice2007 : C1FlexGridRenderer
Remarks
The easiest way to create a new high-quality renderer is to derive from this class and provide a
constructor that initializes the 25 colors that define the renderer.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Black
C1.Win.C1FlexGrid.GridRendererOffice2007Blue
C1.Win.C1FlexGrid.GridRendererOffice2007Silver
C1.Win.C1FlexGrid.GridRendererOffice2010Black
C1.Win.C1FlexGrid.GridRendererOffice2010Blue
C1.Win.C1FlexGrid.GridRendererOffice2010Silver
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
GridRendererOffice2007 Members
C1.Win.C1FlexGrid Namespace
607
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
TracksMouse
Overridden. Gets a value that determines whether this renderer renders hot
cells differently than normal cells.
TracksSelection
Overridden. Gets a value that determines whether this renderer tracks the
selection to paint highlighted column and row headers.
Top
Public Methods
Name
Description
608
OnDrawCell
Top
See Also
Reference
GridRendererOffice2007 Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2007 Constructor
Overload List
Overload
Description
GridRendererOffice2007
Initializes a
Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Co new
lor,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color)
instance of
a
GridRender
erOffice200
7.
GridRendererOffice2007 Constructor(Color[])
Initializes a
new
instance of
a
GridRender
erOffice200
7 using a
specified
color
palette.
Requirements
609
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
GridRendererOffice2007
Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,C
olor,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color)
Background color for highlighted cells.
Color of the border around the top left fixed cell.
Color of the background for the top left fixed cell.
First color of the gradient background for the image in the top left fixed cell.
Second color of the gradient background for the image in the top left fixed cell.
First color of the gradient background for column headers.
Second color of the gradient background for column headers.
Color of the border around column headers.
First color of the gradient background for selected column headers.
Second color of the gradient background for selected column headers.
Color of the border around selected column headers.
First color of the gradient background for hot column headers.
Second color of the gradient background for hot column headers.
Color of the border around hot column headers.
First color of the gradient background for selected hot column headers.
Second color of the gradient background for selected hot column headers.
Color of the border around hot selected column headers.
Color of the background for row headers.
610
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal clrHighlight As Color, _
ByVal clrTopLeftBorder As Color, _
ByVal clrTopLeft As Color, _
ByVal clrImg1 As Color, _
ByVal clrImg2 As Color, _
ByVal clrCol1 As Color, _
ByVal clrCol2 As Color, _
ByVal clrColBorder As Color, _
ByVal clrColSel1 As Color, _
ByVal clrColSel2 As Color, _
ByVal clrSelBorder As Color, _
ByVal clrColHot1 As Color, _
ByVal clrColHot2 As Color, _
ByVal clrHotBorder As Color, _
ByVal clrColSelHot1 As Color, _
ByVal clrColSelHot2 As Color, _
ByVal clrSelHotBorder As Color, _
ByVal clrRow As Color, _
ByVal clrRowBorder As Color, _
ByVal clrRowSel As Color, _
ByVal clrRowSelBorder As Color, _
611
Parameters
clrHighlight
Background color for highlighted cells.
612
clrTopLeftBorder
Color of the border around the top left fixed cell.
clrTopLeft
Color of the background for the top left fixed cell.
clrImg1
First color of the gradient background for the image in the top left fixed cell.
clrImg2
Second color of the gradient background for the image in the top left fixed cell.
clrCol1
First color of the gradient background for column headers.
clrCol2
Second color of the gradient background for column headers.
clrColBorder
Color of the border around column headers.
clrColSel1
First color of the gradient background for selected column headers.
clrColSel2
Second color of the gradient background for selected column headers.
clrSelBorder
Color of the border around selected column headers.
clrColHot1
First color of the gradient background for hot column headers.
clrColHot2
Second color of the gradient background for hot column headers.
clrHotBorder
Color of the border around hot column headers.
613
clrColSelHot1
First color of the gradient background for selected hot column headers.
clrColSelHot2
Second color of the gradient background for selected hot column headers.
clrSelHotBor
der
Color of the border around hot selected column headers.
clrRow
Color of the background for row headers.
cl
r
R
o
w
B
o
r
d
e
r
Color of the border around row headers.
c
l
r
R
o
w
S
e
l
Color of the background for selected row headers.
c
l
r
614
R
o
w
S
e
l
B
o
r
d
e
r
Color of the border around selected row headers.
c
l
r
R
o
w
H
o
t
Color of the background for hot row headers.
615
616
617
618
619
620
621
Reference
622
623
GridRendererOffice2007 Constructor(Color[])
Array with 25 colors to be used as a palette.
Initializes a new instance of a GridRendererOffice2007 using a specified color palette.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal p() As Color _
)
C#
public GridRendererOffice2007(
Color[] p
)
Parameters
p
Array with 25 colors to be used as a palette.
Requirements
624
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
Overload List
Methods
For a list of all members of this type, see GridRendererOffice2007 members.
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
GridRendererOffice2007 Class
C1.Win.C1FlexGrid Namespace
GetBackgroundBrush Method
C1FlexGridBase that contains the cell.
C1FlexGridRenderer.CellType value that describes the type of cell being rendered.
System.Drawing.Rectangle that defines the cell bounds.
Gets the background brush for a cell.
Syntax
625
Parameters
flex
C1FlexGridBase that contains the cell.
cellType
C1FlexGridRenderer.CellType value that describes the type of cell being rendered.
r
System.Drawing.Rectangle that defines the cell bounds.
Return Value
A System.Drawing.Brush used to paint the cell.
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
626
GetBorderPen Method
C1FlexGridRenderer.CellType that describes the type of cell being rendered.
Gets a pen used to paint the cell borders.
Syntax
Visual Basic (Declaration)
Public Overrides Function GetBorderPen( _
ByVal cellType As C1FlexGridRenderer.CellType _
) As Pen
C#
public override Pen GetBorderPen(
C1FlexGridRenderer.CellType cellType
)
Parameters
cellType
C1FlexGridRenderer.CellType that describes the type of cell being rendered.
Return Value
A System.Drawing.Pen used to paint the cell borders.
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
OnDrawCell Method
Draws a single grid cell of a specific type.
627
Overload List
Overload
Description
type.
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs)
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs,CellType) Method
C1FlexGridBase that contains the cell being drawn.
OwnerDrawCellEventArgs that provides information about the cell being drawn.
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Draws a single grid cell of a specific type.
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub OnDrawCell( _
ByVal flex As C1FlexGridBase, _
ByVal e As OwnerDrawCellEventArgs, _
628
Parameters
flex
C1FlexGridBase that contains the cell being drawn.
e
OwnerDrawCellEventArgs that provides information about the cell being drawn.
cellType
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
Overload List
Properties
For a list of all members of this type, see GridRendererOffice2007 members.
Public Properties
629
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
TracksMouse
Overridden. Gets a value that determines whether this renderer renders hot
cells differently than normal cells.
TracksSelection
Overridden. Gets a value that determines whether this renderer tracks the
selection to paint highlighted column and row headers.
Top
See Also
Reference
GridRendererOffice2007 Class
C1.Win.C1FlexGrid Namespace
Highlight Property
Gets or sets the color used to paint the background of highlighted cells.
Syntax
Visual Basic (Declaration)
Public Property Highlight As Color
C#
public Color Highlight {get; set;}
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
630
See Also
Reference
GridRendererOffice2007 Class
GridRendererOffice2007 Members
TracksMouse Property
Gets a value that determines whether this renderer renders hot cells differently than normal cells.
Syntax
Visual Basic (Declaration)
Public Overrides ReadOnly Property TracksMouse As Boolean
C#
public override bool TracksMouse {get;}
Remarks
Hot cells are cells currently under the mouse. If a renderer tracks the mouse, then it will be called as
the mouse moves over the grid.
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
TracksSelection Property
Gets a value that determines whether this renderer tracks the selection to paint highlighted column
and row headers.
Syntax
631
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
GridRendererOffice2007 Class
GridRendererOffice2007 Members
GridRendererOffice2007Black
C1FlexGridRenderer that implements the Office2007 Black visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Black
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Black : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
632
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Black
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
GridRendererOffice2007Black Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2007 Black visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Black
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Black : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Black
Requirements
633
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
GridRendererOffice2007Black Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
634
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
GridRendererOffice2007Black Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2007Black Constructor
Initializes a new instance of a GridRendererOffice2007Black.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererOffice2007Black()
Requirements
635
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
GridRendererOffice2007Black Class
GridRendererOffice2007Black Members
GridRendererOffice2007Blue
C1FlexGridRenderer that implements the Office2007 Blue visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Blue
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Blue : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Blue
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
636
Reference
GridRendererOffice2007Blue Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2007 Blue visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Blue
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Blue : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Blue
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
GridRendererOffice2007Blue Members
C1.Win.C1FlexGrid Namespace
637
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
Public Methods
Name
Description
638
OnDrawCell
Top
See Also
Reference
GridRendererOffice2007Blue Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2007Blue Constructor
Initializes a new instance of a GridRendererOffice2007Blue.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererOffice2007Blue()
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
639
GridRendererOffice2007Blue Class
GridRendererOffice2007Blue Members
GridRendererOffice2007Silver
C1FlexGridRenderer that implements the Office2007 Silver visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Silver
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Silver : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Silver
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
GridRendererOffice2007Silver Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2007 Silver visual style.
640
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2007Silver
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2007Silver : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2007Silver
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
GridRendererOffice2007Silver Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
641
Name
Description
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
Public Methods
Name
Description
642
OnDrawCell
Top
See Also
Reference
GridRendererOffice2007Silver Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2007Silver Constructor
Initializes a new instance of a GridRendererOffice2007Silver.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererOffice2007Silver()
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
GridRendererOffice2007Silver Class
GridRendererOffice2007Silver Members
GridRendererOffice2010Black
C1FlexGridRenderer that implements the Office2010 Black visual style.
Object Model
643
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2010Black
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2010Black : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Black
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
GridRendererOffice2010Black Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2010 Black visual style.
Object Model
Syntax
Visual Basic (Declaration)
644
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Black
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
GridRendererOffice2010Black Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
645
Name
Description
HeaderForeColor Overridden. Gets the foreground color of header cells in the normal state.
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
GridRendererOffice2010Black Class
C1.Win.C1FlexGrid Namespace
646
GridRendererOffice2010Black Constructor
Initializes a new instance of a GridRendererOffice2007Black.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererOffice2010Black()
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
GridRendererOffice2010Black Class
GridRendererOffice2010Black Members
Properties
For a list of all members of this type, see GridRendererOffice2010Black members.
Public Properties
Name
Description
HeaderForeColor Overridden. Gets the foreground color of header cells in the normal state.
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
647
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
See Also
Reference
GridRendererOffice2010Black Class
C1.Win.C1FlexGrid Namespace
HeaderForeColor Property
Gets the foreground color of header cells in the normal state.
Syntax
Visual Basic (Declaration)
Public Overrides ReadOnly Property HeaderForeColor As Color
C#
public override Color HeaderForeColor {get;}
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
GridRendererOffice2010Black Class
GridRendererOffice2010Black Members
GridRendererOffice2010Blue
C1FlexGridRenderer that implements the Office2010 Blue visual style.
Object Model
648
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2010Blue
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2010Blue : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Blue
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
GridRendererOffice2010Blue Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2010 Blue visual style.
Object Model
Syntax
649
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Blue
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
GridRendererOffice2010Blue Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
650
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
651
GridRendererOffice2010Blue Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2010Blue Constructor
Initializes a new instance of a GridRendererOffice2007Blue.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererOffice2010Blue()
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
GridRendererOffice2010Blue Class
GridRendererOffice2010Blue Members
GridRendererOffice2010Silver
C1FlexGridRenderer that implements the Office2010 Silver visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2010Silver
Inherits GridRendererOffice2007
652
C#
public class GridRendererOffice2010Silver : GridRendererOffice2007
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Silver
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
GridRendererOffice2010Silver Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the Office2010 Silver visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererOffice2010Silver
Inherits GridRendererOffice2007
C#
public class GridRendererOffice2010Silver : GridRendererOffice2007
Inheritance Hierarchy
653
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererOffice2007
C1.Win.C1FlexGrid.GridRendererOffice2010Silver
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
GridRendererOffice2010Silver Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
Highlight
Gets or sets the color used to paint the background of highlighted cells.
(Inherited from C1.Win.C1FlexGrid.GridRendererOffice2007)
654
TracksMouse
Gets a value that determines whether this renderer renders hot cells
differently than normal cells. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
TracksSelection
Gets a value that determines whether this renderer tracks the selection to
paint highlighted column and row headers. (Inherited from
C1.Win.C1FlexGrid.GridRendererOffice2007)
Top
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
GridRendererOffice2010Silver Class
C1.Win.C1FlexGrid Namespace
GridRendererOffice2010Silver Constructor
Initializes a new instance of a GridRendererOffice2007Silver.
Syntax
Visual Basic (Declaration)
655
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
GridRendererOffice2010Silver Class
GridRendererOffice2010Silver Members
GridRendererSystem
C1FlexGridRenderer that implements the System visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererSystem
Inherits C1FlexGridRenderer
C#
public class GridRendererSystem : C1FlexGridRenderer
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererSystem
Requirements
656
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
GridRendererSystem Members
C1.Win.C1FlexGrid Namespace
Overview
C1FlexGridRenderer that implements the System visual style.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridRendererSystem
Inherits C1FlexGridRenderer
C#
public class GridRendererSystem : C1FlexGridRenderer
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.C1FlexGridRenderer
C1.Win.C1FlexGrid.GridRendererSystem
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
657
Reference
GridRendererSystem Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
GridRendererSystem Constructor
Top
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
TracksMouse
Overridden. Gets a value that determines whether this renderer renders hot
cells differently than normal cells.
TracksSelection
Overridden. Gets a value that determines whether this renderer tracks the
selection to paint highlighted column and row headers.
Top
Public Methods
Name
Description
658
C1.Win.C1FlexGrid.C1FlexGridRenderer)
GetBorderPen
OnDrawCell
Top
See Also
Reference
GridRendererSystem Class
C1.Win.C1FlexGrid Namespace
GridRendererSystem Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public GridRendererSystem()
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
GridRendererSystem Class
GridRendererSystem Members
Methods
For a list of all members of this type, see GridRendererSystem members.
659
Public Methods
Name
Description
OnDrawCell
Top
See Also
Reference
GridRendererSystem Class
C1.Win.C1FlexGrid Namespace
OnDrawCell Method
Draws a single grid cell of a specific type.
Overload List
Overload
Description
type.
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs)
Requirements
660
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
GridRendererSystem Class
GridRendererSystem Members
OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs,CellType) Method
C1FlexGridBase that contains the cell being drawn.
OwnerDrawCellEventArgs that provides information about the cell being drawn.
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
Draws a single grid cell of a specific type.
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub OnDrawCell( _
ByVal flex As C1FlexGridBase, _
ByVal e As OwnerDrawCellEventArgs, _
ByVal cellType As C1FlexGridRenderer.CellType _
)
C#
public override void OnDrawCell(
C1FlexGridBase flex,
OwnerDrawCellEventArgs e,
C1FlexGridRenderer.CellType cellType
)
Parameters
flex
C1FlexGridBase that contains the cell being drawn.
e
661
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
GridRendererSystem Class
GridRendererSystem Members
Overload List
Properties
For a list of all members of this type, see GridRendererSystem members.
Public Properties
Name
Description
HeaderForeColor Gets the foreground color of header cells in the normal state. (Inherited from
C1.Win.C1FlexGrid.C1FlexGridRenderer)
TracksMouse
Overridden. Gets a value that determines whether this renderer renders hot
cells differently than normal cells.
TracksSelection
Overridden. Gets a value that determines whether this renderer tracks the
selection to paint highlighted column and row headers.
Top
See Also
Reference
662
GridRendererSystem Class
C1.Win.C1FlexGrid Namespace
TracksMouse Property
Gets a value that determines whether this renderer renders hot cells differently than normal cells.
Syntax
Visual Basic (Declaration)
Public Overrides ReadOnly Property TracksMouse As Boolean
C#
public override bool TracksMouse {get;}
Remarks
Hot cells are cells currently under the mouse. If a renderer tracks the mouse, then it will be called as
the mouse moves over the grid.
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
GridRendererSystem Class
GridRendererSystem Members
TracksSelection Property
Gets a value that determines whether this renderer tracks the selection to paint highlighted column
and row headers.
Syntax
Visual Basic (Declaration)
Public Overrides ReadOnly Property TracksSelection As Boolean
663
C#
public override bool TracksSelection {get;}
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
GridRendererSystem Class
GridRendererSystem Members
GridTree
The GridTree class encapsulates properties that specify the appearance, position, and behavior of
the outline tree.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridTree
C#
public class GridTree
Remarks
Each grid has a single GridTree object, which can be obtained using the C1FlexGridBase.Tree
property.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridTree
664
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
GridTree Members
C1.Win.C1FlexGrid Namespace
Overview
The GridTree class encapsulates properties that specify the appearance, position, and behavior of
the outline tree.
Object Model
Syntax
Visual Basic (Declaration)
Public Class GridTree
C#
public class GridTree
Remarks
Each grid has a single GridTree object, which can be obtained using the C1FlexGridBase.Tree
property.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.GridTree
Requirements
665
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
GridTree Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Column
Gets or sets the index of the column where the outline tree is
displayed.
Indent
LineColor
LineStyle
Gets or sets the line style used to draw the outline tree.
MaximumLevel
Top
Public Methods
666
Name
Description
Clear
Show
Sort
Top
See Also
Reference
GridTree Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see GridTree members.
Public Methods
Name
Description
Clear
Show
Sort
Top
See Also
Reference
GridTree Class
C1.Win.C1FlexGrid Namespace
Clear Method
Resets the C1FlexGridBase.Tree object.
667
Syntax
Visual Basic (Declaration)
Public Sub Clear()
C#
public void Clear()
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
GridTree Class
GridTree Members
Show Method
The level to show. Any nodes with Node.Level higher than this will be collapsed, others will be
expanded.
Expands all nodes up to the specified level, collapses others.
Syntax
Visual Basic (Declaration)
Public Sub Show( _
ByVal level As Integer _
)
C#
public void Show(
int level
)
Parameters
668
level
The level to show. Any nodes with Node.Level higher than this will be collapsed, others will
be expanded.
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
GridTree Class
GridTree Members
Sort Method
Sorts all nodes at the given level.
Overload List
Overload
Description
Sorts all nodes at the given level using the specified comparer.
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
GridTree Class
GridTree Members
Sort(Int32,SortFlags,Int32,Int32) Method
Level of the nodes to sort.
669
Syntax
Visual Basic (Declaration)
Public Overloads Sub Sort( _
ByVal level As Integer, _
ByVal order As SortFlags, _
ByVal col1 As Integer, _
ByVal col2 As Integer _
)
C#
public void Sort(
int level,
SortFlags order,
int col1,
int col2
)
Parameters
level
Level of the nodes to sort.
order
SortFlags value that controls sort direction and options.
col1
Start of the range of columns to sort.
col2
End of the range of columns to sort.
670
Remarks
The grid recognizes two types of row: regular rows which contain data, and
node rows which are used to group data. This method only sorts the row
nodes; it does not reorder the data rows within each node.
To sort the data rows, use the grid's C1FlexGridBase.Sort method instead.
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
GridTree Class
GridTree Members
Overload List
Sort(Int32,IComparer) Method
Level of the nodes to sort.
An System.Collections.IComparer object that compares Node objects.
Sorts all nodes at the given level using the specified comparer.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Sort( _
ByVal level As Integer, _
ByVal comparer As IComparer _
)
C#
public void Sort(
int level,
IComparer comparer
671
Parameters
level
Level of the nodes to sort.
comparer
An System.Collections.IComparer object that compares Node objects.
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
GridTree Class
GridTree Members
Overload List
Properties
For a list of all members of this type, see GridTree members.
Public Properties
Name
Description
Column
Gets or sets the index of the column where the outline tree is
displayed.
Indent
LineColor
LineStyle
Gets or sets the line style used to draw the outline tree.
672
MaximumLevel
Top
See Also
Reference
GridTree Class
C1.Win.C1FlexGrid Namespace
Column Property
Gets or sets the index of the column where the outline tree is displayed.
Syntax
Visual Basic (Declaration)
Public Property Column As Integer
C#
public int Column {get; set;}
Remarks
By default, this property is set to -1, which causes the tree to be hidden.
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
673
GridTree Class
GridTree Members
Indent Property
Gets or sets the indentation, in pixels, of each tree level.
Syntax
Visual Basic (Declaration)
Public Property Indent As Integer
C#
public int Indent {get; set;}
Remarks
If you set the Indent property to a value that is too narrow to fit the NodeImageCollapsed and
NodeImageExpanded images, the grid will adjust it to fit the images.
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
GridTree Class
GridTree Members
LineColor Property
Gets or sets the color of the lines in the outline tree.
Syntax
Visual Basic (Declaration)
Public Property LineColor As Color
674
C#
public Color LineColor {get; set;}
Remarks
See also the Style property.
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
GridTree Class
GridTree Members
LineStyle Property
Gets or sets the line style used to draw the outline tree.
Syntax
Visual Basic (Declaration)
Public Property LineStyle As DashStyle
C#
public DashStyle LineStyle {get; set;}
Remarks
By default, this property is set to DashStyle.Dot, which causes the tree to be drawn with dotted
lines. You can change the value of this property to draw the tree using solid lines instead.
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
675
See Also
Reference
GridTree Class
GridTree Members
MaximumLevel Property
Gets the level of the deepest node in the outline.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property MaximumLevel As Integer
C#
public int MaximumLevel {get;}
Remarks
This property can be used with methods that take an outline level as a parameter (for example,
Sort(Int32,SortFlags,Int32,Int32) and Show).
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
GridTree Class
GridTree Members
NodeImageCollapsed Property
Gets or sets the image displayed next to collapsed nodes.
Syntax
676
Remarks
Setting this property to null resets it and causes the grid to use the default image (a plus sign).
To hide the images, use the Style property.
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
GridTree Class
GridTree Members
NodeImageExpanded Property
Gets or sets the image displayed next to expanded nodes.
Syntax
Visual Basic (Declaration)
Public Property NodeImageExpanded As Image
C#
public Image NodeImageExpanded {get; set;}
Remarks
Setting this property to null resets it and causes the grid to use the default image (a minus sign).
To hide the images, use the Style property.
677
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
GridTree Class
GridTree Members
Style Property
Gets or sets the style of the outline tree.
Syntax
Visual Basic (Declaration)
Public Property Style As TreeStyleFlags
C#
public TreeStyleFlags Style {get; set;}
Remarks
Use the Style property to determine whether the outline tree should include lines connecting the
nodes and buttons for collapsing and expanding the nodes. See the TreeStyleFlags enumeration for
details.
Use the Column property to determine where the grid will show the outline tree.
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
678
GridTree Class
GridTree Members
KeyEditEventArgs
Provides data for the C1FlexGridBase.KeyDownEdit and C1FlexGridBase.KeyUpEdit events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class KeyEditEventArgs
Inherits System.EventArgs
C#
public class KeyEditEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.KeyEditEventArgs
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
KeyEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.KeyDownEdit and C1FlexGridBase.KeyUpEdit events.
Object Model
679
Syntax
Visual Basic (Declaration)
Public Class KeyEditEventArgs
Inherits System.EventArgs
C#
public class KeyEditEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.KeyEditEventArgs
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
KeyEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
680
Top
Public Fields
Name
Description
Alt
Col
Gets the column index of the cell being edited when the key was pressed.
Control
Handled
Gets or sets a value indicating whether the event was handled and should be
ignored by the control.
KeyCode
Gets the key code for the event, which will be one of the
System.Windows.Forms.Keys values.
KeyData
Gets the key code for the key that was pressed, combined with modifier flags
that indicate which combination of CTRL, SHIFT, and ALT keys were pressed
at the same time.
KeyValue
Modifiers
Gets the modifier flags, as defined in Keys. This indicates which combination
of modifier keys (CTRL, SHIFT, and ALT) were pressed.
Row
Gets the row index of the cell being edited when the key was pressed.
Shift
Top
See Also
Reference
681
KeyEditEventArgs Class
C1.Win.C1FlexGrid Namespace
KeyEditEventArgs Constructor
The row index of the cell being edited when the key was pressed.
The column index of the cell being edited when the key was pressed.
A System.Windows.Forms.KeyEventArgs object containing the keyboard data.
Initializes a new instance of the KeyEditEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal e As KeyEventArgs _
)
C#
public KeyEditEventArgs(
int row,
int col,
KeyEventArgs e
)
Parameters
row
The row index of the cell being edited when the key was pressed.
col
The column index of the cell being edited when the key was pressed.
e
A System.Windows.Forms.KeyEventArgs object containing the keyboard data.
Requirements
682
See Also
Reference
KeyEditEventArgs Class
KeyEditEventArgs Members
Fields
For a list of all members of this type, see KeyEditEventArgs members.
Public Fields
Name
Description
Alt
Col
Gets the column index of the cell being edited when the key was pressed.
Control
Handled
Gets or sets a value indicating whether the event was handled and should be
ignored by the control.
KeyCode
Gets the key code for the event, which will be one of the
System.Windows.Forms.Keys values.
KeyData
Gets the key code for the key that was pressed, combined with modifier flags
that indicate which combination of CTRL, SHIFT, and ALT keys were pressed
at the same time.
KeyValue
Modifiers
Gets the modifier flags, as defined in Keys. This indicates which combination
of modifier keys (CTRL, SHIFT, and ALT) were pressed.
683
Row
Gets the row index of the cell being edited when the key was pressed.
Shift
Top
See Also
Reference
KeyEditEventArgs Class
C1.Win.C1FlexGrid Namespace
Alt Field
Gets a value indicating whether the ALT key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Alt As Boolean
C#
public readonly bool Alt
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
KeyEditEventArgs Class
KeyEditEventArgs Members
Col Field
Gets the column index of the cell being edited when the key was pressed.
Syntax
684
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
KeyEditEventArgs Class
KeyEditEventArgs Members
Control Field
Gets a value indicating whether the CTRL key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Control As Boolean
C#
public readonly bool Control
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
685
KeyEditEventArgs Class
KeyEditEventArgs Members
Handled Field
Gets or sets a value indicating whether the event was handled and should be ignored by the
control.
Syntax
Visual Basic (Declaration)
Public Handled As Boolean
C#
public bool Handled
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
KeyEditEventArgs Class
KeyEditEventArgs Members
KeyCode Field
Gets the key code for the event, which will be one of the System.Windows.Forms.Keys values.
Syntax
Visual Basic (Declaration)
Public ReadOnly KeyCode As Keys
C#
public readonly Keys KeyCode
Requirements
686
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
KeyEditEventArgs Class
KeyEditEventArgs Members
KeyData Field
Gets the key code for the key that was pressed, combined with modifier flags that indicate which
combination of CTRL, SHIFT, and ALT keys were pressed at the same time.
Syntax
Visual Basic (Declaration)
Public ReadOnly KeyData As Keys
C#
public readonly Keys KeyData
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
KeyEditEventArgs Class
KeyEditEventArgs Members
KeyValue Field
Gets the integer representation of the KeyData property.
Syntax
687
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
KeyEditEventArgs Class
KeyEditEventArgs Members
Modifiers Field
Gets the modifier flags, as defined in Keys. This indicates which combination of modifier keys (CTRL,
SHIFT, and ALT) were pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Modifiers As Keys
C#
public readonly Keys Modifiers
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
688
KeyEditEventArgs Class
KeyEditEventArgs Members
Row Field
Gets the row index of the cell being edited when the key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
KeyEditEventArgs Class
KeyEditEventArgs Members
Shift Field
Gets a value indicating whether the SHIFT key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Shift As Boolean
C#
public readonly bool Shift
Requirements
689
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
KeyEditEventArgs Class
KeyEditEventArgs Members
KeyPressEditEventArgs
Provides data for the C1FlexGridBase.KeyPressEdit event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class KeyPressEditEventArgs
Inherits System.EventArgs
C#
public class KeyPressEditEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.KeyPressEditEventArgs
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
690
Reference
KeyPressEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.KeyPressEdit event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class KeyPressEditEventArgs
Inherits System.EventArgs
C#
public class KeyPressEditEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.KeyPressEditEventArgs
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
KeyPressEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
691
Public Constructors
Name
Description
Public Fields
Name
Description
Col
Gets the column index of the cell being edited when the key was pressed.
Handled
Gets or sets a value indicating whether the event was handled and should be
ignored by the control.
KeyChar
Row
Gets the row index of the cell being edited when the key was pressed.
Top
See Also
Reference
KeyPressEditEventArgs Class
C1.Win.C1FlexGrid Namespace
KeyPressEditEventArgs Constructor
The row index of the cell being edited when the key was pressed.
The column index of the cell being edited when the key was pressed.
The character corresponding to the key pressed.
Initializes a new instance of the KeyPressEditEventArgs class.
692
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal key As Char _
)
C#
public KeyPressEditEventArgs(
int row,
int col,
char key
)
Parameters
row
The row index of the cell being edited when the key was pressed.
col
The column index of the cell being edited when the key was pressed.
key
The character corresponding to the key pressed.
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
KeyPressEditEventArgs Class
KeyPressEditEventArgs Members
693
Fields
For a list of all members of this type, see KeyPressEditEventArgs members.
Public Fields
Name
Description
Col
Gets the column index of the cell being edited when the key was pressed.
Handled
Gets or sets a value indicating whether the event was handled and should be
ignored by the control.
KeyChar
Row
Gets the row index of the cell being edited when the key was pressed.
Top
See Also
Reference
KeyPressEditEventArgs Class
C1.Win.C1FlexGrid Namespace
Col Field
Gets the column index of the cell being edited when the key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
Requirements
694
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
KeyPressEditEventArgs Class
KeyPressEditEventArgs Members
Handled Field
Gets or sets a value indicating whether the event was handled and should be ignored by the
control.
Syntax
Visual Basic (Declaration)
Public Handled As Boolean
C#
public bool Handled
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
KeyPressEditEventArgs Class
KeyPressEditEventArgs Members
KeyChar Field
Gets the character corresponding to the key pressed.
Syntax
695
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
KeyPressEditEventArgs Class
KeyPressEditEventArgs Members
Row Field
Gets the row index of the cell being edited when the key was pressed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
696
KeyPressEditEventArgs Class
KeyPressEditEventArgs Members
MultiColumnDictionary
Example
Class that implements the IC1MultiColumnDictionary and can be used as a column DataMap to
create multi-column combo editors.
Object Model
Syntax
Visual Basic (Declaration)
Public Class MultiColumnDictionary
Inherits System.Collections.Specialized.ListDictionary
Implements IC1MultiColumnDictionary
C#
public class MultiColumnDictionary :
System.Collections.Specialized.ListDictionary, IC1MultiColumnDictionary
Remarks
The MultiColumnDictionary class can be used to implement simple string-based data maps or
bound data maps that get the data from a data source object.
Example
The code below creates an unbound two-column data map and assigns it to a grid column:
The map consists of three items, each with two columns. Because the autoKeys parameter was set
to true in the map's constructor, the map will have unique integer keys for each value,and those
integers will be stored in the grid cells. If autoKeys had been set to false, the strings themselves
would be used as keys and stored in the grid cells.
The code below creates a bound data map and assigns it to a grid column:
697
This map is bound to an Employees DataTable. The keyColumn parameter is set to "EmployeeID",
causing this field to be used as a key. When the grid is edited, the values stored in the cells will be
the employee's ID. However, this value is never displayed be the grid.
The drop-down list will show the employee's first name, last name, and country, as specified by the
columnNames parameter.
When the list is closed, the grid will display the employee's last name, as specified by the
displayColumn parameter.
Note that this map is dynamically bound to the data source, so if the employees table is modified,
the editor list will reflect the changes automatically.
Note also that the usual combo editing features such as auto-search and double-click cycling still
work.
C#
C#
Inheritance Hierarchy
System.Object
System.Collections.Specialized.ListDictionary
C1.Win.C1FlexGrid.MultiColumnDictionary
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
698
See Also
Reference
MultiColumnDictionary Members
C1.Win.C1FlexGrid Namespace
Overview
Example
Class that implements the IC1MultiColumnDictionary and can be used as a column DataMap to
create multi-column combo editors.
Object Model
Syntax
Visual Basic (Declaration)
Public Class MultiColumnDictionary
Inherits System.Collections.Specialized.ListDictionary
Implements IC1MultiColumnDictionary
C#
public class MultiColumnDictionary :
System.Collections.Specialized.ListDictionary, IC1MultiColumnDictionary
Remarks
The MultiColumnDictionary class can be used to implement simple string-based data maps or
bound data maps that get the data from a data source object.
Example
The code below creates an unbound two-column data map and assigns it to a grid column:
The map consists of three items, each with two columns. Because the autoKeys parameter was set
to true in the map's constructor, the map will have unique integer keys for each value,and those
integers will be stored in the grid cells. If autoKeys had been set to false, the strings themselves
would be used as keys and stored in the grid cells.
699
The code below creates a bound data map and assigns it to a grid column:
This map is bound to an Employees DataTable. The keyColumn parameter is set to "EmployeeID",
causing this field to be used as a key. When the grid is edited, the values stored in the cells will be
the employee's ID. However, this value is never displayed be the grid.
The drop-down list will show the employee's first name, last name, and country, as specified by the
columnNames parameter.
When the list is closed, the grid will display the employee's last name, as specified by the
displayColumn parameter.
Note that this map is dynamically bound to the data source, so if the employees table is modified,
the editor list will reflect the changes automatically.
Note also that the usual combo editing features such as auto-search and double-click cycling still
work.
C#
C#
Inheritance Hierarchy
System.Object
System.Collections.Specialized.ListDictionary
C1.Win.C1FlexGrid.MultiColumnDictionary
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
700
See Also
Reference
MultiColumnDictionary Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
Count
IsFixedSize
IsReadOnly
IsSynchronized
Item
Keys
SyncRoot
Values
701
Top
Public Methods
Name
Description
Add
Clear
Contains
CopyTo
GetEnumerator
Remove
Top
See Also
Reference
MultiColumnDictionary Class
C1.Win.C1FlexGrid Namespace
MultiColumnDictionary Constructor
Overload List
Overload
Description
MultiColumnDictionary Constructor(String)
MultiColumnDictionary Constructor(String,Int32,Boolean)
702
MultiColumnDictionary class.
MultiColumnDictionary Constructor(ITypedList,String,String[],Int32) Initializes a new instance of a
bound MultiColumnDictionary
class.
MultiColumnDictionary Constructor(ITypedList,String)
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
MultiColumnDictionary Class
MultiColumnDictionary Members
MultiColumnDictionary Constructor(String)
String that contains the items, delimited by pipe characters ("|"). Each item may contain multiple
columns, delimited by tabs (vbTab or '\t').
Initializes a new instance of an unbound MultiColumnDictionary class.
Syntax
703
Parameters
items
String that contains the items, delimited by pipe characters ("|"). Each item may contain
multiple columns, delimited by tabs (vbTab or '\t').
Remarks
This constructor causes the map to show all columns when the editor is dropped down and
only the first column when the editor is closed or inactive.
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
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
MultiColumnDictionary Constructor(String,Int32,Boolean)
String that contains the items. Items are delimited by pipe characters ("|"). Each item may contain
multiple columns, delimited by tabs (vbTab or '\t').
Index of the column that is displayed in the grid.
704
True if keys are to be automatically generated, false if the items themselves are to be used as keys.
Note that in the latter case, duplicate items are not allowed.
Initializes a new instance of an unbound MultiColumnDictionary class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal items As String, _
ByVal displayColumn As Integer, _
ByVal autoKeys As Boolean _
)
C#
public MultiColumnDictionary(
string items,
int displayColumn,
bool autoKeys
)
Parameters
items
String that contains the items. Items are delimited by pipe characters ("|"). Each item may
contain multiple columns, delimited by tabs (vbTab or '\t').
displayColumn
Index of the column that is displayed in the grid.
autoKeys
True if keys are to be automatically generated, false if the items themselves are to be used
as keys. Note that in the latter case, duplicate items are not allowed.
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
705
See Also
Reference
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
MultiColumnDictionary Constructor(ITypedList,String,String[],Int32)
Data source object.
Name of the data source column that contains unique keys.
Array with the names of the columns that are included in the map.
Name of the column that is displayed in the grid.
Initializes a new instance of a bound MultiColumnDictionary class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal list As ITypedList, _
ByVal keyColumn As String, _
ByVal columnNames() As String, _
ByVal displayColumn As Integer _
)
C#
public MultiColumnDictionary(
ITypedList list,
string keyColumn,
string[] columnNames,
int displayColumn
)
Parameters
list
Data source object.
706
keyColumn
Name of the data source column that contains unique keys.
columnNames
Array with the names of the columns that are included in the map.
displayColumn
Name of the column that is displayed in the grid.
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
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
MultiColumnDictionary Constructor(ITypedList,String)
Data source object.
Name of the data source column that contains unique keys.
Initializes a new instance of a bound MultiColumnDictionary class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal list As ITypedList, _
ByVal keyColumn As String _
)
C#
public MultiColumnDictionary(
707
ITypedList list,
string keyColumn
)
Parameters
list
Data source object.
keyColumn
Name of the data source column that contains unique keys.
Remarks
This constructor causes the map to show all columns when the editor is dropped down
and only the first column when the editor is closed or inactive.
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
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
MultiColumnDictionary Constructor(DataTable,String,String[],Int32)
Data source object.
Name of the data source column that contains unique keys.
Array with the names of the columns that are included in the map.
Name of the column that is displayed in the grid.
Initializes a new instance of a bound MultiColumnDictionary class.
Syntax
708
Parameters
table
Data source object.
keyColumn
Name of the data source column that contains unique keys.
columnNames
Array with the names of the columns that are included in the map.
displayColumn
Name of the column that is displayed in the grid.
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
709
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
MultiColumnDictionary Constructor(DataTable,String)
Data source object.
Name of the data source column that contains unique keys.
Initializes a new instance of a bound MultiColumnDictionary class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal table As DataTable, _
ByVal keyColumn As String _
)
C#
public MultiColumnDictionary(
DataTable table,
string keyColumn
)
Parameters
table
Data source object.
keyColumn
Name of the data source column that contains unique keys.
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
710
Reference
MultiColumnDictionary Class
MultiColumnDictionary Members
Overload List
Methods
For a list of all members of this type, see MultiColumnDictionary members.
Public Methods
Name
Description
Add
Clear
Contains
CopyTo
GetEnumerator
Remove
Top
See Also
Reference
MultiColumnDictionary Class
C1.Win.C1FlexGrid Namespace
Clear Method
Removes all entries from the MultiColumnDictionary.
Syntax
Visual Basic (Declaration)
711
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
MultiColumnDictionary Class
MultiColumnDictionary Members
Node
The Node class encapsulates properties and methods used for manipulating node rows (collapsing,
expanding, moving, and sorting them).
Object Model
Syntax
Visual Basic (Declaration)
Public Class Node
C#
public class Node
Remarks
You can create node rows using the C1FlexGridBase.Subtotal method or by setting the
Row.IsNode property to true.
Inheritance Hierarchy
712
System.Object
C1.Win.C1FlexGrid.Node
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
Node Members
C1.Win.C1FlexGrid Namespace
Overview
The Node class encapsulates properties and methods used for manipulating node rows (collapsing,
expanding, moving, and sorting them).
Object Model
Syntax
Visual Basic (Declaration)
Public Class Node
C#
public class Node
Remarks
You can create node rows using the C1FlexGridBase.Subtotal method or by setting the
Row.IsNode property to true.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.Node
713
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
Node Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Checked
Children
Collapsed
Data
Gets or sets the data on this node row at the column that contains the
outline tree.
Expanded
FirstChild
FirstSibling
FirstVisibleChild
714
Image
Gets or sets the image on this node row at the column that contains the
outline tree.
Index
Key
LastChild
LastSibling
Level
NextNode
Parent
PrevNode
Top
Public Methods
Name
Description
AddNode
EnsureVisible
Ensures that this node is visible, expanding its parent nodes and scrolling it
715
Returns a CellRange object containing this row and all its child rows.
GetNode
Move
RemoveNode
Removes this node row and all its child rows (nodes and data) from the
grid.
Select
Sort
Top
See Also
Reference
Node Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see Node members.
Public Methods
Name
Description
AddNode
EnsureVisible
Ensures that this node is visible, expanding its parent nodes and scrolling it
into view if necessary.
GetCellRange
Returns a CellRange object containing this row and all its child rows.
716
GetNode
Move
RemoveNode
Removes this node row and all its child rows (nodes and data) from the
grid.
Select
Sort
Top
See Also
Reference
Node Class
C1.Win.C1FlexGrid Namespace
AddNode Method
Creates a node row at a specified position relative to this node.
Overload List
Overload
Description
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
717
See Also
Reference
Node Class
Node Members
AddNode(NodeTypeEnum,Object,Object,Image) Method
A value from the NodeTypeEnum enumeration that specifies where the new node will be added
with respect to this node (e.g. Child, Sibling).
Value of the Data property for the new node.
Value of the Key property for the new node.
Value of the Image property for the new node.
Creates a node row at a specified position relative to this node.
Syntax
Visual Basic (Declaration)
Public Overloads Function AddNode( _
ByVal position As NodeTypeEnum, _
ByVal data As Object, _
ByVal key As Object, _
ByVal img As Image _
) As Node
C#
public Node AddNode(
NodeTypeEnum position,
object data,
object key,
Image img
)
Parameters
position
A value from the NodeTypeEnum enumeration that specifies where the new node will be
added with respect to this node (e.g. Child, Sibling).
718
data
Value of the Data property for the new node.
key
Value of the Key property for the new node.
img
Value of the Image property for the new node.
Return Value
A reference to the new Node added to the grid.
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
Node Class
Node Members
Overload List
AddNode(NodeTypeEnum,Object) Method
A value from the NodeTypeEnum enumeration that specifies where the new node will be added
with respect to this node (e.g. Child, Sibling).
Value of the Data property for the new node.
Creates a node row at a specified position relative to this node.
Syntax
Visual Basic (Declaration)
Public Overloads Function AddNode( _
ByVal position As NodeTypeEnum, _
ByVal data As Object _
719
) As Node
C#
public Node AddNode(
NodeTypeEnum position,
object data
)
Parameters
position
A value from the NodeTypeEnum enumeration that specifies where the new node will be
added with respect to this node (e.g. Child, Sibling).
data
Value of the Data property for the new node.
Return Value
A reference to the new Node added to the grid.
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
Node Class
Node Members
Overload List
EnsureVisible Method
Ensures that this node is visible, expanding its parent nodes and scrolling it into view if necessary.
Syntax
Visual Basic (Declaration)
720
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
Node Class
Node Members
GetCellRange Method
Returns a CellRange object containing this row and all its child rows.
Syntax
Visual Basic (Declaration)
Public Function GetCellRange() As CellRange
C#
public CellRange GetCellRange()
Return Value
A CellRange object containing this row and all its child rows.
Remarks
The CellRange object returned includes all columns.
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
721
See Also
Reference
Node Class
Node Members
GetNode Method
A value from the NodeTypeEnum enumeration that specifies the position relative to this node.
Returns a reference to a node located at a given position relative to this node.
Syntax
Visual Basic (Declaration)
Public Function GetNode( _
ByVal position As NodeTypeEnum _
) As Node
C#
public Node GetNode(
NodeTypeEnum position
)
Parameters
position
A value from the NodeTypeEnum enumeration that specifies the position relative to this
node.
Return Value
A node object.
Remarks
If the node requested does not exist, GetNode returns null (for example, the root node does
not have a previous sibling).
Requirements
722
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
Node Class
Node Members
Move Method
Moves a node to a new position.
Overload List
Overload
Description
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
Node Class
Node Members
Move(NodeMoveEnum,Node) Method
A value from the NodeMoveEnum enumeration that specifies where the node will be moved with
respect to its current position.
Node object to use as a target when the moveTo parameter is set to NodeMoveEnum.ChildOf.
Moves a node to a new position.
Syntax
723
Parameters
moveTo
A value from the NodeMoveEnum enumeration that specifies where the node will be
moved with respect to its current position.
targetNode
Node object to use as a target when the moveTo parameter is set to
NodeMoveEnum.ChildOf.
Return Value
Returns true if the method was successful, false otherwise.
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
Node Class
Node Members
Overload List
724
Move(NodeMoveEnum) Method
A value from the NodeMoveEnum enumeration that specifies where the node will be moved with
respect to its current position.
Moves a node to a new position.
Syntax
Visual Basic (Declaration)
Public Overloads Function Move( _
ByVal moveTo As NodeMoveEnum _
) As Boolean
C#
public bool Move(
NodeMoveEnum moveTo
)
Parameters
moveTo
A value from the NodeMoveEnum enumeration that specifies where the node will be
moved with respect to its current position.
Return Value
Returns true if the method was successful, false otherwise.
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
Node Class
Node Members
Overload List
725
RemoveNode Method
Removes this node row and all its child rows (nodes and data) from the grid.
Syntax
Visual Basic (Declaration)
Public Sub RemoveNode()
C#
public void RemoveNode()
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
Node Class
Node Members
Select Method
Selects the node.
Syntax
Visual Basic (Declaration)
Public Sub Select()
C#
public void Select()
Remarks
This method sets the control's C1FlexGridBase.Row property.
Requirements
726
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
Node Class
Node Members
Sort Method
Sorts this node's child nodes in the specified order.
Overload List
Overload
Description
Sort(IComparer)
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
Node Class
Node Members
Sort(SortFlags,Int32,Int32) Method
One or more values from the SortFlags enumeration that specify the type of sorting to be applied
(e.g. ascending, descending, case-sensitive, etc).
Start of a range of columns to sort.
727
Syntax
Visual Basic (Declaration)
Public Overloads Sub Sort( _
ByVal order As SortFlags, _
ByVal col1 As Integer, _
ByVal col2 As Integer _
)
C#
public void Sort(
SortFlags order,
int col1,
int col2
)
Parameters
order
One or more values from the SortFlags enumeration that specify the type of sorting to be
applied (e.g. ascending, descending, case-sensitive, etc).
col1
Start of a range of columns to sort.
col2
End of a range of columns to sort.
Remarks
The grid recognizes two types of row: regular rows which contain data, and node
rows which are used to group data. This method only sorts the row nodes; it does
not reorder the data rows within each node.
To sort the data rows, use the grid's C1FlexGridBase.Sort method instead.
728
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
Node Class
Node Members
Overload List
Sort(SortFlags) Method
One or more values from the SortFlags enumeration that specify the type of sorting to be applied
(e.g. ascending, descending, case-sensitive, etc).
Sorts this node's child nodes in the specified order.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Sort( _
ByVal order As SortFlags _
)
C#
public void Sort(
SortFlags order
)
Parameters
order
One or more values from the SortFlags enumeration that specify the type of sorting to be
applied (e.g. ascending, descending, case-sensitive, etc).
Remarks
729
The grid recognizes two types of row: regular rows which contain data, and node rows which
are used to group data. This method only sorts the row nodes; it does not reorder the data
rows within each node.
To sort the data rows, use the grid's C1FlexGridBase.Sort method instead.
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
Node Class
Node Members
Overload List
Sort(IComparer) Method
An object that implements the System.Collections.IComparer interface used to compare Row
objects. This can be used to provide custom sorting.
Sorts this node's child nodes using a given System.Collections.IComparer object to determine the
node order.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Sort( _
ByVal comparer As IComparer _
)
C#
public void Sort(
IComparer comparer
)
Parameters
comparer
730
Remarks
The grid recognizes two types of row: regular rows which contain data, and node rows which
are used to group data. This method only sorts the row nodes; it does not reorder the data
rows within each node.
To sort the data rows, use the grid's C1FlexGridBase.Sort method instead.
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
Node Class
Node Members
Overload List
Properties
For a list of all members of this type, see Node members.
Public Properties
Name
Description
Checked
Children
Collapsed
Data
Gets or sets the data on this node row at the column that contains the
outline tree.
731
Expanded
FirstChild
FirstSibling
FirstVisibleChild
Image
Gets or sets the image on this node row at the column that contains the
outline tree.
Index
Key
LastChild
LastSibling
Level
NextNode
Parent
PrevNode
Top
732
See Also
Reference
Node Class
C1.Win.C1FlexGrid Namespace
Checked Property
Gets or sets the checkbox value associated with this node.
Syntax
Visual Basic (Declaration)
Public Property Checked As CheckEnum
C#
public CheckEnum Checked {get; set;}
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
Node Class
Node Members
Children Property
Gets the number of child nodes under this node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Children As Integer
C#
733
Remarks
Only immediate children are included in the count. Grand-children are not included.
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
Node Class
Node Members
Collapsed Property
Gets or sets whether this node is collapsed.
Syntax
Visual Basic (Declaration)
Public Property Collapsed As Boolean
C#
public bool Collapsed {get; set;}
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
Node Class
Node Members
734
Data Property
Gets or sets the data on this node row at the column that contains the outline tree.
Syntax
Visual Basic (Declaration)
Public Property Data As Object
C#
public object Data {get; set;}
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
Node Class
Node Members
Expanded Property
Gets or sets whether this node is expanded.
Syntax
Visual Basic (Declaration)
Public Property Expanded As Boolean
C#
public bool Expanded {get; set;}
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
735
See Also
Reference
Node Class
Node Members
FirstChild Property
Gets the first child node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property FirstChild As Node
C#
public Node FirstChild {get;}
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
Node Class
Node Members
FirstSibling Property
Gets the first sibling node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property FirstSibling As Node
C#
736
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
Node Class
Node Members
FirstVisibleChild Property
Gets the first visible child node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property FirstVisibleChild As Node
C#
public Node FirstVisibleChild {get;}
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
Node Class
Node Members
Image Property
Gets or sets the image on this node row at the column that contains the outline tree.
Syntax
737
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
Node Class
Node Members
Index Property
Gets the index of this node in the collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Index As Integer
C#
public int Index {get;}
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
738
Node Class
Node Members
Key Property
Gets or sets the RowCol.UserData associated with this node row.
Syntax
Visual Basic (Declaration)
Public Property Key As Object
C#
public object Key {get; set;}
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
Node Class
Node Members
LastChild Property
Gets the last child node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property LastChild As Node
C#
public Node LastChild {get;}
Requirements
739
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
Node Class
Node Members
LastSibling Property
Gets the last sibling node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property LastSibling As Node
C#
public Node LastSibling {get;}
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
Node Class
Node Members
Level Property
Gets or sets the outline level for this node.
Syntax
Visual Basic (Declaration)
740
Remarks
Higher levels mean deeper nesting. Set the level to zero to create root nodes, or set the level to
negative values to create nodes that do not appear on the outline tree.
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
Node Class
Node Members
NextNode Property
Gets the next sibling node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property NextNode As Node
C#
public Node NextNode {get;}
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
741
Reference
Node Class
Node Members
NextVisibleNode Property
Gets the next visible sibling node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property NextVisibleNode As Node
C#
public Node NextVisibleNode {get;}
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
Node Class
Node Members
Nodes Property
Gets an array containing the children of this node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Nodes As Node()
C#
public Node[] Nodes {get;}
Requirements
742
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
Node Class
Node Members
Parent Property
Gets the parent node of this node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Parent As Node
C#
public Node Parent {get;}
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
Node Class
Node Members
PrevNode Property
Gets the previous sibling node.
Syntax
Visual Basic (Declaration)
743
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
Node Class
Node Members
PrevVisibleNode Property
Gets the previous visible sibling node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PrevVisibleNode As Node
C#
public Node PrevVisibleNode {get;}
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
Node Class
Node Members
744
Row Property
Returns a reference to the Row object that corresponds to this node.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Row As Row
C#
public Row Row {get;}
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
Node Class
Node Members
OwnerDrawCellEventArgs
Provides data for the C1FlexGridBase.OwnerDrawCell event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class OwnerDrawCellEventArgs
Inherits System.EventArgs
C#
public class OwnerDrawCellEventArgs : System.EventArgs
745
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs
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
OwnerDrawCellEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.OwnerDrawCell event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class OwnerDrawCellEventArgs
Inherits System.EventArgs
C#
public class OwnerDrawCellEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.OwnerDrawCellEventArgs
746
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
OwnerDrawCellEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields Properties Methods
Public Constructors
Name
Description
Public Fields
Name
Description
Bounds
Get the rectangle where the cell will be painted (in client coordinates).
Col
Graphics
Gets the Graphics object used to draw the cell. Use this object to draw
custom elements in the cell.
Handled
Gets or sets whether the event has finished drawing the cell.
747
Measuring
Gets a value that determines if the event was fired only to measure the cell.
Row
Top
Public Properties
Name
Description
Image
Style
Text
Top
Public Methods
Name
Description
DrawCell
Top
See Also
Reference
OwnerDrawCellEventArgs Class
C1.Win.C1FlexGrid Namespace
OwnerDrawCellEventArgs Constructor
The C1FlexGridBase control that contains the cell being painted.
The Graphics object where the cell will be painted.
The row index of the cell being painted.
The column index of the cell being painted.
748
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal view As C1FlexGridBase, _
ByVal g As Graphics, _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal s As CellStyle, _
ByVal rc As Rectangle, _
ByVal text As String, _
ByVal img As Image _
)
C#
public OwnerDrawCellEventArgs(
C1FlexGridBase view,
Graphics g,
int row,
int col,
CellStyle s,
Rectangle rc,
string text,
Image img
)
Parameters
view
The C1FlexGridBase control that contains the cell being painted.
749
g
The Graphics object where the cell will be painted.
row
The row index of the cell being painted.
col
The column index of the cell being painted.
s
The CellStyle that will be used to paint the cell.
rc
The bounds of the cell being painted.
text
The text that will be displayed in the cell.
img
The image that will be displayed in the cell.
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Methods
For a list of all members of this type, see OwnerDrawCellEventArgs members.
Public Methods
750
Name
Description
DrawCell
Top
See Also
Reference
OwnerDrawCellEventArgs Class
C1.Win.C1FlexGrid Namespace
DrawCell Method
Causes the grid to paint parts of the cell (background, foreground, border, etc.)
Overload List
Overload
Description
DrawCell(DrawCellFlags) Causes the grid to paint parts of the cell (background, foreground, border,
etc.)
DrawCell()
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
DrawCell(DrawCellFlags) Method
DrawCellFlags that specifies the parts of the cell.
751
Causes the grid to paint parts of the cell (background, foreground, border, etc.)
Syntax
Visual Basic (Declaration)
Public Overloads Sub DrawCell( _
ByVal flags As DrawCellFlags _
)
C#
public void DrawCell(
DrawCellFlags flags
)
Parameters
flags
DrawCellFlags that specifies the parts of the cell.
Remarks
This method is typically called in C1FlexGridBase.OwnerDrawCell handlers when the code
intends to draw some elements of the cell but not everything.
For example, the code may want to draw a custom border only. In this case, it could call
e.DrawCell(DrawCellFlags.Background | DrawCellFlags.Content) to draw the cell
background and content, and later draw the custom border. Or the code could want to draw a
custom marker in a cell (like a note indicator in Excel). In this case, it should call e.DrawCell()
to draw the entire cell, and later add the note marker (little red triangle on the top right corner
of the cell).
If the owner-draw code draws the entire cell (including the background), then there's no need
to call e.DrawCell at all.
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
752
Reference
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Overload List
DrawCell() Method
Causes the grid to paint the whole cell.
Syntax
Visual Basic (Declaration)
Public Overloads Sub DrawCell()
C#
public void DrawCell()
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Overload List
Properties
For a list of all members of this type, see OwnerDrawCellEventArgs members.
Public Properties
Name
Description
Image
Style
753
Text
Top
See Also
Reference
OwnerDrawCellEventArgs Class
C1.Win.C1FlexGrid Namespace
Image Property
Gets or sets the image that will be displayed in the cell.
Syntax
Visual Basic (Declaration)
Public Property Image As Image
C#
public Image Image {get; set;}
Remarks
Changing this value is an easy way to modify the image displayed in a cell without any custom
drawing code.
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Style Property
Example
754
Syntax
Visual Basic (Declaration)
Public Property Style As CellStyle
C#
public CellStyle Style {get; set;}
Remarks
This parameter is often used to provide dynamic formatting based on cell contents. For example, if
the cell contains a value outside a given range, the event handler may assign a new style to this
parameter.
Although it is legal to modify the members of the CellStyle parameter in this event, this is not
recommended, since the change will affect other cells that may be using this style.
Example
The code below uses the C1FlexGridBase.OwnerDrawCell event to highlight cells that indicate low
stock levels.
C#
755
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Text Property
Gets or sets the text that will be displayed in the cell.
Syntax
Visual Basic (Declaration)
Public Property Text As String
C#
public string Text {get; set;}
Remarks
Changing this value is an easy way to modify the text displayed in a cell without any custom
drawing code.
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
756
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Fields
For a list of all members of this type, see OwnerDrawCellEventArgs members.
Public Fields
Name
Description
Bounds
Get the rectangle where the cell will be painted (in client coordinates).
Col
Graphics
Gets the Graphics object used to draw the cell. Use this object to draw
custom elements in the cell.
Handled
Gets or sets whether the event has finished drawing the cell.
Measuring
Gets a value that determines if the event was fired only to measure the cell.
Row
Top
See Also
Reference
OwnerDrawCellEventArgs Class
C1.Win.C1FlexGrid Namespace
Bounds Field
Get the rectangle where the cell will be painted (in client coordinates).
Syntax
Visual Basic (Declaration)
Public ReadOnly Bounds As Rectangle
757
C#
public readonly Rectangle Bounds
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Col Field
Get the column index of the cell being painted.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Graphics Field
Gets the Graphics object used to draw the cell. Use this object to draw custom elements in the cell.
758
Syntax
Visual Basic (Declaration)
Public ReadOnly Graphics As Graphics
C#
public readonly Graphics Graphics
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Handled Field
Gets or sets whether the event has finished drawing the cell.
Syntax
Visual Basic (Declaration)
Public Handled As Boolean
C#
public bool Handled
Remarks
If this parameter is set to true, the grid assumes the call has been painted by the event handler. If it
is set to false, the grid will paint the cell when the event returns.
Note that calling the DrawCell method automatically sets this parameter to true.
Requirements
759
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Measuring Field
Gets a value that determines if the event was fired only to measure the cell.
Syntax
Visual Basic (Declaration)
Public ReadOnly Measuring As Boolean
C#
public readonly bool Measuring
Remarks
This occurs while auto-sizing rows and columns, since the event handler may change the value
displayed in the cell while handling this event.
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
Row Field
Get the row index of the cell being painted.
760
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
OwnerDrawCellEventArgs Class
OwnerDrawCellEventArgs Members
PrintDocumentGridRenderer
Example
Object Model
Syntax
Visual Basic (Declaration)
Public Class PrintDocumentGridRenderer
C#
public class PrintDocumentGridRenderer
Remarks
761
This class may be used to print multiple grids, along with other custom content, into an existing
System.Drawing.Printing.PrintDocument object.
To use it, create one PrintDocumentGridRenderer for each grid you want to print. Then handle
the document events and call the PrintPage(PrintPageEventArgs) event for the renderers until the
value of the CurrentPage property equals PageCount.
The code below renders two grids into a System.Drawing.Printing.PrintDocument: // print two
grids into an existing PrintDocument private void button1_Click(object
sender, EventArgs e) { using (var dlg = new PrintPreviewDialog()) {
dlg.Document = this.printDocument1; dlg.ShowDialog(this); } } // event
handlers for the PrintDocument object on the form
PrintDocumentGridRenderer _g1, _g2; void printDocument1_BeginPrint(object
sender, System.Drawing.Printing.PrintEventArgs e) { // create and
configure grid renderer for the first grid _g1 = new
PrintDocumentGridRenderer(c1FlexGrid1); _g1.Options =
PrintGridFlags.FitToPageWidth | PrintGridFlags.ExtendLastCol; // create
and configure grid renderer for the second grid _g2 = new
PrintDocumentGridRenderer(c1FlexGrid2); _g2.Options =
PrintGridFlags.FitToPageWidth | PrintGridFlags.ExtendLastCol; } void
printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e) { // render first grid if
(_g1.CurrentPage < _g1.PageCount) { _g1.PrintPage(e); e.HasMorePages =
true; } // render second grid else if (_g2.CurrentPage < _g2.PageCount) {
_g2.PrintPage(e); e.HasMorePages = _g2.CurrentPage < _g2.PageCount; } }
Example
The code below renders two grids into a System.Drawing.Printing.PrintDocument:
C#
762
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.PrintDocumentGridRenderer
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
PrintDocumentGridRenderer Members
C1.Win.C1FlexGrid Namespace
Overview
Example
Object Model
763
Syntax
Visual Basic (Declaration)
Public Class PrintDocumentGridRenderer
C#
public class PrintDocumentGridRenderer
Remarks
This class may be used to print multiple grids, along with other custom content, into an existing
System.Drawing.Printing.PrintDocument object.
To use it, create one PrintDocumentGridRenderer for each grid you want to print. Then handle
the document events and call the PrintPage(PrintPageEventArgs) event for the renderers until the
value of the CurrentPage property equals PageCount.
The code below renders two grids into a System.Drawing.Printing.PrintDocument: // print two
grids into an existing PrintDocument private void button1_Click(object
sender, EventArgs e) { using (var dlg = new PrintPreviewDialog()) {
dlg.Document = this.printDocument1; dlg.ShowDialog(this); } } // event
handlers for the PrintDocument object on the form
PrintDocumentGridRenderer _g1, _g2; void printDocument1_BeginPrint(object
sender, System.Drawing.Printing.PrintEventArgs e) { // create and
configure grid renderer for the first grid _g1 = new
PrintDocumentGridRenderer(c1FlexGrid1); _g1.Options =
PrintGridFlags.FitToPageWidth | PrintGridFlags.ExtendLastCol; // create
and configure grid renderer for the second grid _g2 = new
PrintDocumentGridRenderer(c1FlexGrid2); _g2.Options =
PrintGridFlags.FitToPageWidth | PrintGridFlags.ExtendLastCol; } void
printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e) { // render first grid if
(_g1.CurrentPage < _g1.PageCount) { _g1.PrintPage(e); e.HasMorePages =
true; } // render second grid else if (_g2.CurrentPage < _g2.PageCount) {
_g2.PrintPage(e); e.HasMorePages = _g2.CurrentPage < _g2.PageCount; } }
Example
The code below renders two grids into a System.Drawing.Printing.PrintDocument:
C#
764
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.PrintDocumentGridRenderer
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
765
See Also
Reference
PrintDocumentGridRenderer Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
CurrentPage
FirstPageY
Gets or sets the Y coordinate of the first block of cells rendered on the
document.
Options
Gets or sets the flags that specify printing options to use with the
C1FlexGridBase.PrintGrid method. See the PrintGridFlags enumeration for
details.
PageCount
Top
Public Methods
766
Name
Description
PrintPage
Setup
Top
See Also
Reference
PrintDocumentGridRenderer Class
C1.Win.C1FlexGrid Namespace
PrintDocumentGridRenderer Constructor
C1FlexGridBase that will be painted by this renderer.
Initializes a new instance of a PrintDocumentGridRenderer.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal flex As C1FlexGridBase _
)
C#
public PrintDocumentGridRenderer(
C1FlexGridBase flex
)
Parameters
flex
C1FlexGridBase that will be painted by this renderer.
Requirements
767
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
Methods
>
Name
Description
PrintPage
Setup
Top
See Also
Reference
PrintDocumentGridRenderer Class
C1.Win.C1FlexGrid Namespace
PrintPage Method
Renders the current page into the document.
Overload List
Overload
Description
PrintPage(PrintPageEventArgs)
Requirements
768
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
PrintPage(PrintPageEventArgs) Method
System.Drawing.Printing.PrintPageEventArgs that provides parameters for rendering the page.
Renders the current page into the document.
Syntax
Visual Basic (Declaration)
Public Overloads Sub PrintPage( _
ByVal e As PrintPageEventArgs _
)
C#
public void PrintPage(
PrintPageEventArgs e
)
Parameters
e
System.Drawing.Printing.PrintPageEventArgs that provides parameters for rendering the
page.
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
769
Reference
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
Overload List
PrintPage(PrintPageEventArgs,Int32) Method
System.Drawing.Printing.PrintPageEventArgs that provides parameters for rendering the page.
Index of the page to print.
Renders a specific page into the document.
Syntax
Visual Basic (Declaration)
Public Overloads Sub PrintPage( _
ByVal e As PrintPageEventArgs, _
ByVal pageIndex As Integer _
)
C#
public void PrintPage(
PrintPageEventArgs e,
int pageIndex
)
Parameters
e
System.Drawing.Printing.PrintPageEventArgs that provides parameters for rendering the
page.
pageIndex
Index of the page to print.
Remarks
This method is used to render specific ranges of pages within the document.
Requirements
770
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
Overload List
Setup Method
System.Drawing.Printing.PrintPageEventArgs that contains the page information.
Calculates the zoom factor and page breaks in the document.
Syntax
Visual Basic (Declaration)
Public Sub Setup( _
ByVal e As PrintPageEventArgs _
)
C#
public void Setup(
PrintPageEventArgs e
)
Parameters
e
System.Drawing.Printing.PrintPageEventArgs that contains the page information.
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
771
Reference
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
Properties
>
Name
CurrentPage
FirstPageY
Description
Gets the index of the page being rendered.
Gets or sets the Y coordinate of the first block of cells rendered on the
document.
Gets or sets the flags that specify printing options to use with the
Options
PageCount
Top
See Also
Reference
PrintDocumentGridRenderer Class
C1.Win.C1FlexGrid Namespace
CurrentPage Property
Gets the index of the page being rendered.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property CurrentPage As Integer
C#
public int CurrentPage {get;}
Requirements
772
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
FirstPageY Property
Gets or sets the Y coordinate of the first block of cells rendered on the document.
Syntax
Visual Basic (Declaration)
Public Property FirstPageY As Integer
C#
public int FirstPageY {get; set;}
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
Options Property
Gets or sets the flags that specify printing options to use with the C1FlexGridBase.PrintGrid
method. See the PrintGridFlags enumeration for details.
Syntax
773
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
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
PageCount Property
Gets the total number of pages in the document.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property PageCount As Integer
C#
public int PageCount {get;}
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
774
PrintDocumentGridRenderer Class
PrintDocumentGridRenderer Members
RangeEventArgs
Provides data for the C1FlexGridBase.AfterRowColChange, C1FlexGridBase.AfterScroll,
C1FlexGridBase.AfterSelChange, C1FlexGridBase.BeforeRowColChange,
C1FlexGridBase.BeforeScroll, and C1FlexGridBase.BeforeSelChange events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class RangeEventArgs
Inherits System.EventArgs
C#
public class RangeEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RangeEventArgs
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
RangeEventArgs Members
C1.Win.C1FlexGrid Namespace
775
Overview
Provides data for the C1FlexGridBase.AfterRowColChange, C1FlexGridBase.AfterScroll,
C1FlexGridBase.AfterSelChange, C1FlexGridBase.BeforeRowColChange,
C1FlexGridBase.BeforeScroll, and C1FlexGridBase.BeforeSelChange events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class RangeEventArgs
Inherits System.EventArgs
C#
public class RangeEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RangeEventArgs
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
RangeEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
776
Public Constructors
Name
Description
Public Fields
Name
Description
Cancel
NewRange
OldRange
Top
See Also
Reference
RangeEventArgs Class
C1.Win.C1FlexGrid Namespace
RangeEventArgs Constructor
The range selected before the event.
The range that will be selected after the event.
Initializes a new instance of the RangeEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal rgOld As CellRange, _
777
Parameters
rgOld
The range selected before the event.
rgNew
The range that will be selected after the event.
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
RangeEventArgs Class
RangeEventArgs Members
Fields
For a list of all members of this type, see RangeEventArgs members.
Public Fields
Name
Description
Cancel
778
NewRange
OldRange
Top
See Also
Reference
RangeEventArgs Class
C1.Win.C1FlexGrid Namespace
Cancel Field
Gets or sets a value indicating whether the new selection should be canceled.
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
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
RangeEventArgs Class
RangeEventArgs Members
NewRange Field
Gets the range that will be selected after the event.
Syntax
779
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
RangeEventArgs Class
RangeEventArgs Members
OldRange Field
Gets the range selected before the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly OldRange As CellRange
C#
public readonly CellRange OldRange
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
780
RangeEventArgs Class
RangeEventArgs Members
Row
Class that represents a grid row.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Row
Inherits RowCol
C#
public class Row : RowCol
Remarks
This class does not have a public constructor. You can add and remove rows using methods in the
grid's C1FlexGridBase.Rows property, which exposes the row collection.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Row
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
781
Row Members
C1.Win.C1FlexGrid Namespace
Overview
Class that represents a grid row.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Row
Inherits RowCol
C#
public class Row : RowCol
Remarks
This class does not have a public constructor. You can add and remove rows using methods in the
grid's C1FlexGridBase.Rows property, which exposes the row collection.
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Row
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
782
Row Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowMerging
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Bottom
Gets the position of the bottom of this row, in pixels, relative to the grid.
Caption
Gets or sets the text of the first fixed cell in the row.
ComboList
DataIndex
Gets the index of this row in the RowCollection collection, excluding fixed
and node rows.
DataMap
783
DataSource
DataType
Gets or sets the type of object stored in this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
EditMask
Gets or sets the input mask to use when editing cells on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Editor
Gets or sets the custom editor used to edit cells in this column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
Format
Gets or sets a string that specifies how to format the data on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Grid
Height
Gets or sets the height of this row, in pixels (the value -1 represents the
default row height).
HeightDisplay
ImageAlign
ImageAlignFixed Gets or sets an ImageAlignEnum value that determines how images are
aligned in fixed cells on this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
ImageAndText
Gets or sets a value that determines whether images found in this row or
column's RowCol.ImageMap should be displayed instead of or in addition to
the cell text. (Inherited from C1.Win.C1FlexGrid.RowCol)
ImageMap
784
IsCollapsed
IsNew
Indicates the row is a placeholder for adding new rows to the grid.
IsNode
IsVisible
Gets whether this row is currently visible to the user. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Item
Overloaded. Gets or sets the cell value specified by the column index in this
row.
Node
SafeIndex
Selected
Style
Gets or sets a custom CellStyle associated with this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleDisplay
Gets the style used to display this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
StyleFixedDisplay Gets the style used to display fixed cells on this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
785
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
TextAlign
TextAlignFixed
Top
Gets the position of the top of this row, in pixels, relative to the grid.
UserData
Gets or sets user data associated with this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Visible
Top
Public Methods
Name
Description
Clear
Invalidate
Move
Top
See Also
Reference
786
Row Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see Row members.
Public Methods
Name
Description
Clear
Invalidate
Move
Top
See Also
Reference
Row Class
C1.Win.C1FlexGrid Namespace
Clear Method
ClearFlags value specifying which elements of the row should be cleared.
Clears this row.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Clear( _
ByVal clearFlags As ClearFlags _
)
C#
public override void Clear(
ClearFlags clearFlags
787
Parameters
clearFlags
ClearFlags value specifying which elements of the row should be cleared.
Remarks
Use this method to reset row properties to their default values (height, visibility, style, user
data, etc.).
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
Row Class
Row Members
Invalidate Method
Invalidates this row, causing it to be repainted.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Invalidate()
C#
public override void Invalidate()
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
788
See Also
Reference
Row Class
Row Members
Move Method
An integer specifying the row's new position.
Moves a row to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Move( _
ByVal indexNew As Integer _
)
C#
public override void Move(
int indexNew
)
Parameters
indexNew
An integer specifying the row's new position.
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
Row Class
Row Members
789
Properties
For a list of all members of this type, see Row members.
Public Properties
Name
Description
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
(Inherited from C1.Win.C1FlexGrid.RowCol)
AllowMerging
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Bottom
Gets the position of the bottom of this row, in pixels, relative to the grid.
Caption
Gets or sets the text of the first fixed cell in the row.
ComboList
DataIndex
Gets the index of this row in the RowCollection collection, excluding fixed
and node rows.
DataMap
DataSource
DataType
Gets or sets the type of object stored in this row or column. (Inherited from
790
C1.Win.C1FlexGrid.RowCol)
EditMask
Gets or sets the input mask to use when editing cells on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Editor
Gets or sets the custom editor used to edit cells in this column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
Format
Gets or sets a string that specifies how to format the data on this column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
Grid
Height
Gets or sets the height of this row, in pixels (the value -1 represents the
default row height).
HeightDisplay
ImageAlign
ImageAlignFixed Gets or sets an ImageAlignEnum value that determines how images are
aligned in fixed cells on this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
ImageAndText
Gets or sets a value that determines whether images found in this row or
column's RowCol.ImageMap should be displayed instead of or in addition to
the cell text. (Inherited from C1.Win.C1FlexGrid.RowCol)
ImageMap
791
Index
IsCollapsed
IsNew
Indicates the row is a placeholder for adding new rows to the grid.
IsNode
IsVisible
Gets whether this row is currently visible to the user. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Item
Overloaded. Gets or sets the cell value specified by the column index in this
row.
Node
SafeIndex
Selected
Style
Gets or sets a custom CellStyle associated with this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleDisplay
Gets the style used to display this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
(Inherited from C1.Win.C1FlexGrid.RowCol)
StyleFixedDisplay Gets the style used to display fixed cells on this row or column. (Inherited
from C1.Win.C1FlexGrid.RowCol)
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
792
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary. (Inherited from C1.Win.C1FlexGrid.RowCol)
TextAlign
TextAlignFixed
Top
Gets the position of the top of this row, in pixels, relative to the grid.
UserData
Gets or sets user data associated with this row or column. (Inherited from
C1.Win.C1FlexGrid.RowCol)
Visible
Top
See Also
Reference
Row Class
C1.Win.C1FlexGrid Namespace
Bottom Property
Gets the position of the bottom of this row, in pixels, relative to the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Bottom As Integer
C#
public int Bottom {get;}
793
Remarks
The value returned corresponds to the sum of the Top and HeightDisplay properties.
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
Row Class
Row Members
Caption Property
Gets or sets the text of the first fixed cell in the row.
Syntax
Visual Basic (Declaration)
Public Property Caption As String
C#
public string Caption {get; set;}
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
Row Class
Row Members
794
DataIndex Property
Gets the index of this row in the RowCollection collection, excluding fixed and node rows.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property DataIndex As Integer
C#
public int DataIndex {get;}
Remarks
This property returns -1 if the row is a fixed or node row.
If the grid is bound to a data source, the return value can be used as an indexer into the grid's data
source to obtain a reference to the item bound to the row.
You can also obtain the underlying data object directly using the row's DataSource property.
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
Row Class
Row Members
DataSource Property
Gets the object that provides data for this row.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property DataSource As Object
795
C#
public object DataSource {get;}
Remarks
The type of object returned depends on the type of DataSource assigned to the grid. For example,
if the grid is bound to a System.Data.DataView object, then this property will return the specific
System.Data.DataRowView object that is bound to this row.
This property returns null if the grid is unbound, or if the row is a fixed or node row that doesn't
correspond to any objects in the grid's data source.
For an example, see the C1FlexGridBase.GetUnboundValue event.
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
Row Class
Row Members
Height Property
Gets or sets the height of this row, in pixels (the value -1 represents the default row height).
Syntax
Visual Basic (Declaration)
Public Property Height As Integer
C#
public int Height {get; set;}
Remarks
Setting this property to -1 causes the grid to use the default row height for this row (see the
RowColCollection.DefaultSize property).
796
Height returns the height assigned to the row even if the row is invisible, and returns -1 if the row
has the default height. To obtain the actual display height of a row, use the HeightDisplay property.
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
Row Class
Row Members
HeightDisplay Property
Gets or sets the display height for this row, in pixels.
Syntax
Visual Basic (Declaration)
Public Property HeightDisplay As Integer
C#
public int HeightDisplay {get; set;}
Remarks
HeightDisplay returns zero if the row is invisible, and returns the actual display height even if the
Height property is set to -1 (which stands for default row height).
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
797
Row Class
Row Members
Index Property
Gets the index of this row in the RowCollection collection.
Syntax
Visual Basic (Declaration)
Public Overrides ReadOnly Property Index As Integer
C#
public override int Index {get;}
Remarks
This property returns -1 if the Row is not a member of the collection.
See also the SafeIndex and DataIndex properties.
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
Row Class
Row Members
IsNew Property
Indicates the row is a placeholder for adding new rows to the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsNew As Boolean
798
C#
public bool IsNew {get;}
Remarks
This property returns true for the last row on the grid when the C1FlexGridBase.AllowAddNew
property is set to true. This is the row that has an asterisk glyph on the first fixed column.
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
Row Class
Row Members
IsNode Property
Gets or sets whether this row is a node row in an outline.
Syntax
Visual Basic (Declaration)
Public Property IsNode As Boolean
C#
public bool IsNode {get; set;}
Remarks
This property determines whether the row behaves as a node in an outline tree.
You can use IsNode to create custom outline trees, or use the grid's C1FlexGridBase.Subtotal
method to create outline trees automatically.
Requirements
799
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
Row Class
Row Members
Item Property
Gets or sets the cell value specified by the column index in this row.
Overload List
Overload
Description
Item(Int32)
Gets or sets the cell value specified by the column index in this row.
Item(String)
Gets or sets the cell value specified by the column name in this row.
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
Row Class
Row Members
Item(Int32) Property
Gets or sets the cell value specified by the column index in this row.
Syntax
Visual Basic (Declaration)
800
Parameters
columnIndex
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
Row Class
Row Members
Overload List
Item(String) Property
Gets or sets the cell value specified by the column name in this row.
Syntax
Visual Basic (Declaration)
Public Overloads Property Item( _
ByVal columnName As String _
) As Object
C#
public object Item(
string columnName
801
) {get; set;}
Parameters
columnName
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
Row Class
Row Members
Overload List
Node Property
Gets the Node object associated with this row.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Node As Node
C#
public Node Node {get;}
Remarks
If the row is a node (see the IsNode property), this property returns a Node object that can be used
to collapse or expand the node, set its level within the outline tree, etc.
If the row is not a node, this property gets the row's parent node.
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
802
See Also
Reference
Row Class
Row Members
SafeIndex Property
Gets the index of this row in the RowCollection collection.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property SafeIndex As Integer
C#
public virtual int SafeIndex {get;}
Remarks
This property is similar to the Index property, except it throws an exception if the Row is not a
member of the collection.
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
Row Class
Row Members
Selected Property
Gets or sets whether this row is selected.
Syntax
803
Remarks
Use this property to get or set the selection status for individual rows when the grid's
System.Windows.Forms.SelectionMode property is set to SelectionModeEnum.ListBox.
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
Row Class
Row Members
Top Property
Gets the position of the top of this row, in pixels, relative to the grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Top As Integer
C#
public int Top {get;}
Remarks
The value returned is the sum of row heights from the top of the grid until this row, and does not
account for the scroll position. To account for the scroll position, this value should be adjusted
using the grid's C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.ScrollPosition property.
804
To retrieve the size and position of a cell, use the C1FlexGridBase.GetCellRect method.
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
Row Class
Row Members
RowCol
Base class for grid rows and columns (Row and Column classes).
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class RowCol
C#
public abstract class RowCol
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Column
C1.Win.C1FlexGrid.Row
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
805
See Also
Reference
RowCol Members
C1.Win.C1FlexGrid Namespace
Overview
Base class for grid rows and columns (Row and Column classes).
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class RowCol
C#
public abstract class RowCol
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowCol
C1.Win.C1FlexGrid.Column
C1.Win.C1FlexGrid.Row
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
RowCol Members
C1.Win.C1FlexGrid Namespace
806
Members
Properties Methods
Public Properties
Name
Description
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
AllowMerging
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
ComboList
DataMap
DataType
EditMask
Gets or sets the input mask to use when editing cells on this column.
Editor
Gets or sets the custom editor used to edit cells in this column.
Format
Gets or sets a string that specifies how to format the data on this column.
Grid
ImageAlign
ImageAlignFixed Gets or sets an ImageAlignEnum value that determines how images are
807
Gets or sets a value that determines whether images found in this row or
column's ImageMap should be displayed instead of or in addition to the cell
text.
ImageMap
Index
IsCollapsed
IsVisible
Selected
Style
StyleDisplay
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
StyleFixedDisplay Gets the style used to display fixed cells on this row or column.
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary.
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary.
TextAlign
TextAlignFixed
808
Visible
Top
Public Methods
Name
Description
Clear
Invalidate
Move
Top
See Also
Reference
RowCol Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see RowCol members.
Public Methods
Name
Description
Clear
Invalidate
Move
809
Top
See Also
Reference
RowCol Class
C1.Win.C1FlexGrid Namespace
Clear Method
ClearFlags value specifying which elements of the row or column should be cleared.
Clears the contents of the row or column.
Syntax
Visual Basic (Declaration)
Public Overridable Sub Clear( _
ByVal clearFlags As ClearFlags _
)
C#
public virtual void Clear(
ClearFlags clearFlags
)
Parameters
clearFlags
ClearFlags value specifying which elements of the row or column should be cleared.
Remarks
Use this method to reset column properties to their default values (width, visibility, style, user
data, and so on). This method only clears the column object itself, it does not clear the
contents of the cells in the column.
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
810
See Also
Reference
RowCol Class
RowCol Members
Invalidate Method
Invalidates an individual row or column, causing it to be repainted.
Syntax
Visual Basic (Declaration)
Public MustOverride Sub Invalidate()
C#
public abstract void Invalidate()
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
RowCol Class
RowCol Members
Move Method
An integer specifying the new position.
Moves this row or column to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overridable Sub Move( _
ByVal indexNew As Integer _
811
)
C#
public virtual void Move(
int indexNew
)
Parameters
indexNew
An integer specifying the new position.
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
RowCol Class
RowCol Members
Properties
For a list of all members of this type, see RowCol members.
Public Properties
Name
Description
AllowDragging
Gets or sets whether the user can drag this row or column with the mouse.
AllowEditing
Gets or sets whether cells on this row or column can be edited by the user.
AllowMerging
AllowResizing
Gets or sets whether the user can resize this row or column with the mouse.
812
ComboList
DataMap
DataType
EditMask
Gets or sets the input mask to use when editing cells on this column.
Editor
Gets or sets the custom editor used to edit cells in this column.
Format
Gets or sets a string that specifies how to format the data on this column.
Grid
ImageAlign
ImageAlignFixed Gets or sets an ImageAlignEnum value that determines how images are
aligned in fixed cells on this row or column.
ImageAndText
Gets or sets a value that determines whether images found in this row or
column's ImageMap should be displayed instead of or in addition to the cell
text.
ImageMap
Index
IsCollapsed
IsVisible
813
Selected
Style
StyleDisplay
StyleFixed
Gets the stock CellStyle used to paint fixed cells in this row or column.
StyleFixedDisplay Gets the style used to display fixed cells on this row or column.
StyleFixedNew
Gets the custom style associated with fixed cells on this row or column,
creating a new one of necessary.
StyleNew
Gets or sets a custom CellStyle associated with this row or column, creating a
new style if necessary.
TextAlign
TextAlignFixed
UserData
Visible
Top
See Also
Reference
RowCol Class
C1.Win.C1FlexGrid Namespace
AllowDragging Property
Gets or sets whether the user can drag this row or column with the mouse.
814
Syntax
Visual Basic (Declaration)
Public Overridable Property AllowDragging As Boolean
C#
public virtual bool AllowDragging {get; set;}
Remarks
The grid object also has an C1FlexGridBase.AllowDragging property. If dragging is disabled at the
grid level, the user will not be able to drag any rows or columns.
If dragging is allowed by the grid's C1FlexGridBase.AllowDragging property, then dragging of
individual rows and columns can still be disabled by setting this property to false.
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
RowCol Class
RowCol Members
AllowEditing Property
Gets or sets whether cells on this row or column can be edited by the user.
Syntax
Visual Basic (Declaration)
Public Overridable Property AllowEditing As Boolean
C#
public virtual bool AllowEditing {get; set;}
815
Remarks
The grid object also has an C1FlexGridBase.AllowEditing property. If editing is disabled at the grid
level, the user will not be able to edit any cells.
If editing is allowed by the grid's C1FlexGridBase.AllowEditing property, then editing of individual
rows and columns can still be disabled by setting this property to false.
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
RowCol Class
RowCol Members
AllowMerging Property
Specifies whether adjacent cells with similar contents will be merged.
Syntax
Visual Basic (Declaration)
Public Overridable Property AllowMerging As Boolean
C#
public virtual bool AllowMerging {get; set;}
Remarks
Merging cells allows you to display data in a clear, appealing way because it highlights groups of
identical information. It also gives you flexibility to build tables similar to the ones you can create in
HTML or using Microsoft Word, both of which support merged cells.
To create tables with merged cells, you must set the AllowMerging property to a value other than
AllowMergingEnum.None, and then set the AllowMerging property of individual rows and columns
true for the rows and columns you wish to merge.
816
After these properties are set, the grid will automatically merge adjacent cells that have the same
contents. Whenever the cell contents change, the grid updates the merging state.
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
RowCol Class
RowCol Members
AllowResizing Property
Gets or sets whether the user can resize this row or column with the mouse.
Syntax
Visual Basic (Declaration)
Public Overridable Property AllowResizing As Boolean
C#
public virtual bool AllowResizing {get; set;}
Remarks
To resize rows or columns, the mouse must be over the fixed area of the grid, and close to a border
between rows or columns. The mouse pointer will then change into a sizing pointer and the user
can drag the row or column to change the row height or column width.
If a group of columns is selected (from first to last row) and the user resizes one of them, all
selected columns are resized. The same applies to rows.
If column sizing is allowed, users may double-click the resizing area to resize a column so it will
automatically fit the longest entry.
Rows with zero height and columns with zero width can't be resized by the user. If you want to
make them very small but still resizable, set their height or width to one pixel, not to zero.
817
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
RowCol Class
RowCol Members
ComboList Property
Gets or sets a list of items to be used by the drop-down editor.
Syntax
Visual Basic (Declaration)
Public Property ComboList As String
C#
public string ComboList {get; set;}
Remarks
The ComboList property specifies the type of editor to be used when editing a cell. You may use a
text box, drop-down list, drop-down combo, or an edit button to pop up custom editor forms.
To use the ComboList property, set the C1FlexGridBase.AllowEditing property to True, and set
the ComboList property to a string that describes the type of editing you want to use for that cell.
The options are described below:
1. To edit the cell using a regular text box, set the ComboList property to an empty string ("").
2. To edit the cell using a drop-down list, set the ComboList property to a string containing the
available options, separated by pipe characters (for example "option 1| option 2").
818
3. To edit the cell using a drop-down combo, set the ComboList property to a string containing the
available options, separated by pipe characters and starting with a pipe character (for example
"|option 1|option 2").
4. To display an edit button, set the ComboList property to a string containing an ellipsis ("..."). Edit
buttons look like regular push buttons, aligned to the right of the cell, with an ellipsis as a caption.
When the user clicks on the edit button, the grid fires the C1FlexGridBase.CellButtonClick event.
In this case, the user can't edit the cell contents directly.
5. To display an edit button next to an editable cell, set the ComboList property to a string
containing a pipe and an ellipsis ("|..."). In this case, you get a regular edit button but the user can
also edit the cell contents directly.
Note that the ComboList property has precedence over the DataMap property. Using both
properties on a single row or column is legal, but it effectively disables the DataMap.
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
RowCol Class
RowCol Members
DataMap Property
Gets or sets an System.Collections.IDictionary object used to translate data values into display
values for this row or column.
Syntax
Visual Basic (Declaration)
Public Property DataMap As IDictionary
C#
public IDictionary DataMap {get; set;}
Remarks
819
The DataMap property allows you to implement "translated" rows or columns. In translated rows or
columns, the grid does not display the values stored in the cells. Instead, it looks up those values in
the column's DataMap and displays the mapped value.
The grid also uses the DataMap value to populate drop-down lists when the column is editable.
Note that the DataMap property has no effect when the ComboList property is also set. Using both
properties on a single row or column is legal, but it effectively disables the DataMap.
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
RowCol Class
RowCol Members
DataType Property
Gets or sets the type of object stored in this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable Property DataType As Type
C#
public virtual Type DataType {get; set;}
Remarks
By default, the column's DataType property is set to System.Object, which allows you to store any
data values in the column.
If you set a row or column's DataType to a specific type, the grid will try to convert any values
assigned to cells in that column to the specified data type. If the conversion fails, the grid will fire a
C1FlexGridBase.GridError event and the cell value will not be changed.
820
The DataType property affects how values are stored internally in the grid, how they are sorted, and
the type of control that is used to edit the values in the column. For example, a
System.Windows.Forms.DateTimePicker control is used to edit values in System.DateTime columns,
and check boxes are used to display and edit values in Boolean columns.
If you want to store times (not dates) in a column, you can still use the DateTime type, but you
should use a Format that displays only the time, not the date.
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
RowCol Class
RowCol Members
EditMask Property
Gets or sets the input mask to use when editing cells on this column.
Syntax
Visual Basic (Declaration)
Public Property EditMask As String
C#
public string EditMask {get; set;}
Remarks
The grid also has an C1FlexGridBase.EditMask property that applies to the entire grid. For details
and mask syntax, refer to that property.
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
821
See Also
Reference
RowCol Class
RowCol Members
Editor Property
Example
Gets or sets the custom editor used to edit cells in this column.
Syntax
Visual Basic (Declaration)
Public Overridable Property Editor As Control
C#
public virtual Control Editor {get; set;}
Remarks
The grid provides several built-in editors that are automatically selected based on the properties of
the cell being edited.
This property allows you to use external editors when editing values in a given column. Any control
can be used as an external editor, but to achieve complete integration with the grid, the external
editor should implement the IC1EmbeddedEditor interface.
You can associate external editors with columns at design time (using the grid's Column Editor) or
at run time, by setting this property.
Example
The code below creates a C1DateEdit control and assigns it to the Editor property of a grid column.
The control will be used to edit cells on this column instead of the default
System.Windows.Forms.DateTimePicker control.
All controls in the C1Input library implement the IC1EmbeddedEditor interface and can be used as
grid editors without any extra code.
C#
822
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
RowCol Class
RowCol Members
Format Property
Gets or sets a string that specifies how to format the data on this column.
Syntax
Visual Basic (Declaration)
Public Property Format As String
C#
public string Format {get; set;}
Remarks
The Format property affects how values are formatted for display, not the values stored internally.
To retrieve the formatted value of a cell, use the C1FlexGridBase.GetDataDisplay property.
The Format string has the same semantics as the format argument in the .NET
System.String.Format(System.String,System.Object) method. For details and a complete set of
examples, see the .NET documentation.
Requirements
823
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
RowCol Class
RowCol Members
Grid Property
Gets a reference to the C1FlexGridBase control that owns this row or column.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Grid As C1FlexGridBase
C#
public C1FlexGridBase Grid {get;}
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
RowCol Class
RowCol Members
ImageAlign Property
Gets or sets an ImageAlignEnum value that determines how images are aligned in scrollable cells
on this row or column.
Syntax
824
Remarks
This property gets or sets the alignment value specified by the CellStyle object associated with the
column.
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
RowCol Class
RowCol Members
ImageAlignFixed Property
Gets or sets an ImageAlignEnum value that determines how images are aligned in fixed cells on this
row or column.
Syntax
Visual Basic (Declaration)
Public Property ImageAlignFixed As ImageAlignEnum
C#
public ImageAlignEnum ImageAlignFixed {get; set;}
Requirements
825
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
RowCol Class
RowCol Members
ImageAndText Property
Gets or sets a value that determines whether images found in this row or column's ImageMap
should be displayed instead of or in addition to the cell text.
Syntax
Visual Basic (Declaration)
Public Property ImageAndText As Boolean
C#
public bool ImageAndText {get; set;}
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
RowCol Class
RowCol Members
ImageMap Property
Gets or sets an System.Collections.IDictionary object used to translate data values into images for
this row or column.
Syntax
826
Remarks
Use this property to associate data values in this row or column with images. For example, if a
column contains country names, you can use this property to display the corresponding flags.
Use the ImageAndText property to determine whether the image is displayed instead of or in
addition to the cell text.
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
RowCol Class
RowCol Members
Index Property
Gets the index of this row or column in its parent collection.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property Index As Integer
C#
public virtual int Index {get;}
Remarks
This property returns -1 if the row or column is not a member of the collection.
827
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
RowCol Class
RowCol Members
IsCollapsed Property
Gets whether this row is collapsed.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsCollapsed As Boolean
C#
public bool IsCollapsed {get;}
Remarks
Rows are collapsed when one of their parent nodes is collapsed. Collapsed rows are not visible to
the user even if their Visible property is set to true.
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
RowCol Class
RowCol Members
828
IsVisible Property
Gets whether this row is currently visible to the user.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsVisible As Boolean
C#
public bool IsVisible {get;}
Remarks
This property returns true if the Visible property is set to true and the row is collapsed (IsCollapsed
property returns false).
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
RowCol Class
RowCol Members
Selected Property
Gets or sets whether this row or column is selected.
Syntax
Visual Basic (Declaration)
Public Overridable Property Selected As Boolean
C#
public virtual bool Selected {get; set;}
829
Remarks
Use this property to get or set the selection state for individual rows when the grid's
System.Windows.Forms.SelectionMode property is set to SelectionModeEnum.ListBox.
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
RowCol Class
RowCol Members
Style Property
Gets or sets a custom CellStyle associated with this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable Property Style As CellStyle
C#
public virtual CellStyle Style {get; set;}
Remarks
If the row or column does not have a custom style, this property returns null.
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
830
RowCol Class
RowCol Members
StyleDisplay Property
Gets the style used to display this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property StyleDisplay As CellStyle
C#
public virtual CellStyle StyleDisplay {get;}
Remarks
This property never returns null. If the row or column has a custom style, this property returns that
style. Otherwise, it returns the stock style used to display the row (e.g., Normal, Alternate, Fixed,
Frozen).
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
RowCol Class
RowCol Members
StyleFixed Property
Gets the stock CellStyle used to paint fixed cells in this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable Property StyleFixed As CellStyle
831
C#
public virtual CellStyle StyleFixed {get; set;}
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
RowCol Class
RowCol Members
StyleFixedDisplay Property
Gets the style used to display fixed cells on this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property StyleFixedDisplay As CellStyle
C#
public virtual CellStyle StyleFixedDisplay {get;}
Remarks
If the row or column has a custom style associated with its fixed cells, this property returns that
style. Otherwise, it returns the stock style used to display the column (e.g., Normal, Fixed).
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
832
RowCol Class
RowCol Members
StyleFixedNew Property
Gets the custom style associated with fixed cells on this row or column, creating a new one of
necessary.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property StyleFixedNew As CellStyle
C#
public virtual CellStyle StyleFixedNew {get;}
Remarks
If the row or column has a custom style associated with its fixed cells, this property returns that
style. Otherwise, it creates a new CellStyle, assigns it to the row or column, and returns a reference
to the new style.
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
RowCol Class
RowCol Members
StyleNew Property
Example
Gets or sets a custom CellStyle associated with this row or column, creating a new style if necessary.
Syntax
833
Remarks
This property never returns null. If this element does not have a custom style, a new one will be
created automatically and returned.
Example
The code below sets a column's background color to red.
C#
// get the style associated with column 1 (create a new one if necessary)
CellStyle cs = _flex.Cols[1].StyleNew.BackColor;
// set the new style's back color to red
cs.BackColor = Color.Red;
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
RowCol Class
RowCol Members
TextAlign Property
Gets or sets a TextAlignEnum value that determines how text is aligned in scrollable cells on this
row or column.
Syntax
Visual Basic (Declaration)
834
Remarks
This property gets or sets the alignment value specified by the CellStyle object associated with the
column.
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
RowCol Class
RowCol Members
TextAlignFixed Property
Gets or sets a TextAlignEnum value that determines how text is aligned in fixed cells on this row or
column.
Syntax
Visual Basic (Declaration)
Public Property TextAlignFixed As TextAlignEnum
C#
public TextAlignEnum TextAlignFixed {get; set;}
Remarks
This property gets or sets the alignment value specified by the CellStyle object associated with the
fixed cells in the row or column.
Requirements
835
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
RowCol Class
RowCol Members
UserData Property
Gets or sets user data associated with this row or column.
Syntax
Visual Basic (Declaration)
Public Overridable Property UserData As Object
C#
public virtual object UserData {get; set;}
Remarks
The UserData value is not used internally by the grid. It is reserved for additional data that the
application may associate with rows or columns.
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
RowCol Class
RowCol Members
Visible Property
Gets or sets whether a Row or Column is visible.
836
Syntax
Visual Basic (Declaration)
Public Overridable Property Visible As Boolean
C#
public virtual bool Visible {get; set;}
Remarks
This property returns true even if the row or column has been scrolled out of view.
To determine whether a row is currently within view, check the C1FlexGridBase.TopRow and
C1FlexGridBase.BottomRow properties.
To determine whether a column is currently within view, check the C1FlexGridBase.LeftCol and
C1FlexGridBase.RightCol properties.
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
RowCol Class
RowCol Members
RowColCollection
Base class for grid row and column collections (RowCollection and ColumnCollection classes).
Object Model
Syntax
Visual Basic (Declaration)
837
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.ColumnCollection
C1.Win.C1FlexGrid.RowCollection
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
RowColCollection Members
C1.Win.C1FlexGrid Namespace
Overview
Base class for grid row and column collections (RowCollection and ColumnCollection classes).
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class RowColCollection
C#
public abstract class RowColCollection
Inheritance Hierarchy
838
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.ColumnCollection
C1.Win.C1FlexGrid.RowCollection
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
RowColCollection Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Count
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels).
Fixed
Frozen
Grid
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
839
MinSize
Gets or sets the minimum size for rows and columns in the collection.
Top
Public Methods
Name
Description
Contains
GetNext
GetPrevious
Move
MoveRange
Top
See Also
Reference
RowColCollection Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see RowColCollection members.
Public Methods
Name
Description
Contains
GetNext
GetPrevious
840
Move
MoveRange
Top
See Also
Reference
RowColCollection Class
C1.Win.C1FlexGrid Namespace
Contains Method
Row or column items to be detected.
Determines whether the collection contains a given row or column.
Syntax
Visual Basic (Declaration)
Public Function Contains( _
ByVal item As RowCol _
) As Boolean
C#
public bool Contains(
RowCol item
)
Parameters
item
Row or column items to be detected.
Return Value
True if the row or column is a member of the collection, False otherwise.
Requirements
841
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
RowColCollection Class
RowColCollection Members
GetNext Method
Index of the original row or column.
Gets the index of the next visible row or column.
Syntax
Visual Basic (Declaration)
Public Function GetNext( _
ByVal item As Integer _
) As Integer
C#
public int GetNext(
int item
)
Parameters
item
Index of the original row or column.
Return Value
Index of the next visible row or column.
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
842
See Also
Reference
RowColCollection Class
RowColCollection Members
GetPrevious Method
Index of the original row or column.
Gets the index of the previous visible row or column.
Syntax
Visual Basic (Declaration)
Public Function GetPrevious( _
ByVal item As Integer _
) As Integer
C#
public int GetPrevious(
int item
)
Parameters
item
Index of the original row or column.
Return Value
Index of the previous visible row or column.
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
843
RowColCollection Class
RowColCollection Members
Move Method
Index of row or column to be moved.
New position.
Moves a row or column to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overridable Sub Move( _
ByVal indexOld As Integer, _
ByVal indexNew As Integer _
)
C#
public virtual void Move(
int indexOld,
int indexNew
)
Parameters
indexOld
Index of row or column to be moved.
indexNew
New position.
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
844
RowColCollection Class
RowColCollection Members
MoveRange Method
The index of the first row or column in the range to be moved.
The number of rows or columns that will be moved.
New position.
Moves a range of rows or columns to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overridable Sub MoveRange( _
ByVal index As Integer, _
ByVal count As Integer, _
ByVal indexNew As Integer _
)
C#
public virtual void MoveRange(
int index,
int count,
int indexNew
)
Parameters
index
The index of the first row or column in the range to be moved.
count
The number of rows or columns that will be moved.
indexNew
New position.
Requirements
845
See Also
Reference
RowColCollection Class
RowColCollection Members
Properties
For a list of all members of this type, see RowColCollection members.
Public Properties
Name
Description
Count
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels).
Fixed
Frozen
Grid
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
MinSize
Gets or sets the minimum size for rows and columns in the collection.
Top
See Also
Reference
RowColCollection Class
C1.Win.C1FlexGrid Namespace
846
Count Property
Gets or sets the number of rows or columns in the collection.
Syntax
Visual Basic (Declaration)
Public Overridable Property Count As Integer
C#
public virtual int Count {get; set;}
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
RowColCollection Class
RowColCollection Members
DefaultSize Property
Gets or sets the default size of the rows or columns in the collection (in pixels).
Syntax
Visual Basic (Declaration)
Public Property DefaultSize As Integer
C#
public int DefaultSize {get; set;}
Remarks
This value is set automatically when the grid's System.Windows.Forms.Control.Font property
changes.
The default size is used when the row's Height property or columns Width property is set to -1.
847
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
RowColCollection Class
RowColCollection Members
Fixed Property
Gets or sets the number of fixed rows or columns in the collection.
Syntax
Visual Basic (Declaration)
Public Overridable Property Fixed As Integer
C#
public virtual int Fixed {get; set;}
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
RowColCollection Class
RowColCollection Members
Frozen Property
Gets or sets the number of frozen rows or columns in the collection.
Syntax
848
Remarks
Use the C1FlexGridBase.AllowFreezing property to determine whether the user can freeze rows or
columns with the mouse.
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
RowColCollection Class
RowColCollection Members
Grid Property
Gets a reference to the C1FlexGridBase control that owns this collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Grid As C1FlexGridBase
C#
public C1FlexGridBase Grid {get;}
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
849
See Also
Reference
RowColCollection Class
RowColCollection Members
MaxSize Property
Gets or sets the maximum size for rows and columns in the collection.
Syntax
Visual Basic (Declaration)
Public Property MaxSize As Integer
C#
public int MaxSize {get; set;}
Remarks
The MaxSize property limits the maximum size of rows or columns when they are resized by the
user or adjusted to fit the contents with the C1FlexGridBase.AutoSizeRows or
C1FlexGridBase.AutoSizeCols method.
Setting this property to zero disables it.
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
RowColCollection Class
RowColCollection Members
MinSize Property
Gets or sets the minimum size for rows and columns in the collection.
850
Syntax
Visual Basic (Declaration)
Public Property MinSize As Integer
C#
public int MinSize {get; set;}
Remarks
The MinSize property limits the minimum size of rows or columns when they are resized by the user
or adjusted to fit the contents with the C1FlexGridBase.AutoSizeRows or
C1FlexGridBase.AutoSizeCols method.
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
RowColCollection Class
RowColCollection Members
RowColEventArgs
Provides data for the C1FlexGridBase.AfterEdit, C1FlexGridBase.AfterResizeColumn,
C1FlexGridBase.AfterResizeRow, C1FlexGridBase.BeforeEdit,
C1FlexGridBase.BeforePageBreak, C1FlexGridBase.BeforeResizeColumn,
C1FlexGridBase.BeforeResizeRow, C1FlexGridBase.ShowScrollTip,
C1FlexGridBase.CellButtonClick, C1FlexGridBase.ComboCloseUp,
C1FlexGridBase.ComboDropDown, C1FlexGridBase.SetupEditor, and C1FlexGridBase.StartEdit
events.
Object Model
Syntax
851
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RowColEventArgs
C1.Win.C1FlexGrid.ToolTipEventArgs
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
RowColEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.AfterEdit, C1FlexGridBase.AfterResizeColumn,
C1FlexGridBase.AfterResizeRow, C1FlexGridBase.BeforeEdit,
C1FlexGridBase.BeforePageBreak, C1FlexGridBase.BeforeResizeColumn,
C1FlexGridBase.BeforeResizeRow, C1FlexGridBase.ShowScrollTip,
C1FlexGridBase.CellButtonClick, C1FlexGridBase.ComboCloseUp,
C1FlexGridBase.ComboDropDown, C1FlexGridBase.SetupEditor, and C1FlexGridBase.StartEdit
events.
Object Model
Syntax
852
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RowColEventArgs
C1.Win.C1FlexGrid.ToolTipEventArgs
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
RowColEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
853
Name
Description
Cancel
Col
Row
Top
See Also
Reference
RowColEventArgs Class
C1.Win.C1FlexGrid Namespace
RowColEventArgs Constructor
Index of the row that caused the event.
Index of the column that caused the event.
Initializes a new instance of the RowColEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer _
)
C#
public RowColEventArgs(
int row,
int col
)
Parameters
row
854
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
RowColEventArgs Class
RowColEventArgs Members
Fields
For a list of all members of this type, see RowColEventArgs members.
Public Fields
Name
Description
Cancel
Col
Row
Top
See Also
Reference
RowColEventArgs Class
C1.Win.C1FlexGrid Namespace
Cancel Field
Gets or sets a value indicating whether the operation should be canceled.
855
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
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
RowColEventArgs Class
RowColEventArgs Members
Col Field
Gets the index of the column that caused the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
Remarks
This value may be set to -1 if the event was caused by a row.
Requirements
856
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
RowColEventArgs Class
RowColEventArgs Members
Row Field
Gets the index of the row that caused the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
Remarks
This value may be set to -1 if the event was caused by a column.
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
RowColEventArgs Class
RowColEventArgs Members
RowCollection
Collection of grid Row objects.
857
Object Model
Syntax
Visual Basic (Declaration)
Public Class RowCollection
Inherits RowColCollection
C#
public class RowCollection : RowColCollection
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.RowCollection
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
RowCollection Members
C1.Win.C1FlexGrid Namespace
Overview
Collection of grid Row objects.
Object Model
Syntax
858
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.RowColCollection
C1.Win.C1FlexGrid.RowCollection
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
RowCollection Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
Count
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels). (Inherited from C1.Win.C1FlexGrid.RowColCollection)
859
Fixed
Frozen
GlyphRow
Gets or sets the index of the row used to display the sorting and filtering
glyphs.
Grid
Item
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
MinSize
Gets or sets the minimum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
Selected
Top
Public Methods
Name
Description
Add
AddNode
Contains
GetNext
Gets the index of the next visible row or column. (Inherited from
C1.Win.C1FlexGrid.RowColCollection)
860
GetPrevious
Gets the index of the previous visible row or column. (Inherited from
C1.Win.C1FlexGrid.RowColCollection)
Insert
InsertNode
InsertRange
Move
MoveRange
Remove
RemoveRange
Top
See Also
Reference
RowCollection Class
C1.Win.C1FlexGrid Namespace
Methods
For a list of all members of this type, see RowCollection members.
Public Methods
Name
Description
Add
AddNode
Contains
861
Gets the index of the next visible row or column. (Inherited from
C1.Win.C1FlexGrid.RowColCollection)
GetPrevious
Gets the index of the previous visible row or column. (Inherited from
C1.Win.C1FlexGrid.RowColCollection)
Insert
InsertNode
InsertRange
Move
MoveRange
Remove
RemoveRange
Top
See Also
Reference
RowCollection Class
C1.Win.C1FlexGrid Namespace
Add Method
Appends a new Row object to the collection.
Overload List
Overload
Description
862
Add()
Add(Int32)
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
RowCollection Class
RowCollection Members
Add() Method
Appends a new Row object to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Function Add() As Row
C#
public Row Add()
Return Value
A reference to the Row that was added to the collection.
Remarks
The Add method appends a new row to the collection. To insert a row at a specific position, use the
Insert method.
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
863
See Also
Reference
RowCollection Class
RowCollection Members
Overload List
Add(Int32) Method
Number of rows to add to the collection.
Appends a given number of Row objects to the collection.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Add( _
ByVal count As Integer _
)
C#
public void Add(
int count
)
Parameters
count
Number of rows to add to the collection.
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
864
RowCollection Class
RowCollection Members
Overload List
AddNode Method
Outline level for the new node row.
Appends a new Node row to the row collection.
Syntax
Visual Basic (Declaration)
Public Function AddNode( _
ByVal level As Integer _
) As Node
C#
public Node AddNode(
int level
)
Parameters
level
Outline level for the new node row.
Return Value
A reference to the Node that was added to the collection.
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
RowCollection Class
RowCollection Members
865
Insert Method
The position where the new row will be inserted.
Adds a new Row object to the collection at a specified position.
Syntax
Visual Basic (Declaration)
Public Function Insert( _
ByVal index As Integer _
) As Row
C#
public Row Insert(
int index
)
Parameters
index
The position where the new row will be inserted.
Return Value
A reference to the Row that was added to the collection.
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
RowCollection Class
RowCollection Members
InsertNode Method
The position where the new node row will be inserted.
Outline level for the new node row.
866
Syntax
Visual Basic (Declaration)
Public Function InsertNode( _
ByVal index As Integer, _
ByVal level As Integer _
) As Node
C#
public Node InsertNode(
int index,
int level
)
Parameters
index
The position where the new node row will be inserted.
level
Outline level for the new node row.
Return Value
A reference to the Node that was added to the collection.
Remarks
This method is especially useful when the grid is bound to a data source, because in this
case you can't change the value of the IsNode property. When the grid is unbound, you
can add rows and turn them into nodes later using the IsNode property.
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
867
Reference
RowCollection Class
RowCollection Members
InsertRange Method
The position where the new range will be inserted.
The number of rows to add.
Adds a range of rows to the collection at a specified position.
Syntax
Visual Basic (Declaration)
Public Sub InsertRange( _
ByVal index As Integer, _
ByVal count As Integer _
)
C#
public void InsertRange(
int index,
int count
)
Parameters
index
The position where the new range will be inserted.
count
The number of rows to add.
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
868
Reference
RowCollection Class
RowCollection Members
Move Method
Index of row to be moved.
New position for the row.
Move a Row object to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overrides Sub Move( _
ByVal indexOld As Integer, _
ByVal indexNew As Integer _
)
C#
public override void Move(
int indexOld,
int indexNew
)
Parameters
indexOld
Index of row to be moved.
indexNew
New position for the row.
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
869
Reference
RowCollection Class
RowCollection Members
MoveRange Method
The index of the first row in the range that will be moved.
The number of rows that will be moved.
New position for the first row in the range.
Moves a range of rows to a new position in the collection.
Syntax
Visual Basic (Declaration)
Public Overrides Sub MoveRange( _
ByVal index As Integer, _
ByVal count As Integer, _
ByVal indexNew As Integer _
)
C#
public override void MoveRange(
int index,
int count,
int indexNew
)
Parameters
index
The index of the first row in the range that will be moved.
count
The number of rows that will be moved.
indexNew
New position for the first row in the range.
870
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
RowCollection Class
RowCollection Members
Remove Method
Removes a Row object from the collection.
Overload List
Overload
Description
Remove(Int32)
Remove(Row)
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
RowCollection Class
RowCollection Members
Remove(Int32) Method
The index of the row to remove from the collection.
Removes a Row object from the collection.
Syntax
871
Parameters
index
The index of the row to remove from the collection.
Return Value
A reference to the Row that was removed from the collection.
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
RowCollection Class
RowCollection Members
Overload List
Remove(Row) Method
The row to be removed.
Removes a Row object from the collection.
Syntax
Visual Basic (Declaration)
872
Parameters
row
The row to be removed.
Return Value
A reference to the Row that was removed from the collection.
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
RowCollection Class
RowCollection Members
Overload List
RemoveRange Method
The index of the first row to remove from the collection.
The number of rows to remove from the collection.
Removes a range of rows from the collection.
Syntax
Visual Basic (Declaration)
873
Parameters
index
The index of the first row to remove from the collection.
count
The number of rows to remove from the collection.
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
RowCollection Class
RowCollection Members
Properties
For a list of all members of this type, see RowCollection members.
Public Properties
Name
Description
Count
874
DefaultSize
Gets or sets the default size of the rows or columns in the collection (in
pixels). (Inherited from C1.Win.C1FlexGrid.RowColCollection)
Fixed
Frozen
GlyphRow
Gets or sets the index of the row used to display the sorting and filtering
glyphs.
Grid
Item
MaxSize
Gets or sets the maximum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
MinSize
Gets or sets the minimum size for rows and columns in the collection.
(Inherited from C1.Win.C1FlexGrid.RowColCollection)
Selected
Top
See Also
Reference
RowCollection Class
C1.Win.C1FlexGrid Namespace
Count Property
Gets or sets the number of rows in the collection.
Syntax
875
Remarks
You can add or remove rows by assigning a new value to this property, or you can use the Add,
Insert, InsertRange, and Remove(Int32) methods.
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
RowCollection Class
RowCollection Members
Fixed Property
Gets or sets the number of fixed rows in the collection.
Syntax
Visual Basic (Declaration)
Public Overrides Property Fixed As Integer
C#
public override int Fixed {get; set;}
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
876
See Also
Reference
RowCollection Class
RowCollection Members
GlyphRow Property
Gets or sets the index of the row used to display the sorting and filtering glyphs.
Syntax
Visual Basic (Declaration)
Public Property GlyphRow As Integer
C#
public int GlyphRow {get; set;}
Remarks
The default value is -1, which causes the sorting and filtering glyphs to be shown on the last fixed
row. If you set this property to a value larger than the number of fixed rows, then the glyphs will not
be displayed.
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
RowCollection Class
RowCollection Members
Item Property
Gets the Row at the specified index.
Syntax
877
Parameters
index
Remarks
Use the Row object returned by this method to set attributes such as row height, visibility,
style, selected state, and so on.
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
RowCollection Class
RowCollection Members
Selected Property
Example
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Selected As RowCollection
878
C#
public RowCollection Selected {get;}
Remarks
This property is especially useful when the grid's C1FlexGridBase.SelectionMode property is set to
SelectionModeEnum.ListBox.
Example
The code below removes all selected rows from the grid.
Note that foreach loops can't be used to modify the collections being iterated over. This example
works because the Selected collection is being enumerated while the C1FlexGridBase.Rows
collection is being modified.
C#
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
RowCollection Class
RowCollection Members
SortColEventArgs
Provides data for the C1FlexGridBase.BeforeSort and C1FlexGridBase.AfterSort events.
Object Model
879
Syntax
Visual Basic (Declaration)
Public Class SortColEventArgs
Inherits System.EventArgs
C#
public class SortColEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.SortColEventArgs
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
SortColEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.BeforeSort and C1FlexGridBase.AfterSort events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class SortColEventArgs
880
Inherits System.EventArgs
C#
public class SortColEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.SortColEventArgs
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
SortColEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
881
Cancel
Col
Handled
Gets or sets a value indicating whether the drag operation has been handled
by the event handler.
Order
Top
See Also
Reference
SortColEventArgs Class
C1.Win.C1FlexGrid Namespace
SortColEventArgs Constructor
The column that is being sorted.
SortFlags value that determines the sorting order.
Initializes a new instance of the SortColEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal col As Integer, _
ByVal order As SortFlags _
)
C#
public SortColEventArgs(
int col,
SortFlags order
)
882
Parameters
col
The column that is being sorted.
order
SortFlags value that determines the sorting order.
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
SortColEventArgs Class
SortColEventArgs Members
Fields
For a list of all members of this type, see SortColEventArgs members.
Public Fields
Name
Description
Cancel
Col
Handled
Gets or sets a value indicating whether the drag operation has been handled
by the event handler.
Order
Top
See Also
883
Reference
SortColEventArgs Class
C1.Win.C1FlexGrid Namespace
Cancel Field
Gets or sets a value indicating whether the drag operation should be canceled.
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
Remarks
Setting this parameter to true cancels the built-in sort operation and leaves the sorting glyph
unchanged.
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
SortColEventArgs Class
SortColEventArgs Members
Col Field
Gets the column that is being sorted.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
884
C#
public readonly int Col
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
SortColEventArgs Class
SortColEventArgs Members
Handled Field
Gets or sets a value indicating whether the drag operation has been handled by the event handler.
Syntax
Visual Basic (Declaration)
Public Handled As Boolean
C#
public bool Handled
Remarks
Setting this parameter to true cancels the built-in sort but updates the sorting glyph as if the sort
had been performed. This is useful when the event handler performs custom sorting.
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
885
SortColEventArgs Class
SortColEventArgs Members
Order Field
Gets or sets a SortFlags value that determines the sorting order.
Syntax
Visual Basic (Declaration)
Public Order As SortFlags
C#
public SortFlags Order
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
SortColEventArgs Class
SortColEventArgs Members
SubtotalEventArgs
Provides data for the C1FlexGridBase.BeforeSubtotal and C1FlexGridBase.AfterSubtotal events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class SubtotalEventArgs
Inherits System.EventArgs
886
C#
public class SubtotalEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.SubtotalEventArgs
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
SubtotalEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.BeforeSubtotal and C1FlexGridBase.AfterSubtotal events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class SubtotalEventArgs
Inherits System.EventArgs
C#
public class SubtotalEventArgs : System.EventArgs
Inheritance Hierarchy
887
System.Object
System.EventArgs
C1.Win.C1FlexGrid.SubtotalEventArgs
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
SubtotalEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
AggregateValue
Bottom
Cancel
Caption
888
Function
GroupFrom
Gets the index of the first column in the range used to detect group breaks.
GroupTo
Gets the index of the last column in the range used to detect group breaks.
IsNewRow
Gets a value that determines whether the subtotal row is a new row or the
subtotal is being added to an existing subtotal row.
Level
NewRowIndex
Style
Top
TotalOn
Gets the index of the column that contains values being aggregated.
Top
See Also
Reference
SubtotalEventArgs Class
C1.Win.C1FlexGrid Namespace
SubtotalEventArgs Constructor
AggregateEnum value that specifies the type of aggregate to calculate.
Outline level to assign to the new subtotal rows. This parameter allows the creation of multi-level
subtotals and affects the display of the outline tree.
First column in the range used to detect group breaks.
Last column in the range used to detect group breaks.
Column that contains values being aggregated.
889
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal function As AggregateEnum, _
ByVal level As Integer, _
ByVal groupFrom As Integer, _
ByVal groupTo As Integer, _
ByVal totalOn As Integer, _
ByVal caption As String, _
ByVal newRowIndex As Integer, _
ByVal isNewRow As Boolean, _
ByVal top As Integer, _
ByVal bottom As Integer, _
ByVal aggregateValue As Object, _
ByVal style As CellStyle _
)
C#
public SubtotalEventArgs(
AggregateEnum function,
int level,
int groupFrom,
int groupTo,
int totalOn,
890
string caption,
int newRowIndex,
bool isNewRow,
int top,
int bottom,
object aggregateValue,
CellStyle style
)
Parameters
function
AggregateEnum value that specifies the type of aggregate to calculate.
level
Outline level to assign to the new subtotal rows. This parameter allows the creation of
multi-level subtotals and affects the display of the outline tree.
groupFrom
First column in the range used to detect group breaks.
groupTo
Last column in the range used to detect group breaks.
totalOn
Column that contains values being aggregated.
caption
Text to insert in the new subtotal row.
newRowIndex
Index of the new subtotal row.
isNewRow
Whether the subtotal row is a new row or the subtotal is being added to an existing
subtotal row.
top
Index of the top row in the group.
891
bottom
Index of the bottom row in the group.
aggregateValue
Calculated aggregate value for the group.
style
CellStyle to be applied to the new subotal row.
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Fields
For a list of all members of this type, see SubtotalEventArgs members.
Public Fields
Name
Description
AggregateValue
Bottom
Cancel
892
Caption
Function
GroupFrom
Gets the index of the first column in the range used to detect group breaks.
GroupTo
Gets the index of the last column in the range used to detect group breaks.
IsNewRow
Gets a value that determines whether the subtotal row is a new row or the
subtotal is being added to an existing subtotal row.
Level
NewRowIndex
Style
Top
TotalOn
Gets the index of the column that contains values being aggregated.
Top
See Also
Reference
SubtotalEventArgs Class
C1.Win.C1FlexGrid Namespace
AggregateValue Field
Gets or sets the calculated aggregate value for the group.
Syntax
Visual Basic (Declaration)
Public AggregateValue As Object
893
C#
public object AggregateValue
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Bottom Field
Gets the index of the bottom row in the group.
Syntax
Visual Basic (Declaration)
Public ReadOnly Bottom As Integer
C#
public readonly int Bottom
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Cancel Field
Whether to cancel the creation of the new subtotal row.
894
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Caption Field
Gets or sets the text to insert in the new subtotal row.
Syntax
Visual Basic (Declaration)
Public Caption As String
C#
public string Caption
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
895
Reference
SubtotalEventArgs Class
SubtotalEventArgs Members
Function Field
Gets the AggregateEnum value that specifies the type of aggregate to calculate..
Syntax
Visual Basic (Declaration)
Public ReadOnly Function As AggregateEnum
C#
public readonly AggregateEnum Function
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
SubtotalEventArgs Class
SubtotalEventArgs Members
GroupFrom Field
Gets the index of the first column in the range used to detect group breaks.
Syntax
Visual Basic (Declaration)
Public ReadOnly GroupFrom As Integer
C#
public readonly int GroupFrom
Requirements
896
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
SubtotalEventArgs Class
SubtotalEventArgs Members
GroupTo Field
Gets the index of the last column in the range used to detect group breaks.
Syntax
Visual Basic (Declaration)
Public ReadOnly GroupTo As Integer
C#
public readonly int GroupTo
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
SubtotalEventArgs Class
SubtotalEventArgs Members
IsNewRow Field
Gets a value that determines whether the subtotal row is a new row or the subtotal is being added
to an existing subtotal row.
Syntax
897
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Level Field
Outline level to assign to the new subtotal rows.
Syntax
Visual Basic (Declaration)
Public ReadOnly Level As Integer
C#
public readonly int Level
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
898
SubtotalEventArgs Class
SubtotalEventArgs Members
NewRowIndex Field
Gets the index of the new subtotal row.
Syntax
Visual Basic (Declaration)
Public ReadOnly NewRowIndex As Integer
C#
public readonly int NewRowIndex
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Style Field
Gets or sets the CellStyle to be applied to the new subotal row.
Syntax
Visual Basic (Declaration)
Public Style As CellStyle
C#
public CellStyle Style
Requirements
899
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
SubtotalEventArgs Class
SubtotalEventArgs Members
Top Field
Gets the index of the top row in the group.
Syntax
Visual Basic (Declaration)
Public ReadOnly Top As Integer
C#
public readonly int Top
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
SubtotalEventArgs Class
SubtotalEventArgs Members
TotalOn Field
Gets the index of the column that contains values being aggregated.
Syntax
Visual Basic (Declaration)
900
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
SubtotalEventArgs Class
SubtotalEventArgs Members
ToolTipEventArgs
Provides data for the C1FlexGridBase.ShowScrollTip event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ToolTipEventArgs
Inherits RowColEventArgs
C#
public class ToolTipEventArgs : RowColEventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RowColEventArgs
C1.Win.C1FlexGrid.ToolTipEventArgs
901
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
ToolTipEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.ShowScrollTip event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ToolTipEventArgs
Inherits RowColEventArgs
C#
public class ToolTipEventArgs : RowColEventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RowColEventArgs
C1.Win.C1FlexGrid.ToolTipEventArgs
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
902
See Also
Reference
ToolTipEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
Cancel
Col
Gets the index of the column that caused the event. (Inherited from
C1.Win.C1FlexGrid.RowColEventArgs)
Row
Gets the index of the row that caused the event. (Inherited from
C1.Win.C1FlexGrid.RowColEventArgs)
ToolTipText
Top
See Also
Reference
903
ToolTipEventArgs Class
C1.Win.C1FlexGrid Namespace
ToolTipEventArgs Constructor
Index of the row that caused the event.
Index of the column that caused the event.
Text to display in the ToolTip
Initializes a new instance of the ToolTipEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal toolTipText As String _
)
C#
public ToolTipEventArgs(
int row,
int col,
string toolTipText
)
Parameters
row
Index of the row that caused the event.
col
Index of the column that caused the event.
toolTipText
Text to display in the ToolTip
Requirements
904
See Also
Reference
ToolTipEventArgs Class
ToolTipEventArgs Members
Fields
For a list of all members of this type, see ToolTipEventArgs members.
Public Fields
Name
Description
Cancel
Col
Gets the index of the column that caused the event. (Inherited from
C1.Win.C1FlexGrid.RowColEventArgs)
Row
Gets the index of the row that caused the event. (Inherited from
C1.Win.C1FlexGrid.RowColEventArgs)
ToolTipText
Top
See Also
Reference
ToolTipEventArgs Class
C1.Win.C1FlexGrid Namespace
ToolTipText Field
Gets or sets the text to be displayed in the tooltip.
Syntax
905
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
ToolTipEventArgs Class
ToolTipEventArgs Members
UnboundValueEventArgs
Provides data for the C1FlexGridBase.GetUnboundValue and C1FlexGridBase.SetUnboundValue
events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class UnboundValueEventArgs
Inherits System.EventArgs
C#
public class UnboundValueEventArgs : System.EventArgs
Inheritance Hierarchy
906
System.Object
System.EventArgs
C1.Win.C1FlexGrid.UnboundValueEventArgs
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
UnboundValueEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.GetUnboundValue and C1FlexGridBase.SetUnboundValue
events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class UnboundValueEventArgs
Inherits System.EventArgs
C#
public class UnboundValueEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.UnboundValueEventArgs
Requirements
907
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
UnboundValueEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
Col
Gets the column index for the cell that has an unbound value.
Row
Gets the row index for the cell that has an unbound value.
Value
Gets or sets the unbound value that should be displayed in the cell.
Top
See Also
Reference
908
UnboundValueEventArgs Class
C1.Win.C1FlexGrid Namespace
UnboundValueEventArgs Constructor
Row index for the cell that has an unbound value.
Column index for the cell that has an unbound value.
Unbound value that should be displayed in the cell.
Initializes a new instance of the UnboundValueEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal value As Object _
)
C#
public UnboundValueEventArgs(
int row,
int col,
object value
)
Parameters
row
Row index for the cell that has an unbound value.
col
Column index for the cell that has an unbound value.
value
Unbound value that should be displayed in the cell.
Requirements
909
See Also
Reference
UnboundValueEventArgs Class
UnboundValueEventArgs Members
Fields
For a list of all members of this type, see UnboundValueEventArgs members.
Public Fields
Name
Description
Col
Gets the column index for the cell that has an unbound value.
Row
Gets the row index for the cell that has an unbound value.
Value
Gets or sets the unbound value that should be displayed in the cell.
Top
See Also
Reference
UnboundValueEventArgs Class
C1.Win.C1FlexGrid Namespace
Col Field
Gets the column index for the cell that has an unbound value.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
910
C#
public readonly int Col
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
UnboundValueEventArgs Class
UnboundValueEventArgs Members
Row Field
Gets the row index for the cell that has an unbound value.
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
UnboundValueEventArgs Class
UnboundValueEventArgs Members
Value Field
Gets or sets the unbound value that should be displayed in the cell.
911
Syntax
Visual Basic (Declaration)
Public Value As Object
C#
public object Value
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
UnboundValueEventArgs Class
UnboundValueEventArgs Members
ValidateEditEventArgs
Provides data for the C1FlexGridBase.ValidateEdit event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ValidateEditEventArgs
Inherits System.EventArgs
C#
public class ValidateEditEventArgs : System.EventArgs
Inheritance Hierarchy
912
System.Object
System.EventArgs
C1.Win.C1FlexGrid.ValidateEditEventArgs
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
ValidateEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Overview
Provides data for the C1FlexGridBase.ValidateEdit event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ValidateEditEventArgs
Inherits System.EventArgs
C#
public class ValidateEditEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1FlexGrid.ValidateEditEventArgs
Requirements
913
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
ValidateEditEventArgs Members
C1.Win.C1FlexGrid Namespace
Members
Fields
Public Constructors
Name
Description
Public Fields
Name
Description
Cancel
Checkbox
If the cell contains a checkbox, the new checkbox state about to be applied
to the cell.
Col
Row
Top
914
See Also
Reference
ValidateEditEventArgs Class
C1.Win.C1FlexGrid Namespace
ValidateEditEventArgs Constructor
The row index of the cell being edited.
The column index of the cell being edited.
The new checkbox state about to be applied to the cell, if any.
Initializes a new instance of the ValidateEditEventArgs class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal check As CheckEnum _
)
C#
public ValidateEditEventArgs(
int row,
int col,
CheckEnum check
)
Parameters
row
The row index of the cell being edited.
col
The column index of the cell being edited.
check
915
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
ValidateEditEventArgs Class
ValidateEditEventArgs Members
Fields
For a list of all members of this type, see ValidateEditEventArgs members.
Public Fields
Name
Description
Cancel
Checkbox
If the cell contains a checkbox, the new checkbox state about to be applied
to the cell.
Col
Row
Top
See Also
Reference
ValidateEditEventArgs Class
C1.Win.C1FlexGrid Namespace
916
Cancel Field
Gets or sets a value indicating whether the edit operation should be canceled.
Syntax
Visual Basic (Declaration)
Public Cancel As Boolean
C#
public bool Cancel
Remarks
If this parameter is set to true, the edits are considered invalid. The editor will remain open and the
current cell selected until the user provides a valid entry or cancels the edit operation by pressing
the ESC key.
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
ValidateEditEventArgs Class
ValidateEditEventArgs Members
Checkbox Field
If the cell contains a checkbox, the new checkbox state about to be applied to the cell.
Syntax
Visual Basic (Declaration)
Public ReadOnly Checkbox As CheckEnum
C#
public readonly CheckEnum Checkbox
917
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
ValidateEditEventArgs Class
ValidateEditEventArgs Members
Col Field
Gets the column index of the cell being edited.
Syntax
Visual Basic (Declaration)
Public ReadOnly Col As Integer
C#
public readonly int Col
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
ValidateEditEventArgs Class
ValidateEditEventArgs Members
Row Field
Gets the row index of the cell being edited.
Syntax
918
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
ValidateEditEventArgs Class
ValidateEditEventArgs Members
ValueFilter
Represents a filter based on a set of values.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ValueFilter
Implements IC1ColumnFilter
C#
public class ValueFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ValueFilter
919
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
ValueFilter Members
C1.Win.C1FlexGrid Namespace
Overview
Represents a filter based on a set of values.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ValueFilter
Implements IC1ColumnFilter
C#
public class ValueFilter : IC1ColumnFilter
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.ValueFilter
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
920
Reference
ValueFilter Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Constructors
Name
Description
ValueFilter Constructor
Top
Public Properties
Name
Description
IsActive
ShowValues
Gets or sets an array with the values that should be included in the output.
Top
Public Methods
Name
Description
Apply
GetEditor
Reset
Top
See Also
921
Reference
ValueFilter Class
C1.Win.C1FlexGrid Namespace
ValueFilter Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public ValueFilter()
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
ValueFilter Class
ValueFilter Members
Methods
For a list of all members of this type, see ValueFilter members.
Public Methods
Name
Description
Apply
GetEditor
Reset
Top
922
See Also
Reference
ValueFilter Class
C1.Win.C1FlexGrid Namespace
Apply Method
Value to be filtered.
Applies the filter to a value.
Syntax
Visual Basic (Declaration)
Public Function Apply( _
ByVal value As Object _
) As Boolean
C#
public bool Apply(
object value
)
Parameters
value
Value to be filtered.
Return Value
True if the value satisfies the filter; False otherwise.
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
923
ValueFilter Class
ValueFilter Members
GetEditor Method
Gets the editor used to modify the filter at run time.
Syntax
Visual Basic (Declaration)
Public Function GetEditor() As IC1ColumnFilterEditor
C#
public IC1ColumnFilterEditor GetEditor()
Return Value
A IC1ColumnFilterEditor that is used to edit the filter at run time.
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
ValueFilter Class
ValueFilter Members
Reset Method
Resets the filter making it inactive.
Syntax
Visual Basic (Declaration)
Public Sub Reset()
C#
924
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
ValueFilter Class
ValueFilter Members
Properties
For a list of all members of this type, see ValueFilter members.
Public Properties
Name
Description
IsActive
ShowValues
Gets or sets an array with the values that should be included in the output.
Top
See Also
Reference
ValueFilter Class
C1.Win.C1FlexGrid Namespace
IsActive Property
Gets or sets a value that determines whether the filter is active.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsActive As Boolean
925
C#
public bool IsActive {get;}
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
ValueFilter Class
ValueFilter Members
ShowValues Property
Gets or sets an array with the values that should be included in the output.
Syntax
Visual Basic (Declaration)
Public Property ShowValues As Object()
C#
public object[] ShowValues {get; set;}
Remarks
Setting this property to null causes the filter to include all values in the output.
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
926
ValueFilter Class
ValueFilter Members
Enumerations
AggregateEnum
Specifies the type of aggregate function to calculate with the C1FlexGridBase.Aggregate and
C1FlexGridBase.Subtotal methods.
Syntax
Visual Basic (Declaration)
Public Enum AggregateEnum
Inherits System.Enum
C#
public enum AggregateEnum : System.Enum
Members
Member
Description
Average
Clear
Count
Max
Min
None
927
Percent
Std
Returns the sample standard deviation of the values in a range (uses the
formula based on n-1).
StdPop
Returns the population standard deviation of the values in a range (uses the
formula based on n).
Sum
Var
Returns the sample variance of the values in a range (uses the formula based
on n-1).
VarPop
Returns the population variance of the values in a range (uses the formula
based on n).
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AggregateEnum
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
C1.Win.C1FlexGrid Namespace
928
AggregateFlags
Specifies options to use when calculating aggregates with the C1FlexGridBase.Aggregate method.
Syntax
Visual Basic (Declaration)
Public Enum AggregateFlags
Inherits System.Enum
C#
public enum AggregateFlags : System.Enum
Members
Member
Description
AggregateBooleans
Calculate aggregates for Boolean values. This flag causes the value True to
be interpreted as one, and False as zero. This option is useful for counting
the number of checked check boxes in a range.
AggregateDates
ExcludeHiddenRows
ExcludeNodes
Exclude node rows from aggregate. This option is useful when the grid
contains subtotal rows, which are marked as nodes and contain values that
are subtotals and should thus be excluded from aggregates.
None
Default setting. Include all rows and use numerical values only.
Inheritance Hierarchy
929
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AggregateFlags
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
C1.Win.C1FlexGrid Namespace
AllowDraggingEnum
Specifies whether the user should be able to drag rows and columns with the mouse.
Syntax
Visual Basic (Declaration)
Public Enum AllowDraggingEnum
Inherits System.Enum
C#
public enum AllowDraggingEnum : System.Enum
Members
Member
Description
Both
The user may drag rows and columns with the mouse.
Columns
None
930
Rows
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowDraggingEnum
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
C1.Win.C1FlexGrid Namespace
AllowFiltering
Specifies the type of filter to be used for a Column.
Syntax
Visual Basic (Declaration)
Public Enum AllowFiltering
Inherits System.Enum
C#
public enum AllowFiltering : System.Enum
Members
Member
Description
ByCondition
931
ByValue
Custom
Default
None
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowFiltering
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
C1.Win.C1FlexGrid Namespace
AllowFreezingEnum
Specifies whether the user should be able to freeze rows and columns with the mouse.
Syntax
Visual Basic (Declaration)
Public Enum AllowFreezingEnum
Inherits System.Enum
C#
public enum AllowFreezingEnum : System.Enum
Members
932
Member
Description
Both
The user may freeze rows and columns by dragging the frozen region
boundaries with the mouse.
Columns
The user may freeze columns by dragging the frozen region vertical boundary
with the mouse.
None
Rows
The user may freeze rows by dragging the frozen region horizontal boundary
with the mouse.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowFreezingEnum
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
C1.Win.C1FlexGrid Namespace
AllowMergingEnum
Specifies how adjacent cells are merged for display.
Syntax
Visual Basic (Declaration)
Public Enum AllowMergingEnum
933
Inherits System.Enum
C#
public enum AllowMergingEnum : System.Enum
Members
Member
Description
Custom
Default
FixedOnly
Merge only fixed cells. This setting is useful for setting up complex headers for
the data and preventing the data itself from being merged.
Free
Nodes
Allow long entries in node rows to spill into empty adjacent cells.
None
RestrictAll
Merge cells only if cells above or to the left are also merged.
RestrictCols
RestrictRows
Spill
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowMergingEnum
Requirements
934
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
C1.Win.C1FlexGrid Namespace
AllowResizingEnum
Specifies whether the user should be able to resize rows and columns with the mouse.
Syntax
Visual Basic (Declaration)
Public Enum AllowResizingEnum
Inherits System.Enum
C#
public enum AllowResizingEnum : System.Enum
Members
Member
Description
Both
The user may resize rows and columns with the mouse.
BothUniform
The user may change the default column width or row height with the mouse.
Columns
The user may resize columns with the mouse by dragging the edge of the
column headers. Double-clicking the edge of a column header automatically
sizes the column to fit the widest entry.
ColumnsUniform The user may change the default column width with the mouse. Resizing any
column will resize all columns that don't have a specific width assigned to
them.
935
None
Rows
The user may resize rows with the mouse by dragging the edge of the row
headers. Double-clicking the edge of a row header automatically sizes the row
to fit the tallest entry.
RowsUniform
The user may change the default row height with the mouse. Resizing any row
will resize all rows that don't have a specific height assigned to them.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowResizingEnum
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
C1.Win.C1FlexGrid Namespace
AllowSortingEnum
Specifies whether the user should be able to sort columns with the mouse.
Syntax
Visual Basic (Declaration)
Public Enum AllowSortingEnum
Inherits System.Enum
C#
public enum AllowSortingEnum : System.Enum
936
Members
Member
Description
MultiColumn
The user may sort a range of columns by clicking on the header cell of the
rightmost column in the range.
None
SingleColumn
The user may sort single columns by clicking on its header cell.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AllowSortingEnum
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
C1.Win.C1FlexGrid Namespace
AutoSearchEnum
Specifies where the grid should start searching for cells when using the
C1FlexGridBase.AutoSearch property.
Syntax
Visual Basic (Declaration)
Public Enum AutoSearchEnum
Inherits System.Enum
937
C#
public enum AutoSearchEnum : System.Enum
Members
Member
Description
FromCursor
FromTop
None
No auto-searching.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AutoSearchEnum
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
C1.Win.C1FlexGrid Namespace
AutoSizeFlags
Specifies options that control auto-sizing.
Syntax
Visual Basic (Declaration)
Public Enum AutoSizeFlags
938
Inherits System.Enum
C#
public enum AutoSizeFlags : System.Enum
Members
Member
Description
IgnoreHidden
IgnoreMerged
None
Default behavior.
SameSize
All rows (or columns) in the range are set to the same size.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.AutoSizeFlags
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
C1.Win.C1FlexGrid Namespace
BorderDirEnum
Specifies the direction of cell borders.
Syntax
939
Members
Member
Description
Both
Horizontal
Vertical
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.BorderDirEnum
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
C1.Win.C1FlexGrid Namespace
BorderStyleEnum
Specifies the type of cell border to display.
Syntax
940
Members
Member
Description
Dotted
Dotted border.
Double
Double border.
Fillet
Fillet border.
Flat
Groove
Groove border.
Inset
Inset border.
None
No border.
Raised
Raised border.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.BorderStyleEnum
Requirements
941
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
C1.Win.C1FlexGrid Namespace
C1FlexGridRenderer.CellType
Represents the type of cell being rendered.
Syntax
Visual Basic (Declaration)
Public Enum C1FlexGridRenderer.CellType
Inherits System.Enum
C#
public enum C1FlexGridRenderer.CellType : System.Enum
Members
Member
Description
ColumnHeader
ColumnHeaderHot
ColumnHeaderSelected
Highlight
942
Normal
RowHeader
RowHeaderHot
RowHeaderSelected
RowHeaderSelectedHot
TopLeft
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.C1FlexGridRenderer.CellType
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
C1.Win.C1FlexGrid Namespace
CellStyleEnum
Example Example
Syntax
Visual Basic (Declaration)
Public Enum CellStyleEnum
943
Inherits System.Enum
C#
public enum CellStyleEnum : System.Enum
Members
Member
Description
Alternate
Editor
EmptyArea
Style used to render the area of the grid where there are no cells.
FilterEditor
FirstCustomStyle
Fixed
Focus
Frozen
Style used to render cells that are frozen (editable and selectable, but not
scrollable).
GrandTotal
Highlight
NewRow
Style used to render the last row on the grid when the
C1FlexGridBase.AllowAddNew property is set to true.
Normal
944
Search
Style used to render cells that are being selected as the user types (see
the C1FlexGridBase.AutoSearch property).
Subtotal0
Subtotal1
Subtotal2
Subtotal3
Subtotal4
Subtotal5
Remarks
Cell styles can be retrieved from the C1FlexGridBase.Styles collection using the indexer or the style
name. Built-in styles can also be obtained directly through read-only properties.
Example
The code below shows three ways to obtain a reference to a grid's default style:
C#
// s1, s2, and s3 are all references to the grid's Normal style:
CellStyle s1 = _flex.Styles[CellStyleEnum.Normal];
CellStyle s2 = _flex.Styles["Normal"];
945
CellStyle s3 = _flex.Styles.Normal;
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.CellStyleEnum
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
C1.Win.C1FlexGrid Namespace
CheckEnum
Specifies the type of checkbox to draw in a cell.
Syntax
Visual Basic (Declaration)
Public Enum CheckEnum
Inherits System.Enum
C#
public enum CheckEnum : System.Enum
Members
Member
Description
Checked
Grayed
946
None
No check box.
TSChecked
TSGrayed
TSUnchecked
Unchecked
Remarks
There are two types of check boxes: regular and tri-state.
Regular check boxes are used to display simple Boolean values. They cycle through settings
Checked and Unchecked when clicked with the mouse.
Tri-state check boxes are used to display values that may be true, false, or indeterminate (grayed).
They cycle through settings TSChecked, TSGrayed, and TSUnchecked when clicked with the
mouse.
Visually, Checked and Unchecked look the same as TSChecked and TSUnchecked.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.CheckEnum
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
C1.Win.C1FlexGrid Namespace
947
ClearFlags
Specifies which elements of the grid should be cleared by the C1FlexGridBase.Clear method.
Syntax
Visual Basic (Declaration)
Public Enum ClearFlags
Inherits System.Enum
C#
public enum ClearFlags : System.Enum
Members
Member
Description
All
Content
Clear cell content, including data, images, and check boxes if any.
Style
UserData
Remarks
This enumeration contains flags that can be combined to customize the sorting process.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ClearFlags
Requirements
948
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
C1.Win.C1FlexGrid Namespace
ClipboardCopyModeEnum
Specifies what parts of the grid should be copied to the clipboard when the
C1FlexGridBase.AutoClipboard property is set to true.
Syntax
Visual Basic (Declaration)
Public Enum ClipboardCopyModeEnum
Inherits System.Enum
C#
public enum ClipboardCopyModeEnum : System.Enum
Members
Member
Description
DataAndAllHeaders
Copy the selected data and include row and column headers.
DataAndColumnHeaders Copy the selected data and include the column headers.
DataAndRowHeaders
DataOnly
Disabled
Inheritance Hierarchy
949
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ClipboardCopyModeEnum
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
C1.Win.C1FlexGrid Namespace
ConditionOperator
Represents operators used in filter conditions.
Syntax
Visual Basic (Declaration)
Public Enum ConditionOperator
Inherits System.Enum
C#
public enum ConditionOperator : System.Enum
Members
Member
Description
BeginsWith
Return true if the string representation of the value begins with the
operator parameter.
Contains
Return true if the string representation of the value contains the operator
parameter.
950
DoesNotContain
Return true if the string representation of the value does not contain the
operator parameter.
EndsWith
Return true if the string representation of the value ends with the
operator parameter.
Equals
GreaterThan
GreaterThanOrEqualTo Return true if the value is greater than or equal to the operator
parameter.
LessThan
LessThanOrEqualTo
Return true if the value is less than or equal to the operator parameter.
None
NotEquals
Return true if the value does not equal the operator parameter.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ConditionOperator
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
C1.Win.C1FlexGrid Namespace
951
DisplayEnum
Specifies whether a style should display the cell text, image, both, or none.
Syntax
Visual Basic (Declaration)
Public Enum DisplayEnum
Inherits System.Enum
C#
public enum DisplayEnum : System.Enum
Members
Member
Description
ImageOnly
None
Overlay
Stack
TextOnly
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.DisplayEnum
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
952
See Also
Reference
C1.Win.C1FlexGrid Namespace
DragModeEnum
Specifies the behavior of the control as an OLE drag-drop source.
Syntax
Visual Basic (Declaration)
Public Enum DragModeEnum
Inherits System.Enum
C#
public enum DragModeEnum : System.Enum
Members
Member
Description
Automatic
The control provides automatic dragging of data. If the mouse hovers near the
edges of the selected range, the cursor will change and allow the user to move or
copy data (pressing the CTRL key to copy).
AutomaticCo Same as Automatic, except the data is always copied (never moved).
py
AutomaticM Same as Automatic, except the data is always moved (never copied).
ove
Manual
The control does not provide any drag support. The caller can still initiate drag-drop
operations using the
System.Windows.Forms.Control.DoDragDrop(System.Object,System.Windows.Forms
.DragDropEffects) method.
Inheritance Hierarchy
953
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.DragModeEnum
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
C1.Win.C1FlexGrid Namespace
DrawCellFlags
Specifies which elements of the cell should be drawn by the grid.
Syntax
Visual Basic (Declaration)
Public Enum DrawCellFlags
Inherits System.Enum
C#
public enum DrawCellFlags : System.Enum
Members
Member
Description
All
Background
Border
954
Content
Remarks
This enumeration is used when rendering owner-drawn cells.
If you set the System.Windows.Forms.DrawMode property to DrawModeEnum.OwnerDraw, the grid
will fire the C1FlexGridBase.OwnerDrawCell event to allow custom cell drawing.
The OwnerDrawCellEventArgs parameter passed to the event handler has a
OwnerDrawCellEventArgs.DrawCell method that allows you to use the standard drawing routines
for rendering parts of the cell. For example, you can paint a custom background and use the
standard drawing routines for the cell borders and content.
See the C1FlexGridBase.OwnerDrawCell event for an example.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.DrawCellFlags
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
C1.Win.C1FlexGrid Namespace
DrawModeEnum
Specifies whether cells should be drawn entirely by the grid or with help from custom drawing
code.
Syntax
Visual Basic (Declaration)
955
Members
Member
Description
Normal
OwnerDraw
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.DrawModeEnum
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
C1.Win.C1FlexGrid Namespace
DropModeEnum
Specifies the behavior of the control as an OLE drag-drop target.
Syntax
Visual Basic (Declaration)
956
Members
Member
Description
Automatic
Manual
The control fires drag-drop events that can be handled to provide drop target
functionality.
None
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.DropModeEnum
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
C1.Win.C1FlexGrid Namespace
EditFlags
Specifies options that customize the grid's editing behavior.
Syntax
957
Members
Member
Description
All
AutoSearch
CycleOnDoubleClick Cycle to the next item on the list when the user double-clicks a cell.
DelayedCommit
Commit changes to data source only when changing rows or moving focus.
EditOnRequest
Enter edit mode only in response to mouse or keyboard events. Setting this
flag to false causes the grid to enter edit mode when the control gets the
focus or when the user moves the cursor.
ExitOnLeftRightKeys Exit editor if user presses the right arrow key at the end of the content or
the left arrow key at the start of the content.
MultiCheck
None
No special behavior.
UseNumericEditor
Inheritance Hierarchy
System.Object
System.ValueType
958
System.Enum
C1.Win.C1FlexGrid.EditFlags
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
C1.Win.C1FlexGrid Namespace
FileFlags
Specifies options for use with the C1FlexGridBase.SaveGrid and C1FlexGridBase.LoadGrid
methods.
Syntax
Visual Basic (Declaration)
Public Enum FileFlags
Inherits System.Enum
C#
public enum FileFlags : System.Enum
Members
Member
Description
AsDisplayed
IncludeFixedCells
IncludeMergedRanges Save and load merged ranges when exporting to or importing from Excel
959
NoFreezing
None
OpenXml
SaveMergedRanges
SelectedRowsOnly
VisibleOnly
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.FileFlags
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
960
Reference
C1.Win.C1FlexGrid Namespace
FileFormatEnum
Specifies the type of file to save or load with the C1FlexGridBase.SaveGrid and
C1FlexGridBase.LoadGrid methods.
Syntax
Visual Basic (Declaration)
Public Enum FileFormatEnum
Inherits System.Enum
C#
public enum FileFormatEnum : System.Enum
Members
Member
Description
Excel
TextComma
TextCustom
TextTab
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.FileFormatEnum
Requirements
961
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
C1.Win.C1FlexGrid Namespace
FocusRectEnum
Specifies the appearance of the focus rectangle.
Syntax
Visual Basic (Declaration)
Public Enum FocusRectEnum
Inherits System.Enum
C#
public enum FocusRectEnum : System.Enum
Members
Member
Description
Heavy
Inset
Light
Show a light focus rectangle (dotted, 1-pixel wide). This is the default setting.
None
No focus rectangle.
Raised
Solid
Show a solid focus rectangle. The color of the rectangle is determined by the
BackColor property of the CellStyleCollection.Highlight style.
962
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.FocusRectEnum
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
C1.Win.C1FlexGrid Namespace
GlyphEnum
Specifies a type of glyph (image) used by the grid to convey information about a row, column, or
cell.
Syntax
Visual Basic (Declaration)
Public Enum GlyphEnum
Inherits System.Enum
C#
public enum GlyphEnum : System.Enum
Members
Member
Description
Ascending
963
Checked
Collapsed
DBAdd
DBCursor
Descending
ErrorInfo
Expanded
FilteredColumn
FilterEditor
Grayed
Unchecked
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.GlyphEnum
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
964
Reference
C1.Win.C1FlexGrid Namespace
GridChangedTypeEnum
Specifies the type of change that occurred when the controls fires the
C1FlexGridBase.GridChanged event.
Syntax
Visual Basic (Declaration)
Public Enum GridChangedTypeEnum
Inherits System.Enum
C#
public enum GridChangedTypeEnum : System.Enum
Members
Member
Description
AfterCollapse
AfterSelChange
BeforeCollapse
ColAdded
ColMoved
ColRemoved
965
ColSelected
EnsureVisible
GridChanged
LayoutChanged
None
No action.
RepaintGrid
RepaintRange
RowAdded
RowMoved
RowRemoved
RowSelected
Select
StyleApplied
StyleChanged
Update
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.GridChangedTypeEnum
966
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
C1.Win.C1FlexGrid Namespace
HighLightEnum
Specifies whether the grid should highlight the selected range.
Syntax
Visual Basic (Declaration)
Public Enum HighLightEnum
Inherits System.Enum
C#
public enum HighLightEnum : System.Enum
Members
Member
Description
Always
Never
WithFocus
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.HighLightEnum
967
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
C1.Win.C1FlexGrid Namespace
HitTestTypeEnum
Type of grid element at a specific point on the control.
Syntax
Visual Basic (Declaration)
Public Enum HitTestTypeEnum
Inherits System.Enum
C#
public enum HitTestTypeEnum : System.Enum
Members
Member
Description
Cell
The point is on a grid cell. (The cell coordinates are stored in the
HitTestInfo.Row and HitTestInfo.Column properties).
Checkbox
ColumnFreeze
The point is near the right edge of the last frozen column, in the column
freezing area.
ColumnHeader
968
ColumnResize
The point is near the right edge of a fixed cell, in the column resizing area.
EditButton
FilterIcon
None
OutlineBar
The point is on the outline bar (visible when the grid's C1FlexGridBase.Tree
property has a GridTree.Style that contains the TreeStyleFlags.ButtonBar flag).
OutlineTree
The point is on the collapse/expand button on an outline tree (visible when the
grid's GridTree.Style property contains the TreeStyleFlags.Symbols flag).
RowFreeze
The point is near the bottom edge of the last frozen row, in the row freezing
area.
RowHeader
RowResize
The point is near the bottom edge of a fixed cell, in the row resizing area.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.HitTestTypeEnum
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
C1.Win.C1FlexGrid Namespace
969
ImageAlignEnum
Specifies how images are aligns in grid cells.
Syntax
Visual Basic (Declaration)
Public Enum ImageAlignEnum
Inherits System.Enum
C#
public enum ImageAlignEnum : System.Enum
Members
Member
Description
CenterBottom
Image is horizontally aligned to the center and vertically aligned to the bottom
of the cell.
CenterCenter
Image is horizontally aligned to the center and vertically aligned to the center
of the cell.
CenterTop
Image is horizontally aligned to the center and vertically aligned to the top of
the cell.
Hide
LeftBottom
Image is horizontally aligned to the left and vertically aligned to the bottom of
the cell.
LeftCenter
Image is horizontally aligned to the left and vertically aligned to the center of
the cell.
LeftTop
Image is horizontally aligned to the left and vertically aligned to the top of the
cell.
970
RightBottom
Image is horizontally aligned to the right and vertically aligned to the bottom
of the cell.
RightCenter
Image is horizontally aligned to the right and vertically aligned to the center of
the cell.
RightTop
Image is horizontally aligned to the right and vertically aligned to the top of
the cell.
Scale
Image is scaled to fit the maximum area within the cell while preserving the
original aspect ratio.
Stretch
Tile
TileStretch
Image is split into a grid, corner parts are copied and center is stretched to
cover the cell.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ImageAlignEnum
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
C1.Win.C1FlexGrid Namespace
KeyActionEnum
Specifies the action to perform when the ENTER and TAB keys are pressed.
971
Syntax
Visual Basic (Declaration)
Public Enum KeyActionEnum
Inherits System.Enum
C#
public enum KeyActionEnum : System.Enum
Members
Member
Description
MoveAcross
Move to the next column. At the end of the row, wrap to the start of the next
row.
MoveAcrossOut
Same as MoveAcross, but move the focus to the next control in the tab order
when the last cell in the grid is reached.
This setting applies only to the C1FlexGridBase.KeyActionTab property; when
used with C1FlexGridBase.KeyActionEnter it behaves like MoveAcross.
MoveDown
None
No special action (allow system to handle the key). For example, the TAB key is
normally used to cycle through the controls on a form.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.KeyActionEnum
Requirements
972
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
C1.Win.C1FlexGrid Namespace
NodeMoveEnum
Specifies the destination of nodes when they are moved with the Node.Move method.
Syntax
Visual Basic (Declaration)
Public Enum NodeMoveEnum
Inherits System.Enum
C#
public enum NodeMoveEnum : System.Enum
Members
Member
Description
ChildOf
Down
First
In
Move the node one level in, deeper into the outline.
Last
Out
973
Up
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.NodeMoveEnum
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
C1.Win.C1FlexGrid Namespace
NodeTypeEnum
Specifies a node with respect to another given node.
Syntax
Visual Basic (Declaration)
Public Enum NodeTypeEnum
Inherits System.Enum
C#
public enum NodeTypeEnum : System.Enum
Members
Member
Description
FirstChild
974
FirstSibling
The node's first sibling (node with same level and same parent).
FirstVisibleChild
FirstVisibleSibling
LastChild
LastSibling
LastVisibleSibling
NextSibling
NextVisibleSibling
Parent
PreviousSibling
Remarks
This enumeration is used with the Node.GetNode method.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.NodeTypeEnum
Requirements
975
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
C1.Win.C1FlexGrid Namespace
PrintGridFlags
Contains flags that specify printing options to use with the C1FlexGridBase.PrintGrid method.
Syntax
Visual Basic (Declaration)
Public Enum PrintGridFlags
Inherits System.Enum
C#
public enum PrintGridFlags : System.Enum
Members
Member
Description
ActualSize
Print the grid in actual (screen size). If the grid is too wide to fit on a page,
columns spill onto separate pages. If the grid is too tall to fit on a page,
rows spill onto additional pages.
ExtendLastCol
FitToPage
Scale the grid so it will fit on a single page (rows and columns).
FitToPageWidth
Scale the grid so its width will fit on a single page. If the grid is too tall to
fit on a page, rows spill onto additional pages.
ShowHighlight
976
ShowPageSetupDialog Show a page setup dialog before printing so the user can select paper
size, orientation, and margins.
ShowPreviewDialog
Show a print preview dialog before printing so the user can inspect the
document before printing it.
ShowPrintDialog
Show a print setup dialog before printing so the user can select the
printer to use.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.PrintGridFlags
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
C1.Win.C1FlexGrid Namespace
ScrollFlags
Specifies options that customize scrollbar behavior.
Syntax
Visual Basic (Declaration)
Public Enum ScrollFlags
Inherits System.Enum
C#
public enum ScrollFlags : System.Enum
977
Members
Member
Description
AlwaysVisible
DelayedScroll
Do not scroll the control contents until the user releases the scrollbar thumb.
None
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ScrollFlags
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
C1.Win.C1FlexGrid Namespace
SelectionModeEnum
Specifies the type of selection provided by the grid.
Syntax
Visual Basic (Declaration)
978
Members
Member
Description
Cell
CellRange
The user can select continuous blocks of cells using the keyboard and the
mouse. Clicking on header cells does not affect the selection.
Column
ColumnRange
Default
The user can select continuous blocks of cells using the keyboard and the
mouse. Clicking on header cells selects entire rows and columns.
ListBox
Row
RowRange
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.SelectionModeEnum
Requirements
979
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
C1.Win.C1FlexGrid Namespace
ShowButtonsEnum
Specifies when the grid should display combo buttons in cells.
Syntax
Visual Basic (Declaration)
Public Enum ShowButtonsEnum
Inherits System.Enum
C#
public enum ShowButtonsEnum : System.Enum
Members
Member
Description
Always
WhenEditing
WithFocus
Show buttons when the cell has the focus. This is the default setting.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ShowButtonsEnum
Requirements
980
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
C1.Win.C1FlexGrid Namespace
ShowSortPositionEnum
Specifies the position of the sort glyphs within the column header cells.
Syntax
Visual Basic (Declaration)
Public Enum ShowSortPositionEnum
Inherits System.Enum
C#
public enum ShowSortPositionEnum : System.Enum
Members
Member
Description
Auto
Show sort glyphs on the top of the column header cells if filtering is enabled,
and on the right otherwise.
None
Right
Top
Inheritance Hierarchy
System.Object
System.ValueType
981
System.Enum
C1.Win.C1FlexGrid.ShowSortPositionEnum
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
C1.Win.C1FlexGrid Namespace
ShowThemedHeadersEnum
Specifies whether the control should use themes for displaying row or column headers.
Syntax
Visual Basic (Declaration)
Public Enum ShowThemedHeadersEnum
Inherits System.Enum
C#
public enum ShowThemedHeadersEnum : System.Enum
Members
Member
Description
Auto
Both
Columns
None
982
Rows
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.ShowThemedHeadersEnum
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
C1.Win.C1FlexGrid Namespace
SortFlags
Example Example
Syntax
Visual Basic (Declaration)
Public Enum SortFlags
Inherits System.Enum
C#
public enum SortFlags : System.Enum
Members
Member
Description
Ascending
983
AsDisplayed
Sort using the string representation of the data. In this mode, "100" appears
before "2".
Descending
IgnoreCase
None
Do not sort. This setting is useful for skipping certain columns when sorting
column ranges.
UseColSort
Use the flags stored in the Column.Sort property of individual Column objects.
Remarks
This enumeration contains flags that can be combined to customize the sorting process.
Example
For example, the code below sorts two grid columns ignoring case.
C#
// C#
SortFlags order = SortFlags.Ascending | SortFlags.IgnoreCase;
_flex.Sort(order, col1, col2);
' VB
Dim order As SortFlags = SortFlags.Ascending Or SortFlags.IgnoreCase
_flex.Sort(order, col1, col2)
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.SortFlags
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
984
See Also
Reference
C1.Win.C1FlexGrid Namespace
StyleElementFlags
Contains flags that specify which style elements are defined in a CellStyle object.
Syntax
Visual Basic (Declaration)
Public Enum StyleElementFlags
Inherits System.Enum
C#
public enum StyleElementFlags : System.Enum
Members
Member
Description
All
BackColor
BackgroundImage
ComboList
The style defines a list of choices used to populate drop down editors.
DataMap
985
DataType
Display
The style defines whether to display text and/or images, in the cells.
EditMask
The style defines an edit mask used to constrain values entered in the
cells.
Editor
Font
ForeColor
Format
The style defines a format string used to convert data into strings.
ImageAlign
ImageMap
ImageSpacing
Margins
None
TextAlign
TextDirection
TextEffect
Trimming
The style defines how long strings are trimmed to fit within cells.
986
UserData
The style contains arbitrary user data (not used by the control).
WordWrap
The style defines whether long strings are allowed to wrap within cells.
Remarks
This enumeration can be used to inspect styles and determine which elements it defines, and it can
also be used to clear specific elements from the style.
Any elements not defined in the style are inherited from the parent style.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.StyleElementFlags
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
C1.Win.C1FlexGrid Namespace
SubtotalPositionEnum
Specifies whether subtotals rows created with the C1FlexGridBase.Subtotal method should be
inserted above or below the data they refer to.
Syntax
Visual Basic (Declaration)
Public Enum SubtotalPositionEnum
Inherits System.Enum
C#
987
Members
Member
Description
AboveData
BelowData
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.SubtotalPositionEnum
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
C1.Win.C1FlexGrid Namespace
TextAlignEnum
Specifies how text is aligned in a grid cell.
Syntax
Visual Basic (Declaration)
Public Enum TextAlignEnum
Inherits System.Enum
C#
public enum TextAlignEnum : System.Enum
988
Members
Member
Description
CenterBottom
Text is horizontally aligned to the center and vertically aligned to the bottom of
the cell.
CenterCenter
Text is horizontally aligned to the center and vertically aligned to the center of
the cell.
CenterTop
Text is horizontally aligned to the center and vertically aligned to the top of the
cell.
GeneralBottom
Numbers are aligned to the right, other values to the left, and vertically aligned
to the bottom.
GeneralCenter
Numbers are aligned to the right, other values to the left, and vertically aligned
to the center.
GeneralTop
Numbers are aligned to the right, other values to the left, and vertically aligned
to the top.
LeftBottom
Text is horizontally aligned to the left and vertically aligned to the bottom of
the cell.
LeftCenter
Text is horizontally aligned to the left and vertically aligned to the center of the
cell.
LeftTop
Text is horizontally aligned to the left and vertically aligned to the top of the
cell.
RightBottom
Text is horizontally aligned to the right and vertically aligned to the bottom of
the cell.
RightCenter
Text is horizontally aligned to the right and vertically aligned to the center of
989
the cell.
RightTop
Text is horizontally aligned to the right and vertically aligned to the top of the
cell.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.TextAlignEnum
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
C1.Win.C1FlexGrid Namespace
TextDirectionEnum
Specifies the direction to use when rendering text in a grid cell.
Syntax
Visual Basic (Declaration)
Public Enum TextDirectionEnum
Inherits System.Enum
C#
public enum TextDirectionEnum : System.Enum
Members
Member
Description
990
Down
Normal
Up
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.TextDirectionEnum
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
C1.Win.C1FlexGrid Namespace
TextEffectEnum
Specifies a 3D effect to use when rendering cell text.
Syntax
Visual Basic (Declaration)
Public Enum TextEffectEnum
Inherits System.Enum
C#
public enum TextEffectEnum : System.Enum
Members
991
Member
Description
Flat
No 3D effect.
Inset
Text is drawn with a shadow offset by one pixel to the left and above the text.
Raised
Text is drawn with a shadow offset by one pixel to the right and below the text.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.TextEffectEnum
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
C1.Win.C1FlexGrid Namespace
TreeStyleFlags
Specifies the appearance of the outline tree.
Syntax
Visual Basic (Declaration)
Public Enum TreeStyleFlags
Inherits System.Enum
C#
public enum TreeStyleFlags : System.Enum
Members
992
Member
Description
ButtonBar
Complete
CompleteLeaf
Leaf
Lines
None
Simple
SimpleLeaf
Symbols
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.TreeStyleFlags
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
C1.Win.C1FlexGrid Namespace
993
VisualStyle
Specifies a visual style to use when rendering the control.
Syntax
Visual Basic (Declaration)
Public Enum VisualStyle
Inherits System.Enum
C#
public enum VisualStyle : System.Enum
Members
Member
Description
Custom
Do not use any visual styles. Render the control using the styles and properties
only.
Office2007Black
Render the control with an appearance based on the Office 2007 Black color
scheme.
Office2007Blue
Render the control with an appearance based on the Office 2007 Blue color
scheme.
Office2007Silver
Render the control with an appearance based on the Office 2007 Silver color
scheme.
Office2010Black
Render the control with an appearance based on the Office 2010 Black color
scheme.
Office2010Blue
Render the control with an appearance based on the Office 2010 Blue color
scheme.
Office2010Silver
Render the control with an appearance based on the Office 2010 Silver color
scheme.
994
System
Render the control with an appearance based on the current system settings.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.VisualStyle
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
C1.Win.C1FlexGrid Namespace
Structures
CellRange
Represents cell ranges, allowing the caller to set properties for multiple cells with a single
statement.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure CellRange
Inherits System.ValueType
C#
public struct CellRange : System.ValueType
Remarks
995
The CellRange structure does not have a public constructor. To create a CellRange object, use the
C1FlexGridBase.GetCellRange method.
Note that CellRange is a structure, not a class. This means the object is used as a value, not as a
reference. If you pass a CellRange to a method and change the object within that method, the
original value is not modified.
Ranges are defined by two rows and two columns (r1, c1, r2, and c2). These values do not have to
be in order (r1 may be smaller or greater than r2). To obtain the values in order, use the Normalize
method or the TopRow, BottomRow, LeftCol, and RightCol properties.
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1FlexGrid.CellRange
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
CellRange Members
C1.Win.C1FlexGrid Namespace
Overview
Represents cell ranges, allowing the caller to set properties for multiple cells with a single
statement.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure CellRange
996
Inherits System.ValueType
C#
public struct CellRange : System.ValueType
Remarks
The CellRange structure does not have a public constructor. To create a CellRange object, use the
C1FlexGridBase.GetCellRange method.
Note that CellRange is a structure, not a class. This means the object is used as a value, not as a
reference. If you pass a CellRange to a method and change the object within that method, the
original value is not modified.
Ranges are defined by two rows and two columns (r1, c1, r2, and c2). These values do not have to
be in order (r1 may be smaller or greater than r2). To obtain the values in order, use the Normalize
method or the TopRow, BottomRow, LeftCol, and RightCol properties.
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1FlexGrid.CellRange
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
CellRange Members
C1.Win.C1FlexGrid Namespace
Members
Fields Properties Methods
Public Fields
997
Name
Description
c1
c2
r1
r2
Top
Public Properties
Name
Description
BottomRow
Checkbox
Clip
Gets or sets a string containing the values of all cells in the range.
Data
DataDisplay
Image
IsSingleCell
IsValid
Gets a value that indicates if the range contains valid row and column
indices.
LeftCol
RightCol
998
Style
Gets or sets the style used to display every cell in the range.
StyleDisplay
StyleNew
Gets or sets the style used to display every cell in the range, creating a new
style if necessary.
TopRow
UserData
Top
Public Methods
Name
Description
Clear
Contains
ContainsCol
ContainsRow
Normalize
ToString
Top
See Also
Reference
CellRange Structure
C1.Win.C1FlexGrid Namespace
999
Methods
For a list of all members of this type, see CellRange members.
Public Methods
Name
Description
Clear
Contains
ContainsCol
ContainsRow
Normalize
ToString
Top
See Also
Reference
CellRange Structure
C1.Win.C1FlexGrid Namespace
Clear Method
ClearFlags value that specifies which elements should be cleared.
Clears selected elements from the range.
Syntax
Visual Basic (Declaration)
Public Sub Clear( _
ByVal clearFlags As ClearFlags _
1000
)
C#
public void Clear(
ClearFlags clearFlags
)
Parameters
clearFlags
ClearFlags value that specifies which elements should be cleared.
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
CellRange Structure
CellRange Members
Contains Method
Index of the row to check.
Index of the column to check.
Determines whether the range contains a given cell.
Syntax
Visual Basic (Declaration)
Public Function Contains( _
ByVal row As Integer, _
ByVal col As Integer _
) As Boolean
C#
1001
Parameters
row
Index of the row to check.
col
Index of the column to check.
Return Value
True if the range contains the cell, False otherwise.
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
CellRange Structure
CellRange Members
ContainsCol Method
Index of the column to check.
Determines whether the range contains a given column.
Syntax
Visual Basic (Declaration)
Public Function ContainsCol( _
ByVal col As Integer _
) As Boolean
1002
C#
public bool ContainsCol(
int col
)
Parameters
col
Index of the column to check.
Return Value
True if the range contains the column, False otherwise.
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
CellRange Structure
CellRange Members
ContainsRow Method
Index of the row to check.
Determines whether the range contains a given row.
Syntax
Visual Basic (Declaration)
Public Function ContainsRow( _
ByVal row As Integer _
) As Boolean
C#
public bool ContainsRow(
1003
int row
)
Parameters
row
Index of the row to check.
Return Value
True if the range contains the row, False otherwise.
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
CellRange Structure
CellRange Members
Normalize Method
Normalizes the range so that r1 is the TopRow, r2 is the BottomRow, c1 is the LeftCol, and c2 is the
RightCol.
Syntax
Visual Basic (Declaration)
Public Sub Normalize()
C#
public void Normalize()
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
1004
See Also
Reference
CellRange Structure
CellRange Members
ToString Method
Gets a string representation for this object.
Syntax
Visual Basic (Declaration)
Public Overrides Function ToString() As String
C#
public override string ToString()
Return Value
A string representation for this object.
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
CellRange Structure
CellRange Members
Properties
For a list of all members of this type, see CellRange members.
Public Properties
Name
Description
1005
BottomRow
Checkbox
Clip
Gets or sets a string containing the values of all cells in the range.
Data
DataDisplay
Image
IsSingleCell
IsValid
Gets a value that indicates if the range contains valid row and column
indices.
LeftCol
RightCol
Style
Gets or sets the style used to display every cell in the range.
StyleDisplay
StyleNew
Gets or sets the style used to display every cell in the range, creating a new
style if necessary.
TopRow
UserData
Top
See Also
Reference
1006
CellRange Structure
C1.Win.C1FlexGrid Namespace
BottomRow Property
Gets the index of the bottom row in the range.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property BottomRow As Integer
C#
public int BottomRow {get;}
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
CellRange Structure
CellRange Members
Checkbox Property
Gets or sets the state of the checkbox in the range.
Syntax
Visual Basic (Declaration)
Public Property Checkbox As CheckEnum
C#
public CheckEnum Checkbox {get; set;}
Remarks
1007
When getting, this property returns the checkbox value that corresponds to cell (r1, c1). When
setting, it applies the new value to all cells in the range.
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
CellRange Structure
CellRange Members
Clip Property
Gets or sets a string containing the values of all cells in the range.
Syntax
Visual Basic (Declaration)
Public Property Clip As String
C#
public string Clip {get; set;}
Remarks
The cell values are delimited by characters specified by the C1FlexGridBase.ClipSeparators
property.
By default, columns are separated by tabs (\t or vbTab) and rows by line breaks (\n or vbCr).
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
1008
Reference
CellRange Structure
CellRange Members
Data Property
Gets or sets the data stored in the range.
Syntax
Visual Basic (Declaration)
Public Property Data As Object
C#
public object Data {get; set;}
Remarks
When getting, this property returns the value in the first cell of the range (r1, c1). When setting, it
stores the given value in every cell within the range.
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
CellRange Structure
CellRange Members
DataDisplay Property
Gets the value in cell (r1, c1), formatted as a string.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property DataDisplay As String
1009
C#
public string DataDisplay {get;}
Remarks
This property is similar to the Clip property, except Clip returns a tab-delimited string containing
data in the entire range, and DataDisplay returns the contents of the first cell only (r1, c1).
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
CellRange Structure
CellRange Members
Image Property
Gets or sets the Image assigned to cells in the range.
Syntax
Visual Basic (Declaration)
Public Property Image As Image
C#
public Image Image {get; set;}
Remarks
When getting, this property returns the Image assigned to cell (r1, c1). When setting, it applies the
new value to all cells in the range.
Requirements
1010
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
CellRange Structure
CellRange Members
IsSingleCell Property
Gets a value that indicates if the range contains a single cell.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property IsSingleCell As Boolean
C#
public bool IsSingleCell {get;}
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
CellRange Structure
CellRange Members
IsValid Property
Gets a value that indicates if the range contains valid row and column indices.
Syntax
Visual Basic (Declaration)
1011
Remarks
This property returns true if the range coordinates are valid. The range is valid if both r1 and r2 are
between 0 Rows.Count-1, both c1 and c2 are between 0 and Cols.Count-1.
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
CellRange Structure
CellRange Members
LeftCol Property
Gets the index of the left column in the range.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property LeftCol As Integer
C#
public int LeftCol {get;}
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
1012
Reference
CellRange Structure
CellRange Members
RightCol Property
Gets the index of the right column in the range.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property RightCol As Integer
C#
public int RightCol {get;}
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
CellRange Structure
CellRange Members
Style Property
Example
Gets or sets the style used to display every cell in the range.
Syntax
Visual Basic (Declaration)
Public Property Style As CellStyle
C#
public CellStyle Style {get; set;}
1013
Remarks
Getting or setting the range style ensures that every cell in the range has the same style. If the
range does not contain any cells with custom styles, this property returns null.
Example
The code below creates a CellRange structure and uses it to apply a custom style to the entire
range.
C#
// create a style
CellStyle cs = _flex.Styles.Add("red");
cs.BackColor = Color.Red;
// create a cell range and assign it a style
CellRange rg = _flex.GetCellRange(1, 1, 5, 5);
rg.Style = cs;
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
CellRange Structure
CellRange Members
StyleDisplay Property
Gets the style used to render cell (r1, c1).
Syntax
Visual Basic (Declaration)
Public ReadOnly Property StyleDisplay As CellStyle
C#
public CellStyle StyleDisplay {get;}
1014
Remarks
This property never returns null. It will return the custom style assigned to the first cell in the range,
to the cell's row, column, or a built-in style.
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
CellRange Structure
CellRange Members
StyleNew Property
Example
Gets or sets the style used to display every cell in the range, creating a new style if necessary.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property StyleNew As CellStyle
C#
public CellStyle StyleNew {get;}
Remarks
This property never returns null. If the range does not have a style assigned to it, a new style will be
created automatically.
Example
The code below creates a CellRange structure and uses it to apply a custom style to the entire
range.
C#
1015
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
CellRange Structure
CellRange Members
TopRow Property
Gets the index of the top row in the range.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property TopRow As Integer
C#
public int TopRow {get;}
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
CellRange Structure
CellRange Members
1016
UserData Property
Gets or sets arbitrary used data assigned to cells in the range.
Syntax
Visual Basic (Declaration)
Public Property UserData As Object
C#
public object UserData {get; set;}
Remarks
When getting, this property returns the user data assigned to cell (r1, c1). When setting, it applies
the new value to all cells in the range.
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
CellRange Structure
CellRange Members
Fields
For a list of all members of this type, see CellRange members.
Public Fields
Name
Description
c1
c2
1017
r1
r2
Top
See Also
Reference
CellRange Structure
C1.Win.C1FlexGrid Namespace
c1 Field
Gets or sets the range's first column index.
Syntax
Visual Basic (Declaration)
Public c1 As Integer
C#
public int c1
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
CellRange Structure
CellRange Members
c2 Field
Gets or sets the range's last column index.
Syntax
1018
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
CellRange Structure
CellRange Members
r1 Field
Gets or sets the range's first row index.
Syntax
Visual Basic (Declaration)
Public r1 As Integer
C#
public int r1
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
1019
CellRange Structure
CellRange Members
r2 Field
Gets or sets the range's last row index.
Syntax
Visual Basic (Declaration)
Public r2 As Integer
C#
public int r2
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
CellRange Structure
CellRange Members
HitTestInfo
Contains information, such as the row and column indexes, about a specific coordinate pair in the
C1FlexGrid control.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure HitTestInfo
Inherits System.ValueType
1020
C#
public struct HitTestInfo : System.ValueType
Remarks
Use the C1FlexGridBase.HitTest method to obtain a HitTestInfo value.
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1FlexGrid.HitTestInfo
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
HitTestInfo Members
C1.Win.C1FlexGrid Namespace
Overview
Contains information, such as the row and column indexes, about a specific coordinate pair in the
C1FlexGrid control.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure HitTestInfo
Inherits System.ValueType
1021
C#
public struct HitTestInfo : System.ValueType
Remarks
Use the C1FlexGridBase.HitTest method to obtain a HitTestInfo value.
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1FlexGrid.HitTestInfo
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
HitTestInfo Members
C1.Win.C1FlexGrid Namespace
Members
Fields Properties
Public Fields
Name
Description
Column
Get the index of the column at the point being tested (if the point does not
correspond to a cell, it returns -1).
Point
Row
Get the index of the row at the point being tested (if the point does not
1022
Top
Public Properties
Name
Description
Top
See Also
Reference
HitTestInfo Structure
C1.Win.C1FlexGrid Namespace
Properties
For a list of all members of this type, see HitTestInfo members.
Public Properties
Name
Description
Top
See Also
Reference
1023
HitTestInfo Structure
C1.Win.C1FlexGrid Namespace
X Property
The X coordinate of a point on the control surface, in pixels.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property X As Integer
C#
public int X {get;}
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
HitTestInfo Structure
HitTestInfo Members
Y Property
The Y coordinate of a point on the control surface, in pixels.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Y As Integer
C#
public int Y {get;}
Requirements
1024
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
HitTestInfo Structure
HitTestInfo Members
Fields
For a list of all members of this type, see HitTestInfo members.
Public Fields
Name
Description
Column
Get the index of the column at the point being tested (if the point does not
correspond to a cell, it returns -1).
Point
Row
Get the index of the row at the point being tested (if the point does not
correspond to a cell, it returns -1).
Type
Top
See Also
Reference
HitTestInfo Structure
C1.Win.C1FlexGrid Namespace
Column Field
Get the index of the column at the point being tested (if the point does not correspond to a cell, it
returns -1).
1025
Syntax
Visual Basic (Declaration)
Public ReadOnly Column As Integer
C#
public readonly int Column
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
HitTestInfo Structure
HitTestInfo Members
Point Field
The point on the control surface, in pixels.
Syntax
Visual Basic (Declaration)
Public ReadOnly Point As Point
C#
public readonly Point Point
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
1026
Reference
HitTestInfo Structure
HitTestInfo Members
Row Field
Get the index of the row at the point being tested (if the point does not correspond to a cell, it
returns -1).
Syntax
Visual Basic (Declaration)
Public ReadOnly Row As Integer
C#
public readonly int Row
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
HitTestInfo Structure
HitTestInfo Members
Type Field
Gets a HitTestTypeEnum that describes the type of element described by a HitTestInfo.
Syntax
Visual Basic (Declaration)
Public ReadOnly Type As HitTestTypeEnum
C#
public readonly HitTestTypeEnum Type
1027
Remarks
This property allows you to determine whether the point corresponds to a grid cell or to special
elements such as row and column headers, resizing areas, and so on.
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
HitTestInfo Structure
HitTestInfo Members
Interfaces
IC1ColumnFilter
Interface implemented by column filter objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1ColumnFilter
C#
public interface IC1ColumnFilter
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
1028
See Also
Reference
IC1ColumnFilter Members
C1.Win.C1FlexGrid Namespace
Overview
Interface implemented by column filter objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1ColumnFilter
C#
public interface IC1ColumnFilter
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
IC1ColumnFilter Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
1029
Name
Description
IsActive
Top
Public Methods
Name
Description
Apply
GetEditor
Reset
Top
See Also
Reference
IC1ColumnFilter Interface
C1.Win.C1FlexGrid Namespace
Methods
>
Name
Description
Apply
GetEditor
Reset
Top
See Also
Reference
1030
IC1ColumnFilter Interface
C1.Win.C1FlexGrid Namespace
Apply Method
Value to be filtered.
Applies the filter to a value.
Syntax
Visual Basic (Declaration)
Function Apply( _
ByVal value As Object _
) As Boolean
C#
bool Apply(
object value
)
Parameters
value
Value to be filtered.
Return Value
True if the value satisfies the filter; False otherwise.
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
IC1ColumnFilter Interface
IC1ColumnFilter Members
1031
GetEditor Method
Gets the editor used to modify the filter at run time.
Syntax
Visual Basic (Declaration)
Function GetEditor() As IC1ColumnFilterEditor
C#
IC1ColumnFilterEditor GetEditor()
Return Value
A System.Windows.Forms.Control to be used to modify the filter at run time.
Remarks
The control returned must implement the IC1ColumnFilterEditor interface.
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
IC1ColumnFilter Interface
IC1ColumnFilter Members
Reset Method
Resets the filter making it inactive.
Syntax
Visual Basic (Declaration)
Sub Reset()
C#
1032
void Reset()
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
IC1ColumnFilter Interface
IC1ColumnFilter Members
Properties
For a list of all members of this type, see IC1ColumnFilter members.
Public Properties
Name
Description
IsActive
Top
See Also
Reference
IC1ColumnFilter Interface
C1.Win.C1FlexGrid Namespace
IsActive Property
Gets a value that determines whether the filter is active.
Syntax
Visual Basic (Declaration)
ReadOnly Property IsActive As Boolean
C#
1033
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
IC1ColumnFilter Interface
IC1ColumnFilter Members
IC1ColumnFilterEditor
Interface implemented by column filter editor controls.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1ColumnFilterEditor
C#
public interface IC1ColumnFilterEditor
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
IC1ColumnFilterEditor Members
C1.Win.C1FlexGrid Namespace
1034
Overview
Interface implemented by column filter editor controls.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1ColumnFilterEditor
C#
public interface IC1ColumnFilterEditor
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
IC1ColumnFilterEditor Members
C1.Win.C1FlexGrid Namespace
Members
Properties Methods
Public Properties
Name
Description
KeepFormOpen
Gets a value that determines whether the containing form should remain
open even when it is deactivated.
Top
1035
Public Methods
Name
Description
ApplyChanges
Initialize
Top
See Also
Reference
IC1ColumnFilterEditor Interface
C1.Win.C1FlexGrid Namespace
Methods
>
Name
Description
ApplyChanges
Initialize
Top
See Also
Reference
IC1ColumnFilterEditor Interface
C1.Win.C1FlexGrid Namespace
ApplyChanges Method
Applies changes to the filter being edited.
Syntax
Visual Basic (Declaration)
Sub ApplyChanges()
1036
C#
void ApplyChanges()
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
IC1ColumnFilterEditor Interface
IC1ColumnFilterEditor Members
Initialize Method
C1FlexGridBase that contains the column to be filtered.
Index of the column that contains the values to be filtered.
IC1ColumnFilter being edited.
Initializes the editor with parameters from a filter to be edited.
Syntax
Visual Basic (Declaration)
Sub Initialize( _
ByVal grid As C1FlexGridBase, _
ByVal columnIndex As Integer, _
ByVal filter As IC1ColumnFilter _
)
C#
void Initialize(
C1FlexGridBase grid,
int columnIndex,
IC1ColumnFilter filter
)
1037
Parameters
grid
C1FlexGridBase that contains the column to be filtered.
columnIndex
Index of the column that contains the values to be filtered.
filter
IC1ColumnFilter being edited.
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
IC1ColumnFilterEditor Interface
IC1ColumnFilterEditor Members
Properties
For a list of all members of this type, see IC1ColumnFilterEditor members.
Public Properties
Name
Description
KeepFormOpen
Gets a value that determines whether the containing form should remain
open even when it is deactivated.
Top
See Also
Reference
IC1ColumnFilterEditor Interface
C1.Win.C1FlexGrid Namespace
1038
KeepFormOpen Property
Gets a value that determines whether the containing form should remain open even when it is
deactivated.
Syntax
Visual Basic (Declaration)
ReadOnly Property KeepFormOpen As Boolean
C#
bool KeepFormOpen {get;}
Remarks
This property allows custom editors to display modal dialogs.
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
IC1ColumnFilterEditor Interface
IC1ColumnFilterEditor Members
IC1EmbeddedEditor
Interface implemented by editors and used by the grid to host edit controls on cells.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1EmbeddedEditor
1039
C#
public interface IC1EmbeddedEditor
Remarks
All built-in grid editors implement this interface, as do the controls in the ComponentOne C1Input
library.
If you want to use a third-party editor with the C1FlexGrid, consider creating a derived class and
implementing this interface.
Note that the methods in IC1EmbeddedEditor are called using reflection. Controls do not need to
implement the entire interface. Any public methods with matching signatures (names, parameters,
and return values) will be invoked by the grid. The grid supplies default handlers for any methods
not implemented by the control.
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
IC1EmbeddedEditor Members
C1.Win.C1FlexGrid Namespace
Overview
Interface implemented by editors and used by the grid to host edit controls on cells.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1EmbeddedEditor
1040
C#
public interface IC1EmbeddedEditor
Remarks
All built-in grid editors implement this interface, as do the controls in the ComponentOne C1Input
library.
If you want to use a third-party editor with the C1FlexGrid, consider creating a derived class and
implementing this interface.
Note that the methods in IC1EmbeddedEditor are called using reflection. Controls do not need to
implement the entire interface. Any public methods with matching signatures (names, parameters,
and return values) will be invoked by the grid. The grid supplies default handlers for any methods
not implemented by the control.
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
IC1EmbeddedEditor Members
C1.Win.C1FlexGrid Namespace
Members
Methods
Public Methods
Name
Description
C1EditorFormat
C1EditorGetStyle
Gets the editor style, which determines the type of button that is
displayed in the cell before and during editing (DropDown, Modal,
1041
or None).
C1EditorGetValue
C1EditorInitialize
C1EditorKeyDownFinishEdit Gets a value that determines whether a given key should finalize
editing.
C1EditorUpdateBounds
C1EditorValueIsValid
Top
See Also
Reference
IC1EmbeddedEditor Interface
C1.Win.C1FlexGrid Namespace
Methods
>
Name
Description
C1EditorFormat
C1EditorGetStyle
Gets the editor style, which determines the type of button that is
displayed in the cell before and during editing (DropDown, Modal,
or None).
C1EditorGetValue
C1EditorInitialize
C1EditorKeyDownFinishEdit
1042
C1EditorUpdateBounds
C1EditorValueIsValid
Top
See Also
Reference
IC1EmbeddedEditor Interface
C1.Win.C1FlexGrid Namespace
C1EditorFormat Method
Value to be formatted.
Formatting mask.
Formats a given value using a specified mask.
Syntax
Visual Basic (Declaration)
Function C1EditorFormat( _
ByVal value As Object, _
ByVal mask As String _
) As String
C#
string C1EditorFormat(
object value,
string mask
)
Parameters
value
Value to be formatted.
mask
Formatting mask.
1043
Return Value
A string containing the formatted value.
Remarks
The default implementation ignores the mask and returns value.ToString().
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorGetStyle Method
Gets the editor style, which determines the type of button that is displayed in the cell before and
during editing (DropDown, Modal, or None).
Syntax
Visual Basic (Declaration)
Function C1EditorGetStyle() As UITypeEditorEditStyle
C#
UITypeEditorEditStyle C1EditorGetStyle()
Remarks
The default handler returns DropDown for ComboBoxes, DateTimePickers, and UpDown controls. It
returns None for other control types.
The UITypeEditorEditStyle enumeration is defined in the System.Drawing.Design namespace.
The available settings are DropDown, Modal, and None.
Requirements
1044
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorGetValue Method
Gets the current value of the editor.
Syntax
Visual Basic (Declaration)
Function C1EditorGetValue() As Object
C#
object C1EditorGetValue()
Return Value
The current value of the editor (any data type).
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorInitialize Method
Contains the grid data that should be displayed in the editor.
1045
Contains a dictionary with keys that correspond to style element names and values for the cell
being edited.
Called to initialize the editor content and styles.
Syntax
Visual Basic (Declaration)
Sub C1EditorInitialize( _
ByVal value As Object, _
ByVal editorAttributes As IDictionary _
)
C#
void C1EditorInitialize(
object value,
IDictionary editorAttributes
)
Parameters
value
Contains the grid data that should be displayed in the editor.
editorAttributes
Contains a dictionary with keys that correspond to style element names and values for the
cell being edited.
Remarks
The editorAttributes dictionary contains the following keys:
BackColor: Cell background color.
ForeColor: Cell foreground color.
Font: Cell font.
Format: Cell format string (e.g. "#,##0.##").
ContentAlignment: Cell text alignment.
1046
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorKeyDownFinishEdit Method
Key to be tested.
Gets a value that determines whether a given key should finalize editing.
Syntax
Visual Basic (Declaration)
Function C1EditorKeyDownFinishEdit( _
ByVal e As KeyEventArgs _
) As Boolean
C#
bool C1EditorKeyDownFinishEdit(
KeyEventArgs e
)
Parameters
e
Key to be tested.
Return Value
True if the key should finish the edits and close the editor.
1047
Remarks
If this method returns true, the grid copies the editor value to the cell and exits edit mode. The
key is then processed by the grid (unless the e.Handled parameter is set to true).
For example, pressing the down arrow typically causes the grid to exit edit mode and move
the cursor to the next row.
The default handler returns true for the TAB, ENTER, and ESC keys. It also handles the arrow
keys for editors based on TextBox, ComboBox, and DateTimePicker controls.
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorUpdateBounds Method
The bounds of the cell being edited, in client coordinates.
Called to update the editor's size and position.
Syntax
Visual Basic (Declaration)
Sub C1EditorUpdateBounds( _
ByVal rc As Rectangle _
)
C#
void C1EditorUpdateBounds(
Rectangle rc
)
Parameters
1048
rc
The bounds of the cell being edited, in client coordinates.
Remarks
This method is called during initialization and also when the grid scrolls.
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
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
C1EditorValueIsValid Method
Gets a value that determines if the editor's current contents are valid.
Syntax
Visual Basic (Declaration)
Function C1EditorValueIsValid() As Boolean
C#
bool C1EditorValueIsValid()
Return Value
True if the editor currently has valid content (e.g it contains an EditMask and all required positions
have been filled).
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
1049
See Also
Reference
IC1EmbeddedEditor Interface
IC1EmbeddedEditor Members
IC1MultiColumnDictionary
Interface that extends System.Collections.IDictionary and can be used to implement multi-column
data maps.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IC1MultiColumnDictionary
C#
public interface IC1MultiColumnDictionary
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
IC1MultiColumnDictionary Members
C1.Win.C1FlexGrid Namespace
Overview
Interface that extends System.Collections.IDictionary and can be used to implement multi-column
data maps.
Object Model
1050
Syntax
Visual Basic (Declaration)
Public Interface IC1MultiColumnDictionary
C#
public interface IC1MultiColumnDictionary
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
IC1MultiColumnDictionary Members
C1.Win.C1FlexGrid Namespace
Members
Methods
Public Methods
Name
Description
GetDisplayValue
Gets the string that should be displayed in the grid while not in edit mode.
Top
See Also
Reference
IC1MultiColumnDictionary Interface
C1.Win.C1FlexGrid Namespace
1051
Methods
>
Name
GetDisplayValue
Description
Gets the string that should be displayed in the grid while not in edit mode.
Top
See Also
Reference
IC1MultiColumnDictionary Interface
C1.Win.C1FlexGrid Namespace
GetDisplayValue Method
Value to look up in the dictionary.
Gets the string that should be displayed in the grid while not in edit mode.
Syntax
Visual Basic (Declaration)
Function GetDisplayValue( _
ByVal key As Object _
) As String
C#
string GetDisplayValue(
object key
)
Parameters
key
Value to look up in the dictionary.
Return Value
The string that should be displayed in the grid while not in edit mode.
Remarks
1052
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
IC1MultiColumnDictionary Interface
IC1MultiColumnDictionary Members
Delegates
BeforeMouseDownEventHandler
Object that fired the event.
BeforeMouseDownEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.BeforeMouseDown event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub BeforeMouseDownEventHandler( _
ByVal sender As Object, _
ByVal e As BeforeMouseDownEventArgs _
)
C#
public delegate void BeforeMouseDownEventHandler(
object sender,
BeforeMouseDownEventArgs e
)
Parameters
1053
sender
Object that fired the event.
e
BeforeMouseDownEventArgs object that contains the event data.
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
BeforeMouseDownEventHandler Members
C1.Win.C1FlexGrid Namespace
DragRowColEventHandler
Object that fired the event.
DragRowColEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.BeforeDragColumn,
C1FlexGridBase.BeforeDragRow, C1FlexGridBase.AfterDragColumn and
C1FlexGridBase.AfterDragRow events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub DragRowColEventHandler( _
ByVal sender As Object, _
ByVal e As DragRowColEventArgs _
)
C#
public delegate void DragRowColEventHandler(
object sender,
DragRowColEventArgs e
1054
Parameters
sender
Object that fired the event.
e
DragRowColEventArgs object that contains the event data.
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
DragRowColEventHandler Members
C1.Win.C1FlexGrid Namespace
GetErrorInfoEventHandler
Represents the method that will handle the C1FlexGridBase.GetCellErrorInfo and
C1FlexGridBase.GetRowErrorInfo events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub GetErrorInfoEventHandler( _
ByVal sender As Object, _
ByVal e As GetErrorInfoEventArgs _
)
C#
public delegate void GetErrorInfoEventHandler(
object sender,
GetErrorInfoEventArgs e
)
1055
Parameters
sender
e
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
GetErrorInfoEventHandler Members
C1.Win.C1FlexGrid Namespace
GetLocalizedStringEventHandler
C1FlexGridBase object that raised the event.
GetLocalizedStringEventArgs that contains the event data.
Represents the method that will handle the C1FlexGridBase.GetLocalizedString event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub GetLocalizedStringEventHandler( _
ByVal sender As Object, _
ByVal e As GetLocalizedStringEventArgs _
)
C#
public delegate void GetLocalizedStringEventHandler(
object sender,
GetLocalizedStringEventArgs e
)
Parameters
sender
1056
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
GetLocalizedStringEventHandler Members
C1.Win.C1FlexGrid Namespace
GridChangedEventHandler
Represents the method that will handle the C1FlexGridBase.GridChanged event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub GridChangedEventHandler( _
ByVal sender As Object, _
ByVal e As GridChangedEventArgs _
)
C#
public delegate void GridChangedEventHandler(
object sender,
GridChangedEventArgs e
)
Parameters
sender
e
Requirements
1057
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
GridChangedEventHandler Members
C1.Win.C1FlexGrid Namespace
GridErrorEventHandler
Represents the method that will handle the C1FlexGridBase.GridError event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub GridErrorEventHandler( _
ByVal sender As Object, _
ByVal e As GridErrorEventArgs _
)
C#
public delegate void GridErrorEventHandler(
object sender,
GridErrorEventArgs e
)
Parameters
sender
e
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
1058
Reference
GridErrorEventHandler Members
C1.Win.C1FlexGrid Namespace
KeyEditEventHandler
Represents the method that will handle the C1FlexGridBase.KeyDownEdit and
C1FlexGridBase.KeyUpEdit events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub KeyEditEventHandler( _
ByVal sender As Object, _
ByVal e As KeyEditEventArgs _
)
C#
public delegate void KeyEditEventHandler(
object sender,
KeyEditEventArgs e
)
Parameters
sender
e
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
KeyEditEventHandler Members
C1.Win.C1FlexGrid Namespace
1059
KeyPressEditEventHandler
Represents the method that will handle the C1FlexGridBase.KeyPressEdit event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub KeyPressEditEventHandler( _
ByVal sender As Object, _
ByVal e As KeyPressEditEventArgs _
)
C#
public delegate void KeyPressEditEventHandler(
object sender,
KeyPressEditEventArgs e
)
Parameters
sender
e
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
KeyPressEditEventHandler Members
C1.Win.C1FlexGrid Namespace
OwnerDrawCellEventHandler
Represents the method that will handle the C1FlexGridBase.OwnerDrawCell event.
Syntax
1060
Parameters
sender
e
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
OwnerDrawCellEventHandler Members
C1.Win.C1FlexGrid Namespace
RangeEventHandler
Object that fired the event.
RangeEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.AfterRowColChange,
C1FlexGridBase.AfterScroll, C1FlexGridBase.AfterSelChange,
C1FlexGridBase.BeforeRowColChange, C1FlexGridBase.BeforeScroll, and
C1FlexGridBase.BeforeSelChange events.
Syntax
1061
Parameters
sender
Object that fired the event.
e
RangeEventArgs object that contains the event data.
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
RangeEventHandler Members
C1.Win.C1FlexGrid Namespace
RowColEventHandler
Object that fired the event.
RowColEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.AfterEdit,
C1FlexGridBase.AfterResizeColumn, C1FlexGridBase.AfterResizeRow,
C1FlexGridBase.BeforeEdit, C1FlexGridBase.BeforePageBreak,
1062
C1FlexGridBase.BeforeResizeColumn, C1FlexGridBase.BeforeResizeRow,
C1FlexGridBase.ShowScrollTip, C1FlexGridBase.CellButtonClick,
C1FlexGridBase.ComboCloseUp, C1FlexGridBase.ComboDropDown,
C1FlexGridBase.SetupEditor, and C1FlexGridBase.StartEdit events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub RowColEventHandler( _
ByVal sender As Object, _
ByVal e As RowColEventArgs _
)
C#
public delegate void RowColEventHandler(
object sender,
RowColEventArgs e
)
Parameters
sender
Object that fired the event.
e
RowColEventArgs object that contains the event data.
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
RowColEventHandler Members
C1.Win.C1FlexGrid Namespace
1063
RowColToolTipEventHandler
Object that fired the event.
ToolTipEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.ShowScrollTip event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub RowColToolTipEventHandler( _
ByVal sender As Object, _
ByVal e As ToolTipEventArgs _
)
C#
public delegate void RowColToolTipEventHandler(
object sender,
ToolTipEventArgs e
)
Parameters
sender
Object that fired the event.
e
ToolTipEventArgs object that contains the event data.
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
RowColToolTipEventHandler Members
C1.Win.C1FlexGrid Namespace
1064
SortColEventHandler
Object that fired the event.
SortColEventArgs object that contains the event data.
Represents the method that will handle the C1FlexGridBase.BeforeSort and
C1FlexGridBase.AfterSort events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub SortColEventHandler( _
ByVal sender As Object, _
ByVal e As SortColEventArgs _
)
C#
public delegate void SortColEventHandler(
object sender,
SortColEventArgs e
)
Parameters
sender
Object that fired the event.
e
SortColEventArgs object that contains the event data.
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
1065
SortColEventHandler Members
C1.Win.C1FlexGrid Namespace
SubtotalEventHandler
C1FlexGridBase object that raised the event.
SubtotalEventArgs that contains the event data.
Represents the method that will handle the C1FlexGridBase.BeforeSubtotal and
C1FlexGridBase.AfterSubtotal events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub SubtotalEventHandler( _
ByVal sender As Object, _
ByVal e As SubtotalEventArgs _
)
C#
public delegate void SubtotalEventHandler(
object sender,
SubtotalEventArgs e
)
Parameters
sender
C1FlexGridBase object that raised the event.
e
SubtotalEventArgs that contains the event data.
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
1066
Reference
SubtotalEventHandler Members
C1.Win.C1FlexGrid Namespace
UnboundValueEventHandler
C1FlexGridBase object that raised the event.
UnboundValueEventArgs that contains the event data.
Represents the method that will handle the C1FlexGridBase.GetUnboundValue and
C1FlexGridBase.SetUnboundValue events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub UnboundValueEventHandler( _
ByVal sender As Object, _
ByVal e As UnboundValueEventArgs _
)
C#
public delegate void UnboundValueEventHandler(
object sender,
UnboundValueEventArgs e
)
Parameters
sender
C1FlexGridBase object that raised the event.
e
UnboundValueEventArgs that contains the event data.
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
1067
See Also
Reference
UnboundValueEventHandler Members
C1.Win.C1FlexGrid Namespace
ValidateEditEventHandler
Represents the method that will handle the C1FlexGridBase.ValidateEdit event.
Syntax
Visual Basic (Declaration)
Public Delegate Sub ValidateEditEventHandler( _
ByVal sender As Object, _
ByVal e As ValidateEditEventArgs _
)
C#
public delegate void ValidateEditEventHandler(
object sender,
ValidateEditEventArgs e
)
Parameters
sender
e
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
ValidateEditEventHandler Members
C1.Win.C1FlexGrid Namespace
1068
C1.Win.C1FlexGrid.Util.BaseControls Namespace
Overview
Enumerations
Enumeration
Description
See Also
Reference
C1.Win.C1FlexGrid.4 Assembly
Enumerations
BorderStyleEnum
Specifies the type of border to be drawn around the control.
Syntax
Visual Basic (Declaration)
Public Enum BorderStyleEnum
Inherits System.Enum
C#
public enum BorderStyleEnum : System.Enum
Members
Member
Description
Fixed3D
A three-dimensional border.
FixedSingle
A single-line border.
Light3D
1069
None
No border.
XpThemes
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum
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
C1.Win.C1FlexGrid.Util.BaseControls Namespace
C1.Win.C1FlexGrid.Classic.4 Assembly
Overview
%%description%%
" -->
Namespaces
Namespace
Description
C1.Win.C1FlexGrid.Classic
1070
Namespaces
C1.Win.C1FlexGrid.Classic Namespace
Overview
Classes
Class
Description
C1FlexGridClassic
Cell
Enumerations
Enumeration
Description
AlignmentSettings
AllowUserResizeSettings
AutoSizeSettings
CellCheckedSettings
CellPropertySettings
ClearWhatSettings
ClearWhereSettings
EditableSettings
EllipsisSettings
ExplorerBarSettings
1071
FillStyleSettings
GridStyleSettings
MergeSettings
OutlineBarSettings
PictureAlignmentSettings
RedrawSettings
SelModeSettings
SortSettings
TabBehaviorSettings
TextStyleSettings
See Also
Reference
C1.Win.C1FlexGrid.Classic.4 Assembly
Classes
C1FlexGridClassic
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1FlexGridClassic
1072
Inherits C1.Win.C1FlexGrid.C1FlexGrid
C#
public class C1FlexGridClassic : C1.Win.C1FlexGrid.C1FlexGrid
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1FlexGrid.C1FlexGrid
C1.Win.C1FlexGrid.Classic.C1FlexGridClassic
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
C1FlexGridClassic Members
C1.Win.C1FlexGrid.Classic Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1FlexGridClassic
Inherits C1.Win.C1FlexGrid.C1FlexGrid
C#
public class C1FlexGridClassic : C1.Win.C1FlexGrid.C1FlexGrid
1073
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1FlexGrid.C1FlexGrid
C1.Win.C1FlexGrid.Classic.C1FlexGridClassic
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
C1FlexGridClassic Members
C1.Win.C1FlexGrid.Classic Namespace
Members
Properties Methods Events
Public Constructors
Name
Description
C1FlexGridClassic Constructor
Top
Public Properties
Name
Description
AccessibilityObject
1074
AccessibleName
AccessibleRole
AllowBigSelection
AllowDragging
AllowEditing
AllowMerging
AllowMergingFixed
AllowResizing
AllowSelection
AllowSorting
AllowUserResizing
Anchor
AutoScrollOffset
AutoSizeMode
BackColorAlternate
1075
BackColorBkg
BackColorFixed
BackColorSel
BackgroundImage
BackgroundImageLayout
BindingContext
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
Cell
CellAlignment
CellBackColor
CellButtonImage
CellButtonPicture
CellChecked
1076
CellFont
CellFontBold
CellFontItalic
CellFontName
CellFontSize
CellFontStrikethru
CellFontUnderline
CellForeColor
CellHeight
CellLeft
CellPicture
CellPictureAlignment
CellTextStyle
CellTop
CellWidth
ClientRectangle
ClientSize
Cols
1077
ColumnCollection
ColWidthMax
ColWidthMin
ComboCount
ComboIndex
CompanyName
Container
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
Editable
1078
EditSelLength
EditSelStart
EditSelText
EditText
EditWindow
Ellipsis
Enabled
ExplorerBar
FillStyle
FixedCols
FixedRows
Focused
Font
FontBold
FontItalic
FontName
FontSize
FontStrikethru
1079
FontUnderline
ForeColorFixed
ForeColorSel
FrozenCols
FrozenRows
GridColor
GridColorFixed
GridLines
GridLinesFixed
GridLineWidth
Handle
HasChildren
Height
ImeMode
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
1080
IsMirrored
KeyActionEnter
KeyActionTab
LayoutEngine
Left
Location
Margin
MaximumSize
MergeCells
MergedRanges
MinimumSize
Name
NodeClosedPicture
NodeOpenPicture
OutlineBar
OutlineCol
1081
Padding
Parent
Picture
PicturesOver
PreferredSize
ProductName
ProductVersion
RecreatingHandle
Redraw
Region
Right
RightToLeft
RowHeightMax
RowHeightMin
Rows
SelectedRows
SelectionMode
SheetBorder
1082
Site
Size
Sort
Styles
TabBehavior
TabIndex
TabStop
Tag
Text
Overridden.
TextStyle
TextStyleFixed
Top
TopLevelControl
TreeColor
UseWaitCursor
Value
Visible
WallPaper
1083
Width
WordWrap
Top
Public Methods
Name
Description
AutoSize
Overloaded.
BeginInvoke
BringToFront
Clear
ComboItem
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose
DoDragDrop
DrawToBitmap
EditCell
1084
EndInvoke
FindForm
FindRow
Focus
get_Cell
Overloaded.
get_ColAlignment
get_ColComboList
get_ColData
get_ColDataType
get_ColEditMask
get_ColFormat
get_ColHidden
get_ColIndent
get_ColIndex
get_ColIsVisible
get_ColKey
get_ColPos
get_ColSort
1085
get_ColWidth
get_FixedAlignment
get_IsCollapsed
get_IsSelected
get_IsSubtotal
get_MergeCol
get_MergeRow
get_RowData
get_RowHeight
get_RowHidden
get_RowIsVisible
get_RowOutlineLevel
get_RowPos
get_TextMatrix
get_ValueMatrix
GetChildAtPoint
GetContainerControl
GetLifetimeService
1086
GetMergedRange
GetNextControl
GetNode
Overloaded.
GetNodeRow
GetPreferredSize
GetSelection
Hide
InitializeLifetimeService
Invalidate
Invoke
IsCellCursor
IsCellHighlighted
Outline
PerformLayout
PointToClient
1087
PointToScreen
PrintGrid
ReadXml
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
SelectedRow
SelectNextControl
SendToBack
set_Cell
Overloaded.
set_ColAlignment
set_ColComboList
1088
set_ColData
set_ColDataType
set_ColEditMask
set_ColFormat
set_ColHidden
set_ColImageList
set_ColIndent
set_ColKey
set_ColPosition
set_ColSort
set_ColWidth
set_FixedAlignment
set_IsCollapsed
set_IsSelected
set_IsSubtotal
set_MergeCol
set_MergeRow
set_RowData
1089
set_RowHeight
set_RowHidden
set_RowOutlineLevel
set_RowPosition
set_TextMatrix
SetBounds
Show
SuspendLayout
ToString
Update
WriteXml
Top
Public Events
Name
Description
BackColorChanged
BackgroundImageChanged
1090
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
Disposed
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
1091
FontChanged
ForeColorChanged
GiveFeedback
GotFocus
HandleCreated
HandleDestroyed
HelpRequested
ImeModeChanged
Invalidated
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
LostFocus
MarginChanged
MouseCaptureChanged
1092
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
MouseWheel
Move
PaddingChanged
Paint
ParentChanged
PreviewKeyDown
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
Resize
1093
RightToLeftChanged
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1FlexGridClassic Class
C1.Win.C1FlexGrid.Classic Namespace
C1FlexGridClassic Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1FlexGridClassic()
1094
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Methods
For a list of all members of this type, see C1FlexGridClassic members.
Public Methods
Name
Description
AutoSize
Overloaded.
BeginInvoke
BringToFront
Clear
ComboItem
Contains
CreateControl
CreateGraphics
CreateObjRef
1095
Dispose
DoDragDrop
DrawToBitmap
EditCell
EndInvoke
FindForm
FindRow
Focus
get_Cell
Overloaded.
get_ColAlignment
get_ColComboList
get_ColData
get_ColDataType
get_ColEditMask
get_ColFormat
get_ColHidden
get_ColIndent
get_ColIndex
1096
get_ColIsVisible
get_ColKey
get_ColPos
get_ColSort
get_ColWidth
get_FixedAlignment
get_IsCollapsed
get_IsSelected
get_IsSubtotal
get_MergeCol
get_MergeRow
get_RowData
get_RowHeight
get_RowHidden
get_RowIsVisible
get_RowOutlineLevel
get_RowPos
get_TextMatrix
1097
get_ValueMatrix
GetChildAtPoint
GetContainerControl
GetLifetimeService
GetMergedRange
GetNextControl
GetNode
Overloaded.
GetNodeRow
GetPreferredSize
GetSelection
Hide
InitializeLifetimeService
Invalidate
Invoke
IsCellCursor
IsCellHighlighted
1098
C1.Win.C1FlexGrid.C1FlexGrid)
Outline
PerformLayout
PointToClient
PointToScreen
PrintGrid
ReadXml
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
SelectedRow
SelectNextControl
1099
SendToBack
set_Cell
Overloaded.
set_ColAlignment
set_ColComboList
set_ColData
set_ColDataType
set_ColEditMask
set_ColFormat
set_ColHidden
set_ColImageList
set_ColIndent
set_ColKey
set_ColPosition
set_ColSort
set_ColWidth
set_FixedAlignment
set_IsCollapsed
set_IsSelected
1100
set_IsSubtotal
set_MergeCol
set_MergeRow
set_RowData
set_RowHeight
set_RowHidden
set_RowOutlineLevel
set_RowPosition
set_TextMatrix
SetBounds
Show
SuspendLayout
ToString
Update
WriteXml
Top
See Also
Reference
1101
C1FlexGridClassic Class
C1.Win.C1FlexGrid.Classic Namespace
AutoSize Method
Overload List
Overload
Description
AutoSize(Int32)
AutoSize(Int32,Int32)
AutoSize(Int32,Int32,Boolean,Int32)
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AutoSize(Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub AutoSize( _
ByVal col As Integer _
)
C#
public void AutoSize(
int col
)
1102
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
AutoSize(Int32,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub AutoSize( _
ByVal col1 As Integer, _
ByVal col2 As Integer _
)
C#
public void AutoSize(
int col1,
int col2
)
Parameters
col1
col2
Requirements
1103
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
AutoSize(Int32,Int32,Boolean,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub AutoSize( _
ByVal col1 As Integer, _
ByVal col2 As Integer, _
ByVal equal As Boolean, _
ByVal extra As Integer _
)
C#
public void AutoSize(
int col1,
int col2,
bool equal,
int extra
)
Parameters
col1
col2
equal
extra
Requirements
1104
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
Clear Method
Clears a range.
Overload List
Overload
Description
Clear(ClearWhereSettings,ClearWhatSettings)
Clear(ClearWhereSettings)
Clear()
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Clear(ClearWhereSettings,ClearWhatSettings) Method
Syntax
1105
Parameters
where
what
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
Clear(ClearWhereSettings) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub Clear( _
ByVal where As ClearWhereSettings _
)
1106
C#
public void Clear(
ClearWhereSettings where
)
Parameters
where
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
Clear() Method
Syntax
Visual Basic (Declaration)
Public Overloads Shadows Sub Clear()
C#
public new void Clear()
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
1107
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
ComboItem Method
Syntax
Visual Basic (Declaration)
Public Function ComboItem( _
ByVal index As Integer _
) As String
C#
public string ComboItem(
int index
)
Parameters
index
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditCell Method
Syntax
Visual Basic (Declaration)
Public Sub EditCell()
1108
C#
public void EditCell()
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FindRow Method
Finds a row that contains a specified string.
Overload List
Overload
Description
FindRow(Object)
FindRow(String,Int32,Int32,Boolean,Boolean)
FindRow(String,Int32,Int32)
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1109
FindRow(Object) Method
Syntax
Visual Basic (Declaration)
Public Overloads Function FindRow( _
ByVal item As Object _
) As Integer
C#
public int FindRow(
object item
)
Parameters
item
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
FindRow(String,Int32,Int32,Boolean,Boolean) Method
Syntax
Visual Basic (Declaration)
Public Overloads Function FindRow( _
ByVal str As String, _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal caseSensitive As Boolean, _
1110
Parameters
str
row
col
caseSensitive
fullMatch
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
FindRow(String,Int32,Int32) Method
Syntax
Visual Basic (Declaration)
1111
Parameters
str
row
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
get_Cell Method
Overload List
Overload
Description
get_Cell(CellPropertySettings,Int32,Int32,Int32,Int32)
1112
get_Cell(CellPropertySettings,Int32,Int32)
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_Cell(CellPropertySettings,Int32,Int32,Int32,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Function get_Cell( _
ByVal setting As CellPropertySettings, _
ByVal row1 As Integer, _
ByVal col1 As Integer, _
ByVal row2 As Integer, _
ByVal col2 As Integer _
) As Object
C#
public object get_Cell(
CellPropertySettings setting,
int row1,
int col1,
int row2,
int col2
)
Parameters
setting
row1
1113
col1
row2
col2
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
get_Cell(CellPropertySettings,Int32,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Function get_Cell( _
ByVal setting As CellPropertySettings, _
ByVal row As Integer, _
ByVal col As Integer _
) As Object
C#
public object get_Cell(
CellPropertySettings setting,
int row,
int col
)
Parameters
setting
1114
row
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
get_ColAlignment Method
Syntax
Visual Basic (Declaration)
Public Function get_ColAlignment( _
ByVal col As Integer _
) As AlignmentSettings
C#
public AlignmentSettings get_ColAlignment(
int col
)
Parameters
col
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
1115
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColComboList Method
Syntax
Visual Basic (Declaration)
Public Function get_ColComboList( _
ByVal col As Integer _
) As String
C#
public string get_ColComboList(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColData Method
Syntax
Visual Basic (Declaration)
Public Function get_ColData( _
1116
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColDataType Method
Syntax
Visual Basic (Declaration)
Public Function get_ColDataType( _
ByVal col As Integer _
) As Type
C#
public Type get_ColDataType(
int col
)
Parameters
col
1117
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColEditMask Method
Syntax
Visual Basic (Declaration)
Public Function get_ColEditMask( _
ByVal col As Integer _
) As String
C#
public string get_ColEditMask(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1118
get_ColFormat Method
Syntax
Visual Basic (Declaration)
Public Function get_ColFormat( _
ByVal col As Integer _
) As String
C#
public string get_ColFormat(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColHidden Method
Syntax
Visual Basic (Declaration)
Public Function get_ColHidden( _
ByVal col As Integer _
) As Boolean
C#
1119
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColIndent Method
Syntax
Visual Basic (Declaration)
Public Function get_ColIndent( _
ByVal col As Integer _
) As Integer
C#
public int get_ColIndent(
int col
)
Parameters
col
Requirements
1120
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColIndex Method
Syntax
Visual Basic (Declaration)
Public Function get_ColIndex( _
ByVal colKey As String _
) As Integer
C#
public int get_ColIndex(
string colKey
)
Parameters
colKey
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1121
get_ColIsVisible Method
Syntax
Visual Basic (Declaration)
Public Function get_ColIsVisible( _
ByVal col As Integer _
) As Boolean
C#
public bool get_ColIsVisible(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColKey Method
Syntax
Visual Basic (Declaration)
Public Function get_ColKey( _
ByVal col As Integer _
) As String
C#
1122
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColPos Method
Syntax
Visual Basic (Declaration)
Public Function get_ColPos( _
ByVal col As Integer _
) As Integer
C#
public int get_ColPos(
int col
)
Parameters
col
Requirements
1123
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ColSort Method
Syntax
Visual Basic (Declaration)
Public Function get_ColSort( _
ByVal col As Integer _
) As SortSettings
C#
public SortSettings get_ColSort(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1124
get_ColWidth Method
Syntax
Visual Basic (Declaration)
Public Function get_ColWidth( _
ByVal col As Integer _
) As Integer
C#
public int get_ColWidth(
int col
)
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_FixedAlignment Method
Syntax
Visual Basic (Declaration)
Public Function get_FixedAlignment( _
ByVal col As Integer _
) As AlignmentSettings
C#
1125
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_IsCollapsed Method
Syntax
Visual Basic (Declaration)
Public Function get_IsCollapsed( _
ByVal row As Integer _
) As Boolean
C#
public bool get_IsCollapsed(
int row
)
Parameters
row
Requirements
1126
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_IsSelected Method
Syntax
Visual Basic (Declaration)
Public Function get_IsSelected( _
ByVal row As Integer _
) As Boolean
C#
public bool get_IsSelected(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1127
get_IsSubtotal Method
Syntax
Visual Basic (Declaration)
Public Function get_IsSubtotal( _
ByVal row As Integer _
) As Boolean
C#
public bool get_IsSubtotal(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_MergeCol Method
Syntax
Visual Basic (Declaration)
Public Function get_MergeCol( _
ByVal col As Integer _
) As Boolean
C#
1128
Parameters
col
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_MergeRow Method
Syntax
Visual Basic (Declaration)
Public Function get_MergeRow( _
ByVal row As Integer _
) As Boolean
C#
public bool get_MergeRow(
int row
)
Parameters
row
Requirements
1129
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_RowData Method
Syntax
Visual Basic (Declaration)
Public Function get_RowData( _
ByVal row As Integer _
) As Object
C#
public object get_RowData(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1130
get_RowHeight Method
Syntax
Visual Basic (Declaration)
Public Function get_RowHeight( _
ByVal row As Integer _
) As Integer
C#
public int get_RowHeight(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_RowHidden Method
Syntax
Visual Basic (Declaration)
Public Function get_RowHidden( _
ByVal row As Integer _
) As Boolean
C#
1131
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_RowIsVisible Method
Syntax
Visual Basic (Declaration)
Public Function get_RowIsVisible( _
ByVal row As Integer _
) As Boolean
C#
public bool get_RowIsVisible(
int row
)
Parameters
row
Requirements
1132
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_RowOutlineLevel Method
Syntax
Visual Basic (Declaration)
Public Function get_RowOutlineLevel( _
ByVal row As Integer _
) As Integer
C#
public int get_RowOutlineLevel(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1133
get_RowPos Method
Syntax
Visual Basic (Declaration)
Public Function get_RowPos( _
ByVal row As Integer _
) As Integer
C#
public int get_RowPos(
int row
)
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_TextMatrix Method
Syntax
Visual Basic (Declaration)
Public Function get_TextMatrix( _
ByVal r As Integer, _
ByVal c As Integer _
) As String
1134
C#
public string get_TextMatrix(
int r,
int c
)
Parameters
r
c
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
C1FlexGridClassic Class
C1FlexGridClassic Members
get_ValueMatrix Method
Syntax
Visual Basic (Declaration)
Public Function get_ValueMatrix( _
ByVal r As Integer, _
ByVal c As Integer _
) As Double
C#
public double get_ValueMatrix(
int r,
int c
)
Parameters
1135
r
c
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GetMergedRange Method
Returns the merged range of cells that includes a given cell.
Overload List
Overload
Description
GetMergedRange(Int32,Int32,Int32,Int32,Int32,Int32)
GetMergedRange(Int32,Int32,Boolean)
GetMergedRange(Int32,Int32)
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
1136
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
GetMergedRange(Int32,Int32,Int32,Int32,Int32,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub GetMergedRange( _
ByVal row As Integer, _
ByVal col As Integer, _
ByRef r1 As Integer, _
ByRef c1 As Integer, _
ByRef r2 As Integer, _
ByRef c2 As Integer _
)
C#
public void GetMergedRange(
int row,
int col,
out int r1,
out int c1,
out int r2,
out int c2
)
Parameters
row
col
r1
c1
r2
c2
1137
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
GetNode Method
Overload List
Overload
Description
GetNode(Int32)
GetNode()
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GetNode(Int32) Method
Syntax
Visual Basic (Declaration)
1138
Parameters
row
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
GetNode() Method
Syntax
Visual Basic (Declaration)
Public Overloads Function GetNode() As Node
C#
public Node GetNode()
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
1139
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
GetNodeRow Method
Syntax
Visual Basic (Declaration)
Public Function GetNodeRow( _
ByVal row As Integer, _
ByVal which As NodeTypeEnum _
) As Integer
C#
public int GetNodeRow(
int row,
NodeTypeEnum which
)
Parameters
row
which
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1140
GetSelection Method
Syntax
Visual Basic (Declaration)
Public Sub GetSelection( _
ByRef row1 As Integer, _
ByRef col1 As Integer, _
ByRef row2 As Integer, _
ByRef col2 As Integer _
)
C#
public void GetSelection(
out int row1,
out int col1,
out int row2,
out int col2
)
Parameters
row1
col1
row2
col2
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1141
Outline Method
Syntax
Visual Basic (Declaration)
Public Sub Outline( _
ByVal level As Integer _
)
C#
public void Outline(
int level
)
Parameters
level
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
C1FlexGridClassic Class
C1FlexGridClassic Members
PrintGrid Method
Prints the grid, optionally showing a page setup or print preview dialog.
Overload List
Overload
Description
PrintGrid(String,Boolean,Int32,Int32,Int32)
PrintGrid(String,Boolean)
1142
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
C1FlexGridClassic Class
C1FlexGridClassic Members
PrintGrid(String,Boolean,Int32,Int32,Int32) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub PrintGrid( _
ByVal docName As String, _
ByVal showDialog As Boolean, _
ByVal orientation As Integer, _
ByVal marginLR As Integer, _
ByVal marginTB As Integer _
)
C#
public void PrintGrid(
string docName,
bool showDialog,
int orientation,
int marginLR,
int marginTB
)
Parameters
docName
showDialog
orientation
1143
marginLR
marginTB
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
PrintGrid(String,Boolean) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub PrintGrid( _
ByVal docName As String, _
ByVal showDialog As Boolean _
)
C#
public void PrintGrid(
string docName,
bool showDialog
)
Parameters
docName
showDialog
Requirements
1144
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
ReadXml Method
Loads the grid from an Xml document.
Overload List
Overload
Description
ReadXml(XmlDocument)
ReadXml(XmlNode)
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
C1FlexGridClassic Class
C1FlexGridClassic Members
ReadXml(XmlDocument) Method
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub ReadXml( _
1145
Parameters
doc
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
ReadXml(XmlNode) Method
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub ReadXml( _
ByVal node As XmlNode _
)
C#
public override void ReadXml(
XmlNode node
)
Parameters
node
1146
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
SelectedRow Method
Syntax
Visual Basic (Declaration)
Public Function SelectedRow( _
ByVal index As Integer _
) As Integer
C#
public int SelectedRow(
int index
)
Parameters
index
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
1147
C1FlexGridClassic Class
C1FlexGridClassic Members
set_Cell Method
Overload List
Overload
Description
set_Cell(CellPropertySettings,Int32,Int32,Int32,Int32,Object)
set_Cell(CellPropertySettings,Int32,Int32,Object)
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_Cell(CellPropertySettings,Int32,Int32,Int32,Int32,Object) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub set_Cell( _
ByVal setting As CellPropertySettings, _
ByVal row1 As Integer, _
ByVal col1 As Integer, _
ByVal row2 As Integer, _
ByVal col2 As Integer, _
ByVal newVal As Object _
)
C#
1148
Parameters
setting
row1
col1
row2
col2
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
set_Cell(CellPropertySettings,Int32,Int32,Object) Method
Syntax
Visual Basic (Declaration)
Public Overloads Sub set_Cell( _
1149
Parameters
setting
row
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
set_ColAlignment Method
Syntax
Visual Basic (Declaration)
1150
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColComboList Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColComboList( _
ByVal col As Integer, _
ByVal newVal As String _
)
C#
1151
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColData Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColData( _
ByVal col As Integer, _
ByVal newVal As Object _
)
C#
public void set_ColData(
int col,
object newVal
)
Parameters
col
1152
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColDataType Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColDataType( _
ByVal col As Integer, _
ByVal newVal As Type _
)
C#
public void set_ColDataType(
int col,
Type newVal
)
Parameters
col
newVal
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
1153
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColEditMask Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColEditMask( _
ByVal col As Integer, _
ByVal newVal As String _
)
C#
public void set_ColEditMask(
int col,
string newVal
)
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1154
set_ColFormat Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColFormat( _
ByVal col As Integer, _
ByVal newVal As String _
)
C#
public void set_ColFormat(
int col,
string newVal
)
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColHidden Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColHidden( _
ByVal col As Integer, _
1155
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColImageList Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColImageList( _
ByVal col As Integer, _
ByVal newVal As ImageList _
)
C#
public void set_ColImageList(
int col,
1156
ImageList newVal
)
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColIndent Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColIndent( _
ByVal col As Integer, _
ByVal newVal As Integer _
)
C#
public void set_ColIndent(
int col,
int newVal
)
Parameters
col
newVal
1157
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColKey Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColKey( _
ByVal col As Integer, _
ByVal newVal As String _
)
C#
public void set_ColKey(
int col,
string newVal
)
Parameters
col
newVal
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
1158
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColPosition Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColPosition( _
ByVal col As Integer, _
ByVal newPosition As Integer _
)
C#
public void set_ColPosition(
int col,
int newPosition
)
Parameters
col
newPosition
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColSort Method
Syntax
1159
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_ColWidth Method
Syntax
Visual Basic (Declaration)
Public Sub set_ColWidth( _
ByVal col As Integer, _
ByVal newVal As Integer _
)
1160
C#
public void set_ColWidth(
int col,
int newVal
)
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_FixedAlignment Method
Syntax
Visual Basic (Declaration)
Public Sub set_FixedAlignment( _
ByVal col As Integer, _
ByVal newVal As AlignmentSettings _
)
C#
public void set_FixedAlignment(
int col,
AlignmentSettings newVal
)
Parameters
1161
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_IsCollapsed Method
Syntax
Visual Basic (Declaration)
Public Sub set_IsCollapsed( _
ByVal row As Integer, _
ByVal newVal As Boolean _
)
C#
public void set_IsCollapsed(
int row,
bool newVal
)
Parameters
row
newVal
Requirements
1162
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_IsSelected Method
Syntax
Visual Basic (Declaration)
Public Sub set_IsSelected( _
ByVal row As Integer, _
ByVal newVal As Boolean _
)
C#
public void set_IsSelected(
int row,
bool newVal
)
Parameters
row
newVal
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
1163
C1FlexGridClassic Class
C1FlexGridClassic Members
set_IsSubtotal Method
Syntax
Visual Basic (Declaration)
Public Sub set_IsSubtotal( _
ByVal row As Integer, _
ByVal newVal As Boolean _
)
C#
public void set_IsSubtotal(
int row,
bool newVal
)
Parameters
row
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_MergeCol Method
Syntax
Visual Basic (Declaration)
1164
Parameters
col
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_MergeRow Method
Syntax
Visual Basic (Declaration)
Public Sub set_MergeRow( _
ByVal row As Integer, _
ByVal newVal As Boolean _
)
C#
1165
Parameters
row
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_RowData Method
Syntax
Visual Basic (Declaration)
Public Sub set_RowData( _
ByVal row As Integer, _
ByVal newVal As Object _
)
C#
public void set_RowData(
int row,
object newVal
)
Parameters
row
1166
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_RowHeight Method
Syntax
Visual Basic (Declaration)
Public Sub set_RowHeight( _
ByVal row As Integer, _
ByVal newVal As Integer _
)
C#
public void set_RowHeight(
int row,
int newVal
)
Parameters
row
newVal
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
1167
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
set_RowHidden Method
Syntax
Visual Basic (Declaration)
Public Sub set_RowHidden( _
ByVal row As Integer, _
ByVal newVal As Boolean _
)
C#
public void set_RowHidden(
int row,
bool newVal
)
Parameters
row
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1168
set_RowOutlineLevel Method
Syntax
Visual Basic (Declaration)
Public Sub set_RowOutlineLevel( _
ByVal row As Integer, _
ByVal newVal As Integer _
)
C#
public void set_RowOutlineLevel(
int row,
int newVal
)
Parameters
row
newVal
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_RowPosition Method
Syntax
Visual Basic (Declaration)
Public Sub set_RowPosition( _
ByVal row As Integer, _
1169
Parameters
row
newPosition
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
C1FlexGridClassic Class
C1FlexGridClassic Members
set_TextMatrix Method
Syntax
Visual Basic (Declaration)
Public Sub set_TextMatrix( _
ByVal r As Integer, _
ByVal c As Integer, _
ByVal s As String _
)
C#
public void set_TextMatrix(
1170
int r,
int c,
string s
)
Parameters
r
c
s
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
C1FlexGridClassic Class
C1FlexGridClassic Members
WriteXml Method
Saves the grid contents to an Xml document.
Overload List
Overload
Description
WriteXml(XmlTextWriter)
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
1171
C1FlexGridClassic Class
C1FlexGridClassic Members
WriteXml(XmlTextWriter) Method
Syntax
Visual Basic (Declaration)
Public Overloads Overrides Sub WriteXml( _
ByVal w As XmlTextWriter _
)
C#
public override void WriteXml(
XmlTextWriter w
)
Parameters
w
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Overload List
Properties
For a list of all members of this type, see C1FlexGridClassic members.
Public Properties
Name
Description
1172
AccessibilityObject
AccessibleName
AccessibleRole
AllowBigSelection
AllowDragging
AllowEditing
AllowMerging
AllowMergingFixed
AllowResizing
AllowSelection
AllowSorting
AllowUserResizing
Anchor
AutoScrollOffset
AutoSizeMode
1173
BackColorAlternate
BackColorBkg
BackColorFixed
BackColorSel
BackgroundImage
BackgroundImageLayout
BindingContext
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
Cell
CellAlignment
CellBackColor
CellButtonImage
CellButtonPicture
1174
CellChecked
CellFont
CellFontBold
CellFontItalic
CellFontName
CellFontSize
CellFontStrikethru
CellFontUnderline
CellForeColor
CellHeight
CellLeft
CellPicture
CellPictureAlignment
CellTextStyle
CellTop
CellWidth
ClientRectangle
ClientSize
1175
Cols
ColumnCollection
ColWidthMax
ColWidthMin
ComboCount
ComboIndex
CompanyName
Container
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
1176
Editable
EditSelLength
EditSelStart
EditSelText
EditText
EditWindow
Ellipsis
Enabled
ExplorerBar
FillStyle
FixedCols
FixedRows
Focused
Font
FontBold
FontItalic
FontName
FontSize
1177
FontStrikethru
FontUnderline
ForeColorFixed
ForeColorSel
FrozenCols
FrozenRows
GridColor
GridColorFixed
GridLines
GridLinesFixed
GridLineWidth
Handle
HasChildren
Height
ImeMode
InvokeRequired
IsAccessible
IsDisposed
1178
IsHandleCreated
IsMirrored
KeyActionEnter
KeyActionTab
LayoutEngine
Left
Location
Margin
MaximumSize
MergeCells
MergedRanges
MinimumSize
Name
NodeClosedPicture
NodeOpenPicture
OutlineBar
1179
OutlineCol
Padding
Parent
Picture
PicturesOver
PreferredSize
ProductName
ProductVersion
RecreatingHandle
Redraw
Region
Right
RightToLeft
RowHeightMax
RowHeightMin
Rows
SelectedRows
SelectionMode
1180
SheetBorder
Site
Size
Sort
Styles
TabBehavior
TabIndex
TabStop
Tag
Text
Overridden.
TextStyle
TextStyleFixed
Top
TopLevelControl
TreeColor
UseWaitCursor
Value
Visible
1181
WallPaper
Width
WordWrap
Top
See Also
Reference
C1FlexGridClassic Class
C1.Win.C1FlexGrid.Classic Namespace
AllowBigSelection Property
Syntax
Visual Basic (Declaration)
Public Property AllowBigSelection As Boolean
C#
public bool AllowBigSelection {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowDragging Property
Syntax
1182
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowEditing Property
Syntax
Visual Basic (Declaration)
Public Shadows Property AllowEditing As Boolean
C#
public new bool AllowEditing {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1183
AllowMerging Property
Syntax
Visual Basic (Declaration)
Public Shadows Property AllowMerging As AllowMergingEnum
C#
public new AllowMergingEnum AllowMerging {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowResizing Property
Syntax
Visual Basic (Declaration)
Public Shadows Property AllowResizing As AllowResizingEnum
C#
public new AllowResizingEnum AllowResizing {get; set;}
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
1184
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowSelection Property
Syntax
Visual Basic (Declaration)
Public Property AllowSelection As Boolean
C#
public bool AllowSelection {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowSorting Property
Syntax
Visual Basic (Declaration)
Public Shadows Property AllowSorting As AllowSortingEnum
C#
public new AllowSortingEnum AllowSorting {get; set;}
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
1185
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
AllowUserResizing Property
Syntax
Visual Basic (Declaration)
Public Property AllowUserResizing As AllowUserResizeSettings
C#
public AllowUserResizeSettings AllowUserResizing {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
AutoSizeMode Property
Syntax
Visual Basic (Declaration)
Public Property AutoSizeMode As AutoSizeSettings
C#
public AutoSizeSettings AutoSizeMode {get; set;}
Requirements
1186
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
C1FlexGridClassic Class
C1FlexGridClassic Members
BackColorAlternate Property
Syntax
Visual Basic (Declaration)
Public Property BackColorAlternate As Color
C#
public Color BackColorAlternate {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
BackColorBkg Property
Syntax
Visual Basic (Declaration)
Public Property BackColorBkg As Color
C#
1187
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
C1FlexGridClassic Class
C1FlexGridClassic Members
BackColorFixed Property
Syntax
Visual Basic (Declaration)
Public Property BackColorFixed As Color
C#
public Color BackColorFixed {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
BackColorSel Property
Syntax
Visual Basic (Declaration)
1188
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
C1FlexGridClassic Class
C1FlexGridClassic Members
BackgroundImage Property
Syntax
Visual Basic (Declaration)
Public Shadows Property BackgroundImage As Image
C#
public new Image BackgroundImage {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1189
Cell Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Cell As Cell
C#
public Cell Cell {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellAlignment Property
Syntax
Visual Basic (Declaration)
Public Property CellAlignment As AlignmentSettings
C#
public AlignmentSettings CellAlignment {get; set;}
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
1190
C1FlexGridClassic Class
C1FlexGridClassic Members
CellBackColor Property
Syntax
Visual Basic (Declaration)
Public Property CellBackColor As Color
C#
public Color CellBackColor {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellButtonImage Property
Syntax
Visual Basic (Declaration)
Public Shadows Property CellButtonImage As Image
C#
public new Image CellButtonImage {get; set;}
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
1191
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
CellButtonPicture Property
Syntax
Visual Basic (Declaration)
Public Property CellButtonPicture As Image
C#
public Image CellButtonPicture {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellChecked Property
Syntax
Visual Basic (Declaration)
Public Property CellChecked As CellCheckedSettings
C#
public CellCheckedSettings CellChecked {get; set;}
Requirements
1192
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFont Property
Syntax
Visual Basic (Declaration)
Public Property CellFont As Font
C#
public Font CellFont {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFontBold Property
Syntax
Visual Basic (Declaration)
Public Property CellFontBold As Boolean
C#
1193
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFontItalic Property
Syntax
Visual Basic (Declaration)
Public Property CellFontItalic As Boolean
C#
public bool CellFontItalic {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFontName Property
Syntax
Visual Basic (Declaration)
1194
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFontSize Property
Syntax
Visual Basic (Declaration)
Public Property CellFontSize As Single
C#
public float CellFontSize {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1195
CellFontStrikethru Property
Syntax
Visual Basic (Declaration)
Public Property CellFontStrikethru As Boolean
C#
public bool CellFontStrikethru {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellFontUnderline Property
Syntax
Visual Basic (Declaration)
Public Property CellFontUnderline As Boolean
C#
public bool CellFontUnderline {get; set;}
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
1196
C1FlexGridClassic Class
C1FlexGridClassic Members
CellForeColor Property
Syntax
Visual Basic (Declaration)
Public Property CellForeColor As Color
C#
public Color CellForeColor {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellHeight Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property CellHeight As Integer
C#
public int CellHeight {get;}
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
1197
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
CellLeft Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property CellLeft As Integer
C#
public int CellLeft {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellPicture Property
Syntax
Visual Basic (Declaration)
Public Property CellPicture As Image
C#
public Image CellPicture {get; set;}
Requirements
1198
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellPictureAlignment Property
Syntax
Visual Basic (Declaration)
Public Property CellPictureAlignment As PictureAlignmentSettings
C#
public PictureAlignmentSettings CellPictureAlignment {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellTextStyle Property
Syntax
Visual Basic (Declaration)
Public Property CellTextStyle As TextStyleSettings
C#
1199
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellTop Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property CellTop As Integer
C#
public int CellTop {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
CellWidth Property
Syntax
Visual Basic (Declaration)
1200
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Cols Property
Syntax
Visual Basic (Declaration)
Public Shadows Property Cols As Integer
C#
public new int Cols {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1201
ColumnCollection Property
Syntax
Visual Basic (Declaration)
Public Property ColumnCollection As ColumnCollection
C#
public ColumnCollection ColumnCollection {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
ColWidthMax Property
Syntax
Visual Basic (Declaration)
Public Property ColWidthMax As Integer
C#
public int ColWidthMax {get; set;}
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
1202
C1FlexGridClassic Class
C1FlexGridClassic Members
ColWidthMin Property
Syntax
Visual Basic (Declaration)
Public Property ColWidthMin As Integer
C#
public int ColWidthMin {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
ComboCount Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property ComboCount As Integer
C#
public int ComboCount {get;}
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
1203
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
ComboIndex Property
Syntax
Visual Basic (Declaration)
Public Property ComboIndex As Integer
C#
public int ComboIndex {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Editable Property
Syntax
Visual Basic (Declaration)
Public Property Editable As EditableSettings
C#
public EditableSettings Editable {get; set;}
Requirements
1204
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditSelLength Property
Syntax
Visual Basic (Declaration)
Public Property EditSelLength As Integer
C#
public int EditSelLength {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditSelStart Property
Syntax
Visual Basic (Declaration)
Public Property EditSelStart As Integer
C#
1205
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditSelText Property
Syntax
Visual Basic (Declaration)
Public Property EditSelText As String
C#
public string EditSelText {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditText Property
Syntax
Visual Basic (Declaration)
1206
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
C1FlexGridClassic Class
C1FlexGridClassic Members
EditWindow Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property EditWindow As IntPtr
C#
public IntPtr EditWindow {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1207
Ellipsis Property
Syntax
Visual Basic (Declaration)
Public Property Ellipsis As EllipsisSettings
C#
public EllipsisSettings Ellipsis {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
ExplorerBar Property
Syntax
Visual Basic (Declaration)
Public Property ExplorerBar As ExplorerBarSettings
C#
public ExplorerBarSettings ExplorerBar {get; set;}
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
1208
C1FlexGridClassic Class
C1FlexGridClassic Members
FillStyle Property
Syntax
Visual Basic (Declaration)
Public Property FillStyle As FillStyleSettings
C#
public FillStyleSettings FillStyle {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FixedCols Property
Syntax
Visual Basic (Declaration)
Public Property FixedCols As Integer
C#
public int FixedCols {get; set;}
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
1209
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
FixedRows Property
Syntax
Visual Basic (Declaration)
Public Property FixedRows As Integer
C#
public int FixedRows {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontBold Property
Syntax
Visual Basic (Declaration)
Public Property FontBold As Boolean
C#
public bool FontBold {get; set;}
Requirements
1210
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontItalic Property
Syntax
Visual Basic (Declaration)
Public Property FontItalic As Boolean
C#
public bool FontItalic {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontName Property
Syntax
Visual Basic (Declaration)
Public Property FontName As String
C#
1211
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontSize Property
Syntax
Visual Basic (Declaration)
Public Property FontSize As Single
C#
public float FontSize {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontStrikethru Property
Syntax
Visual Basic (Declaration)
1212
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FontUnderline Property
Syntax
Visual Basic (Declaration)
Public Property FontUnderline As Boolean
C#
public bool FontUnderline {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1213
ForeColorFixed Property
Syntax
Visual Basic (Declaration)
Public Property ForeColorFixed As Color
C#
public Color ForeColorFixed {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
ForeColorSel Property
Syntax
Visual Basic (Declaration)
Public Property ForeColorSel As Color
C#
public Color ForeColorSel {get; set;}
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
1214
C1FlexGridClassic Class
C1FlexGridClassic Members
FrozenCols Property
Syntax
Visual Basic (Declaration)
Public Property FrozenCols As Integer
C#
public int FrozenCols {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
FrozenRows Property
Syntax
Visual Basic (Declaration)
Public Property FrozenRows As Integer
C#
public int FrozenRows {get; set;}
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
1215
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
GridColor Property
Syntax
Visual Basic (Declaration)
Public Property GridColor As Color
C#
public Color GridColor {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GridColorFixed Property
Syntax
Visual Basic (Declaration)
Public Property GridColorFixed As Color
C#
public Color GridColorFixed {get; set;}
Requirements
1216
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GridLines Property
Syntax
Visual Basic (Declaration)
Public Property GridLines As GridStyleSettings
C#
public GridStyleSettings GridLines {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GridLinesFixed Property
Syntax
Visual Basic (Declaration)
Public Property GridLinesFixed As GridStyleSettings
C#
1217
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
C1FlexGridClassic Class
C1FlexGridClassic Members
GridLineWidth Property
Syntax
Visual Basic (Declaration)
Public Property GridLineWidth As Integer
C#
public int GridLineWidth {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
KeyActionEnter Property
Syntax
Visual Basic (Declaration)
1218
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
C1FlexGridClassic Class
C1FlexGridClassic Members
KeyActionTab Property
Syntax
Visual Basic (Declaration)
Public Shadows Property KeyActionTab As KeyActionEnum
C#
public new KeyActionEnum KeyActionTab {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1219
MergeCells Property
Syntax
Visual Basic (Declaration)
Public Property MergeCells As MergeSettings
C#
public MergeSettings MergeCells {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
NodeClosedPicture Property
Syntax
Visual Basic (Declaration)
Public Property NodeClosedPicture As Image
C#
public Image NodeClosedPicture {get; set;}
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
1220
C1FlexGridClassic Class
C1FlexGridClassic Members
NodeOpenPicture Property
Syntax
Visual Basic (Declaration)
Public Property NodeOpenPicture As Image
C#
public Image NodeOpenPicture {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
OutlineBar Property
Syntax
Visual Basic (Declaration)
Public Property OutlineBar As OutlineBarSettings
C#
public OutlineBarSettings OutlineBar {get; set;}
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
1221
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
OutlineCol Property
Syntax
Visual Basic (Declaration)
Public Property OutlineCol As Integer
C#
public int OutlineCol {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Picture Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Picture As Image
C#
public Image Picture {get;}
Requirements
1222
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
C1FlexGridClassic Class
C1FlexGridClassic Members
PicturesOver Property
Syntax
Visual Basic (Declaration)
Public Property PicturesOver As Boolean
C#
public bool PicturesOver {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Redraw Property
Syntax
Visual Basic (Declaration)
Public Shadows Property Redraw As RedrawSettings
C#
1223
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
C1FlexGridClassic Class
C1FlexGridClassic Members
RowHeightMax Property
Syntax
Visual Basic (Declaration)
Public Property RowHeightMax As Integer
C#
public int RowHeightMax {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
RowHeightMin Property
Syntax
Visual Basic (Declaration)
1224
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Rows Property
Syntax
Visual Basic (Declaration)
Public Shadows Property Rows As Integer
C#
public new int Rows {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1225
SelectedRows Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property SelectedRows As Integer
C#
public int SelectedRows {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
SelectionMode Property
Syntax
Visual Basic (Declaration)
Public Shadows Property SelectionMode As SelModeSettings
C#
public new SelModeSettings SelectionMode {get; set;}
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
1226
C1FlexGridClassic Class
C1FlexGridClassic Members
SheetBorder Property
Syntax
Visual Basic (Declaration)
Public Property SheetBorder As Color
C#
public Color SheetBorder {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Sort Property
Syntax
Visual Basic (Declaration)
Public WriteOnly Property Sort As SortSettings
C#
public SortSettings Sort {set;}
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
1227
See Also
Reference
C1FlexGridClassic Class
C1FlexGridClassic Members
Styles Property
Syntax
Visual Basic (Declaration)
Public Shadows Property Styles As CellStyleCollection
C#
public new CellStyleCollection Styles {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
TabBehavior Property
Syntax
Visual Basic (Declaration)
Public Property TabBehavior As TabBehaviorSettings
C#
public TabBehaviorSettings TabBehavior {get; set;}
Requirements
1228
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Text Property
Syntax
Visual Basic (Declaration)
Public Overrides Property Text As String
C#
public override string Text {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
TextStyle Property
Syntax
Visual Basic (Declaration)
Public Property TextStyle As TextStyleSettings
C#
1229
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
C1FlexGridClassic Class
C1FlexGridClassic Members
TextStyleFixed Property
Syntax
Visual Basic (Declaration)
Public Property TextStyleFixed As TextStyleSettings
C#
public TextStyleSettings TextStyleFixed {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
TreeColor Property
Syntax
Visual Basic (Declaration)
1230
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
C1FlexGridClassic Class
C1FlexGridClassic Members
Value Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Value As Double
C#
public double Value {get;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
1231
WallPaper Property
Syntax
Visual Basic (Declaration)
Public Property WallPaper As Image
C#
public Image WallPaper {get; set;}
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
C1FlexGridClassic Class
C1FlexGridClassic Members
WordWrap Property
Syntax
Visual Basic (Declaration)
Public Property WordWrap As Boolean
C#
public bool WordWrap {get; set;}
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
1232
C1FlexGridClassic Class
C1FlexGridClassic Members
Cell
Object Model
Syntax
Visual Basic (Declaration)
Public Class Cell
C#
public class Cell
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.Classic.Cell
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
Cell Members
C1.Win.C1FlexGrid.Classic Namespace
Overview
Object Model
Syntax
1233
Inheritance Hierarchy
System.Object
C1.Win.C1FlexGrid.Classic.Cell
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
Cell Members
C1.Win.C1FlexGrid.Classic Namespace
Members
Properties
Public Properties
Name
Description
Item
Overloaded.
Top
See Also
Reference
1234
Cell Class
C1.Win.C1FlexGrid.Classic Namespace
Properties
For a list of all members of this type, see Cell members.
Public Properties
Name
Description
Item
Overloaded.
Top
See Also
Reference
Cell Class
C1.Win.C1FlexGrid.Classic Namespace
Item Property
Overload List
Overload
Description
Item(CellPropertySettings,Int32,Int32,Int32,Int32)
Item(CellPropertySettings,Int32,Int32)
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
Cell Class
Cell Members
1235
Item(CellPropertySettings,Int32,Int32,Int32,Int32) Property
Syntax
Visual Basic (Declaration)
Public Overloads Property Item( _
ByVal setting As CellPropertySettings, _
ByVal row1 As Integer, _
ByVal col1 As Integer, _
ByVal row2 As Integer, _
ByVal col2 As Integer _
) As Object
C#
public object Item(
CellPropertySettings setting,
int row1,
int col1,
int row2,
int col2
) {get; set;}
Parameters
setting
row1
col1
row2
col2
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
1236
Reference
Cell Class
Cell Members
Overload List
Item(CellPropertySettings,Int32,Int32) Property
Syntax
Visual Basic (Declaration)
Public Overloads Property Item( _
ByVal setting As CellPropertySettings, _
ByVal row As Integer, _
ByVal col As Integer _
) As Object
C#
public object Item(
CellPropertySettings setting,
int row,
int col
) {get; set;}
Parameters
setting
row
col
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
1237
Cell Class
Cell Members
Overload List
Enumerations
AlignmentSettings
Syntax
Visual Basic (Declaration)
Public Enum AlignmentSettings
Inherits System.Enum
C#
public enum AlignmentSettings : System.Enum
Members
Member
Description
flexAlignCenterBottom
flexAlignCenterCenter
flexAlignCenterTop
flexAlignGeneral
flexAlignLeftBottom
flexAlignLeftCenter
flexAlignLeftTop
flexAlignRightBottom
flexAlignRightCenter
1238
flexAlignRightTop
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.AlignmentSettings
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
C1.Win.C1FlexGrid.Classic Namespace
AllowUserResizeSettings
Syntax
Visual Basic (Declaration)
Public Enum AllowUserResizeSettings
Inherits System.Enum
C#
public enum AllowUserResizeSettings : System.Enum
Members
Member
Description
flexResizeBoth
flexResizeBothUniform
1239
flexResizeColumns
flexResizeNone
flexResizeRows
flexResizeRowsUniform
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.AllowUserResizeSettings
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
C1.Win.C1FlexGrid.Classic Namespace
AutoSizeSettings
Syntax
Visual Basic (Declaration)
Public Enum AutoSizeSettings
Inherits System.Enum
C#
public enum AutoSizeSettings : System.Enum
Members
1240
Member
Description
flexAutoSizeColWidth
flexAutoSizeRowHeight
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.AutoSizeSettings
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
C1.Win.C1FlexGrid.Classic Namespace
CellCheckedSettings
Syntax
Visual Basic (Declaration)
Public Enum CellCheckedSettings
Inherits System.Enum
C#
public enum CellCheckedSettings : System.Enum
Members
Member
Description
1241
flexChecked
flexNoCheckbox
flexTSChecked
flexTSGrayed
flexTSUnchecked
flexUnchecked
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.CellCheckedSettings
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
C1.Win.C1FlexGrid.Classic Namespace
CellPropertySettings
Syntax
Visual Basic (Declaration)
Public Enum CellPropertySettings
Inherits System.Enum
C#
1242
Members
Member
Description
flexcpAlignment
flexcpBackColor
flexcpChecked
flexcpCustomFormat
flexcpData
flexcpFloodColor
flexcpFloodPercent
flexcpFont
flexcpFontBold
flexcpFontItalic
flexcpFontName
flexcpFontSize
flexcpFontStrikethru
flexcpFontUnderline
flexcpFontWidth
1243
flexcpForeColor
flexcpHeight
flexcpLeft
flexcpPicture
flexcpPictureAlignment
flexcpRefresh
flexcpSort
flexcpText
flexcpTextDisplay
flexcpTextStyle
flexcpTop
flexcpValue
flexcpVariantValue
flexcpWidth
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.CellPropertySettings
Requirements
1244
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
C1.Win.C1FlexGrid.Classic Namespace
ClearWhatSettings
Syntax
Visual Basic (Declaration)
Public Enum ClearWhatSettings
Inherits System.Enum
C#
public enum ClearWhatSettings : System.Enum
Members
Member
Description
flexClearData
flexClearEverything
flexClearFormatting
flexClearText
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.ClearWhatSettings
1245
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
C1.Win.C1FlexGrid.Classic Namespace
ClearWhereSettings
Syntax
Visual Basic (Declaration)
Public Enum ClearWhereSettings
Inherits System.Enum
C#
public enum ClearWhereSettings : System.Enum
Members
Member
Description
flexClearEverywhere
flexClearScrollable
flexClearSelection
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.ClearWhereSettings
Requirements
1246
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
C1.Win.C1FlexGrid.Classic Namespace
EditableSettings
Syntax
Visual Basic (Declaration)
Public Enum EditableSettings
Inherits System.Enum
C#
public enum EditableSettings : System.Enum
Members
Member
Description
flexEDKbd
flexEDKbdMouse
flexEDNone
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.EditableSettings
Requirements
1247
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
C1.Win.C1FlexGrid.Classic Namespace
EllipsisSettings
Syntax
Visual Basic (Declaration)
Public Enum EllipsisSettings
Inherits System.Enum
C#
public enum EllipsisSettings : System.Enum
Members
Member
Description
flexEllipsisEnd
flexEllipsisPath
flexNoEllipsis
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.EllipsisSettings
Requirements
1248
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
C1.Win.C1FlexGrid.Classic Namespace
ExplorerBarSettings
Syntax
Visual Basic (Declaration)
Public Enum ExplorerBarSettings
Inherits System.Enum
C#
public enum ExplorerBarSettings : System.Enum
Members
Member
Description
flexExMove
flexExMoveRows
flexExNone
flexExSort
flexExSortAndMove
flexExSortShow
flexExSortShowAndMove
1249
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.ExplorerBarSettings
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
C1.Win.C1FlexGrid.Classic Namespace
FillStyleSettings
Syntax
Visual Basic (Declaration)
Public Enum FillStyleSettings
Inherits System.Enum
C#
public enum FillStyleSettings : System.Enum
Members
Member
Description
flexFillRepeat
flexFillSingle
Inheritance Hierarchy
1250
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.FillStyleSettings
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
C1.Win.C1FlexGrid.Classic Namespace
GridStyleSettings
Syntax
Visual Basic (Declaration)
Public Enum GridStyleSettings
Inherits System.Enum
C#
public enum GridStyleSettings : System.Enum
Members
Member
Description
flexGridExcel
flexGridExplorer
flexGridFlat
flexGridFlatHorz
1251
flexGridFlatVert
flexGridInset
flexGridInsetHorz
flexGridInsetVert
flexGridNone
flexGridRaised
flexGridRaisedHorz
flexGridRaisedVert
flexGridSkipHorz
flexGridSkipVert
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.GridStyleSettings
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
C1.Win.C1FlexGrid.Classic Namespace
1252
MergeSettings
Syntax
Visual Basic (Declaration)
Public Enum MergeSettings
Inherits System.Enum
C#
public enum MergeSettings : System.Enum
Members
Member
Description
flexMergeFixedOnly
flexMergeFree
flexMergeNever
flexMergeOutline
flexMergeRestrictAll
flexMergeRestrictColumns
flexMergeRestrictRows
flexMergeSpill
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.MergeSettings
1253
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
C1.Win.C1FlexGrid.Classic Namespace
OutlineBarSettings
Syntax
Visual Basic (Declaration)
Public Enum OutlineBarSettings
Inherits System.Enum
C#
public enum OutlineBarSettings : System.Enum
Members
Member
Description
flexOutlineBarComplete
flexOutlineBarCompleteLeaf
flexOutlineBarNone
flexOutlineBarSimple
flexOutlineBarSimpleLeaf
flexOutlineBarSymbols
1254
flexOutlineBarSymbolsLeaf
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.OutlineBarSettings
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
C1.Win.C1FlexGrid.Classic Namespace
PictureAlignmentSettings
Syntax
Visual Basic (Declaration)
Public Enum PictureAlignmentSettings
Inherits System.Enum
C#
public enum PictureAlignmentSettings : System.Enum
Members
Member
Description
flexPicAlignCenterBottom
flexPicAlignCenterCenter
1255
flexPicAlignCenterTop
flexPicAlignLeftBottom
flexPicAlignLeftCenter
flexPicAlignLeftTop
flexPicAlignRightBottom
flexPicAlignRightCenter
flexPicAlignRightTop
flexPicAlignStretch
flexPicAlignTile
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.PictureAlignmentSettings
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
C1.Win.C1FlexGrid.Classic Namespace
RedrawSettings
Syntax
1256
Members
Member
Description
flexRDBuffered
flexRDDirect
flexRDNone
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.RedrawSettings
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
C1.Win.C1FlexGrid.Classic Namespace
SelModeSettings
Syntax
1257
Members
Member
Description
flexSelectionByColumn
flexSelectionByRow
flexSelectionFree
flexSelectionListBox
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.SelModeSettings
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
C1.Win.C1FlexGrid.Classic Namespace
1258
SortSettings
Syntax
Visual Basic (Declaration)
Public Enum SortSettings
Inherits System.Enum
C#
public enum SortSettings : System.Enum
Members
Member
Description
flexSortCustom
flexSortGenericAscending
flexSortGenericDescending
flexSortNone
flexSortNumericAscending
flexSortNumericDescending
flexSortStringAscending
flexSortStringDescending
flexSortStringNoCaseAscending
flexSortStringNoCaseDescending
flexSortUseColSort
1259
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.SortSettings
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
C1.Win.C1FlexGrid.Classic Namespace
TabBehaviorSettings
Syntax
Visual Basic (Declaration)
Public Enum TabBehaviorSettings
Inherits System.Enum
C#
public enum TabBehaviorSettings : System.Enum
Members
Member
Description
flexTabCells
flexTabControls
Inheritance Hierarchy
1260
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.TabBehaviorSettings
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
C1.Win.C1FlexGrid.Classic Namespace
TextStyleSettings
Syntax
Visual Basic (Declaration)
Public Enum TextStyleSettings
Inherits System.Enum
C#
public enum TextStyleSettings : System.Enum
Members
Member
Description
flexTextFlat
flexTextInset
flexTextInsetLight
flexTextRaised
1261
flexTextRaisedLight
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1FlexGrid.Classic.TextStyleSettings
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
C1.Win.C1FlexGrid.Classic Namespace
1262