MultiRow Windows Forms > Developer's Guide > About MultiRow > What's New > What's New in the Designer |
This section describes the new features of the MultiRow Designer.
You can call derived classes of user-defined shortcut keys and cell styles from the GUI. In 6.0, user-defined objects had to be set in code, but in 7.0, user-defined objects can easily be set using the following setting dialog.
Smart tags are supported in each cell that is placed in the template. You can use these smart tags to easily set the key properties of the cells.
When you change the following properties to configure GDI +, you can display the GDI + Properties Confirming dialog box, and automatically perform the settings for which GDI+ is enabled.
The conditions for displaying the GDI + Properties Confirming dialog are as follows:
Property | Show Dialog | Hide Dialog |
---|---|---|
TextVertical | True | Inherit or False |
TextAdjustment | Other than Inherit or Near | Inherit or Near |
LineAdjustment | Distribute or DistributeWithSpace | Inherit or None |
TextAngle | Other than NaN | Nan or 0 |
You can visually set the position and font effects for the text to be placed in the cell, from the properties window.
The following enhancements have been made in the Table.
You can perform inline editing of the Value property, by double-clicking a cell on the template.
Properties that support inline editing are as follows:
Cell | Target Property |
---|---|
CheckBoxCell | Text |
RadioGroupCell ListBoxCell ComboBoxCell ListLabelCell DomainUpDownCell |
Items |
ImageCell SummaryCell |
None |
Other Cells | Value |
You can enter text in multiple rows from the Properties window.
The properties that support multi-line text are as follows:
The layout set in a DataGridView control can be converted to a GcMultiRow template. You can freely change the layout of the Template after the conversion, in the designer.
For more information, refer to Conversion from DataGridView.
The focus flow is displayed in accordance with the tab order of the cell. Since the focus flow can be changed by mouse drag, you can visually set the tab order.
For more information, refer to Changing Tab Order of Cells in the Designer.
In the context menu that appears by right-clicking on the designer, you can automatically set the tab order and index of the cell.
You can select the data type in the Cell.Value property, in the Properties window.
The properties that support selection of data type are as follows:
You can create a basic column mode template, using the Template Wizard.
For details, refer to Create Template using Wizard.
The following commands have been added to the toolbar:
You can use annotations at design time.
For more information, refer to Using Annotations.
You can freeze the columns of the Template PropertyList. You can also display CellIndex in the Template PropertyList.
In the context menu that appears by right-clicking on the designer, you can select an object which is in a non-selected state.
When the default template is set in the GcMultiRow control, and you select Edit Template from the smart tag of the control, you can specify whether you want to create a copy of the default template.
You can change the range selection mode by selecting the cell by dragging the mouse or ruler.
For more information, refer to Selecting Cells in the Designer.
Using AllowBorderLineZoom of Designer Options, you can specify whether you want to zoom the border lines, when zooming the template in the designer.
If the named cell style is used in any of the following styles, the usage status is now displayed in the named cell style manager.
When the Template.AllowCellNameComparisonIgnoreCase property is set to True, the cell name (Cell.Name property) can be recognized without distinction between upper or lower case.
This example ignores the case in the cell name.
Imports GrapeCity.Win.MultiRow Dim textBoxCell1 As New TextBoxCell() textBoxCell1.Name = "textBoxCell1" Dim template1 As Template = Template.CreateGridTemplate(New Cell() {textBoxCell1}) template1.AllowCellNameComparisonIgnoreCase = True GcMultiRow1.Template = template1 GcMultiRow1.RowCount = 3 GcMultiRow1.Rows(0).Cells("textBoxCell1").Value = "ABC" GcMultiRow1.Rows(0).Cells("TextBoxCell1").Style.BackColor = Color.Yellow GcMultiRow1.Rows(0).Cells("textboxcell1").Style.ForeColor = Color.Red |
using GrapeCity.Win.MultiRow; TextBoxCell textBoxCell1 = new TextBoxCell(); textBoxCell1.Name = "textBoxCell1"; Template template1 = Template.CreateGridTemplate(new Cell[] { textBoxCell1 }); template1.AllowCellNameComparisonIgnoreCase = true; gcMultiRow1.Template = template1; gcMultiRow1.RowCount = 3; gcMultiRow1.Rows[0].Cells["textBoxCell1"].Value = "ABC"; gcMultiRow1.Rows[0].Cells["TextBoxCell1"].Style.BackColor = Color.Yellow; gcMultiRow1.Rows[0].Cells["textboxcell1"].Style.ForeColor = Color.Red; |