|
A quantity of jobs you may want to achieve with the Windows Forms
DataGrid control are, unexpectedly, more troublesome than you might
expect. Principally, this is because the Windows Forms DataGrid control
is column-based, rather than cell-based. As a result, to attain most
tasks, you have to work with the columns, not the cells themselves. |
DataGridColumns .NET assembly from RustemSoft is a DataGrid Columns
Styles software package specifically designed for .NET developers. The
assembly allows you to use all strengths of the MS Windows .NET forms
DataGrid control without waiving the user interface elements your
customers need. |
|
|
|
|
By using the assembly you can create your own set of
DataGridColumnStyle objects that defines custom column styles for the
Windows Forms DataGrid control and add them to the
GridColumnStylesCollection. |
|
A column style is an object that defines what the column looks and behaves like, including such things as color, font, and the presence of controls that will handle linked field in a database with the use of a Combo Box, a Check Box and other control. The .NET Framework includes two types of column-style classes by default: the DataGridTextBoxColumn and DataGridBoolColumn classes. DataGridColumns dynamic link library contains the following DataGrid Column Styles: |
|
|
You
can turn off all or some of these features and use the combobox
DataGridColumnStyle just as an easy dropdown DataGrid combobox. |
|
Parameters |
When you define a button column, you specify a command associated with the
button. The Click event of DataGridXPButtonColumn class occurs when
the user clicks the button, the button's command is passed to a container
where you can handle it with your custom code. |
Syntax |
This Memo field editor provides more flexibility by updating the memo
field to be used in a .NET DataGrid column. The DataGrid Memo Column Memo field editor is useful for showing short document contents, like memos and emails. When using the DataGrid Memo Column editor you are automatically provided with all general features, which any typical, contemporary word processor has. The DataGridMemoColumn includes a cancel feature. If you click OK the changes made are sent back to the table. When you click on the 'x'-button in the upper right corner or Cancel button your changes will not be stored. You may hide the Cancel button by using the showCancelButton property. |
Syntax |
Syntax |
The DateTimePicker ColumnStyle is used to allow the user to select a date and time, and to display that date/time in your DataGrid. |
Syntax |
Syntax |
Syntax |
Up to 5 text fractions can be defined. By setting the DelimiterChar property
up a delimiter symbol for the control can be specified. You can define the
overall length of each text fraction and what kind of characters can be
inserted in the fraction (alphanumeric, numeric only, etc.). |
To
identify each text fraction you must set values of two-dimensional array
where properties of the fractions are stored. The first array's element
specifies what characters can be inserted into the fraction. It accepts the
following values: |
checked: true for Boolean data type |
Syntax |
Syntax |
Please read the DataGridColumns assembly documentation to learn more about the DataGridLabelColumn class provided events and class members. |
The DataGrid TextEdit Column TextEdit field editor is useful for showing
short document contents, like Memos and emails. |
Syntax |
To create a collection of objects to display in the DomainUpDown control,
you can add or remove the items individually by using the Add and Remove
methods. |
Syntax |
Syntax |
Syntax |
Obviously the DataGridPrint class is not a datagrid column style control.
The service class is intended to help you to create a print output based on
your datagrid content. The class has been included into assembly since it is
build for .NET WinForms datagrid control and very helpful for your .NET
datagrid design. It will help you to implement an application with a print
preview and a print support. |
Syntax |
Add a Reference for Visual Studio .NET project |
Suppose you are building a project using Visual Studio.NET, and you
decide that you want to start consuming RustemSoft DataGridColumns .NET
assembly for a .NET DataGrid control on your Windows form. The first
step that you will generally take is, you will add a reference to the
DataGridColumns .NET assembly, which is residing in some directory on
your PC hard drive. Visual Studio .NET will then add a new item under
Solution Explorer called 'References', and it will create a row node
underneath it called DataGridColumns. |
Download the DataGridColumns .NET assembly code samples for
VB.NET
and C# that show how you can use the RustemSoft DataGrid Column
styles in Windows Forms .NET datagrid. |