Grids
These are the options for the grid controls supported by the VBUC out of the box. This list includes the most common controls used by VB6 applications.
It is worth remembering that the VBUC is a fully customizable tool, therefore if an application uses a grid control not present in this list, it is possible for Mobilize to create customization to migrate it automatically to a .NET component.
1. FPSpread
1.1. To FarPoint Spread helper class
Conversion of FarPoint Spread for Windows Forms using a helper class.
The VBUC supports FPSpread version 3.0.37
General Description:
The FarPoint Spread for Windows Forms is a comprehensive spreadsheet component for Windows applications that combines grid capabilities, spreadsheet functionality, and includes the ability to bind to data sources or programmatically inserted data.
Deployment Note:
The VBUC converts the FPSpread ActiveX to a helper class.
Class | Maps to |
FPSpread.vaSpread | UpgradeHelpers.Spread.FpSpread |
Original VB6 code:
C# code:
VB.NET code:
1.2. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
2. MSDataGridLib
2.1. To System.Windows.Forms.DataGridView
Map Microsoft's MSDataGridLib to DataGridView from Windows.Forms.
Class | Maps to |
MSDataGridLib.DataGrid | System.Windows.Forms.DataGridView |
MSDataGridLib.DataGrid.Columns | System.Windows.Forms.DataGridView.Columns |
MSDataGridLib.DataGrid.Text | System.Windows.Forms.DataGridView.CurrentCell.Value |
MSDataGridLib.DataGrid.AllowUpdate | System.Windows.Forms.DataGridView.ReadOnly |
MSDataGridLib.DataGrid.RightToLeft | System.Windows.Forms.DataGridView.RightToLeft |
MSDataGridLib.DataGrid.HeadFont | System.Windows.Forms.DataGridView.ColumnHeadersHeight |
MSDataGridLib.DataGrid.Caption | System.Windows.Forms.DataGridView.Caption |
MSDataGridLib.Columns | System.Windows.Forms.DataGridViewColumnCollection |
MSDataGridLib.Columns.Count | System.Windows.Forms.DataGridViewColumnCollection.Count |
MSDataGridLib.Column | System.Windows.Forms.DataGridViewColumn |
MSDataGridLib.Column.Caption | System.Windows.Forms.DataGridViewColumn.HeaderText |
MSDataGridLib.Column.DataField | System.Windows.Forms.DataGridViewColumn.DataPropertyName |
MSDataGridLib.Column.ColumnWidth | System.Windows.Forms.DataGridViewColumn.Width |
MSDataGridLib.Column.Value | System.Windows.Forms.DataGridViewColumn.CurrentRow.Cells |
Original VB6 code:
C# code:
VB.NET code:
2.2. To ComponentOne True DBGrid
Map Microsoft's MSDataGridLib to Component1's C1.Win.C1TrueDBGrid.
Class | Maps to |
MSDataGridLib.DataGrid | C1.Win.C1TrueDBGrid.C1TrueDBGrid |
MSDataGridLib.DataGrid.Col | C1.Win.C1TrueDBGrid.C1TrueDBGrid.Col |
MSDataGridLib.DataGrid.Row | C1.Win.C1TrueDBGrid.C1TrueDBGrid.Row |
MSDataGridLib.DataGrid.VisibleRows | C1.Win.C1TrueDBGrid.C1TrueDBGrid.VisibleRows |
MSDataGridLib.DataGrid.HeadFont | C1.Win.C1TrueDBGrid.C1TrueDBGrid.HeadingStyle.Font |
MSDataGridLib.DataGrid.TabAction | C1.Win.C1TrueDBGrid.C1TrueDBGrid.TabAction |
MSDataGridLib.DataGrid.ClearSelCols | C1.Win.C1TrueDBGrid.C1TrueDBGrid.SelectedCols.Clear |
MSDataGridLib.Columns | C1.Win.C1TrueDBGrid.C1DataColumnCollection |
MSDataGridLib.Columns.Remove | C1.Win.C1TrueDBGrid.C1DataColumnCollection.RemoveAt |
MSDataGridLib.Column | C1.Win.C1TrueDBGrid.C1DataColumn |
MSDataGridLib.Column.DataFormat | C1.Win.C1TrueDBGrid.C1DataColumn.DataFormat |
MSDataGridLib.Column.DataField | C1.Win.C1TrueDBGrid.C1DataColumn.DataField |
MSDataGridLib.Column.Name | C1.Win.C1TrueDBGrid.C1DataColumn.Name |
MSDataGridLib.Column.CellValue | C1.Win.C1TrueDBGrid.C1DataColumn.CellValue |
MSDataGridLib.Splits | C1.Win.C1TrueDBGrid.SplitCollection |
MSDataGridLib.Splits.Add | C1.Win.C1TrueDBGrid.SplitCollection.Add |
MSDataGridLib.Splits.Remove | C1.Win.C1TrueDBGrid.SplitCollection.Remove |
Original VB6 code:
C# code:
VB.NET code:
2.3. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
3. MSDBGridLib
3.1. To System.Windows.Forms.DataGridView + Helper classes
Map MSDBGridLib to DataGridView using the DataGridViewTrueDB class. Some properties use the UpgradeHelpers.DataGridViewTrueDB helper class.
Class | Maps to |
MSDBGrid.DBGrid.Caption | DataGridViewTrueDB.Text |
MSDBGrid.DBGrid.Height | DataGridViewTrueDB.Height |
MSDBGrid.DBGrid.Width | DataGridViewTrueDB.Width |
MSDBGrid.DBGrid.Enabled | DataGridViewTrueDB.Enabled |
MSDBGrid.DBGrid.Refresh | DataGridViewTrueDB.Refresh |
Original VB6 code:
C# code:
VB.NET code:
3.2. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
4. MSFlexGrid
4.1. To DataGridViewFlex helper class
Map Microsoft's MSFlexGridLib to a helper class that extends the System.Windows.Forms.DataGridView component.
Class | Maps to |
MSFlexGridLib.MSFlexGrid | UpgradeHelpers.DataGridViewFlex |
MSFlexGridLib.FocusRectSettings | UpgradeHelpers.FocusRectSettings |
MSFlexGridLib.GridLineSettings | System.Windows.Forms.DataGridViewCellBorderStyle |
MSFlexGridLib.HighLightSettings | UpgradeHelpers.HighLightSettings |
MSFlexGridLib.ScrollBarsSettings | System.Windows.Forms.ScrollBars |
MSFlexGridLib.SelectionModeSettings | System.Windows.Forms.DataGridViewSelectionMode |
MSFlexGridLib.SortSettings | UpgradeHelpers.SortSettings |
MSFlexGridLib.AlignmentSettings | System.Windows.Forms.DataGridViewContentAlignment |
MSFlexGridLib.AllowUserResizeSettings | UpgradeHelpers.GridResizeSettings |
MSFlexGridLib.AppearanceSettings | System.Windows.Forms.BorderStyle |
MSFlexGridLib.BorderStyleSettings | System.Windows.Forms.BorderStyle |
MSFlexGridLib.MousePointerSettings | System.Windows.Forms.Cursor |
Original VB6 code:
C# code:
VB.NET code:
4.2. To ComponentOne FlexGrid
Map Microsoft's MSFlexGridLib to Component1's C1.Win.C1FlexGrid.
Class | Maps to |
MSFlexGridLib.MSFlexGrid | C1.Win.C1FlexGrid.C1FlexGrid |
MSFlexGridLib.BorderStyleSettings | C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum |
MSFlexGridLib.FocusRectSettings | C1.Win.C1FlexGrid.FocusRectEnum |
MSFlexGridLib.GridLineSettings | C1.Win.C1FlexGrid.BorderStyleEnum |
MSFlexGridLib.HighLightSettings | C1.Win.C1FlexGrid.HighLightEnum |
MSFlexGridLib.MergeCellsSettings | C1.Win.C1FlexGrid.AllowMergingEnum |
MSFlexGridLib.ScrollBarsSettings | System.Windows.Forms.ScrollBars |
MSFlexGridLib.SelectionModeSettings | C1.Win.C1FlexGrid.SelectionModeEnum |
MSFlexGridLib.TextStyleSettings | C1.Win.C1FlexGrid.TextEffectEnum |
MSFlexGridLib.SortSettings | C1.Win.C1FlexGrid.SortFlags |
MSFlexGridLib.AllowUserResizeSettings | C1.Win.C1FlexGrid.AllowResizingEnum |
MSFlexGridLib.OLEDropConstants | C1.Win.C1FlexGrid.DropModeEnum |
MSFlexGridLib.AlignmentSettings | C1.Win.C1FlexGrid.TextAlignEnum |
MSFlexGridLib.AppearanceSettings | C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum |
Original VB6 code:
C# code:
VB.NET code:
4.3. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
5. TrueDBGrid
5.1. To .NET component that extends the DataGridView
Convert TrueDBGrid to a .NET helper component that extends the System.Windows.Forms.DataGridView control.
The VBUC currently supports the automatic conversion for version 5.0, 6.0, and 7.0 of this control.
By using this option the converted application will not have any reference to the COM Component and no additional licenses are required.
Class | Maps to |
TrueDBGrid60.Column | System.Windows.Forms.DataGridViewColumn |
TrueDBGrid60.TDBGrid | UpgradeHelpers.Windows.Forms.DataGridViewTrueDB |
TrueDBGrid60.Columns | System.Windows.Forms.DataGridViewColumnCollection |
TrueDBGrid60.ValueItem | UpgradeHelpers.Windows.Forms.DisplayValue |
TrueDBGrid60.Style | System.Windows.Forms.DataGridViewCellStyle |
TrueDBGrid60.TDBDropDown | UpgradeHelpers.Windows.Forms.DataGridViewDropDown |
TrueDBGrid60.StyleDisp | System.Windows.Forms.DataGridViewCellStyle |
Similar classes within TrueOLEDBGrid60, TrueDBGrid70, and TrueOLEDBGrid70 are mapped to the associated class in this table.
Original VB6 code:
C# code:
VB.NET code:
5.2. To ComponentOne TrueDBGrid (.NET version)
Convert TrueDBGrid classes to ComponentOne's TrueDBGrid .NET version.
By using this option the converted application will not have any reference to the COM Component.
Class | Maps to |
TrueDBGridControl.Column | C1.Win.C1TrueDBGrid.C1DataColumn |
TrueDBGridControl.TDBGrid | C1.Win.C1TrueDBGrid.C1TrueDBGrid |
TrueDBGridControl.Columns | C1.Win.C1TrueDBGrid.C1DataColumnCollection |
TrueDBGridControl.MarqueeStyleConstants | C1.Win.C1TrueDBGrid.MarqueeEnum |
TrueDBGridControl.TabActionConstants | C1.Win.C1TrueDBGrid.TabActionEnum |
TrueDBGridControl.ValueItems | C1.Win.C1TrueDBGrid.ValueItems |
TrueDBGridControl.ValueItem | C1.Win.C1TrueDBGrid.ValueItem |
TrueDBGridControl.Style | C1.Win.C1TrueDBGrid.Style |
TrueDBGridControl.TDBDropDown | C1.Win.C1TrueDBGrid.C1TrueDBDropdown |
TrueDBGridControl.ScrollBarsConstants | C1.Win.C1TrueDBGrid.ScrollBarStyleEnum |
TrueDBGridControl.AddNewModeConstants | C1.Win.C1TrueDBGrid.AddNewModeEnum |
TrueDBGridControl.AppearanceConstants | System.Windows.Forms.BorderStyle |
TrueDBGridControl.MultiSelectConstants | C1.Win.C1TrueDBGrid.MultiSelectEnum |
TrueDBGridControl.CellTipPresentationConstants | C1.Win.C1TrueDBGrid.CellTipEnum |
TrueDBGridControl.StyleDisp | C1.Win.C1TrueDBGrid.Style |
Original VB6 code:
C# code:
VB.NET code:
5.3. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
6. VSFlexGrid
6.1. To ComponentOne FlexGrid
Map VideoSoft’s VSFlex classes and enums to Component1’s C1FlexGrid equivalents.
Class | Maps to |
VSFlexControl.VSFlexGrid | C1.Win.C1FlexGrid.C1FlexGrid |
VSFlexControl.AllowUserResizeSettings | C1.Win.C1FlexGrid.AllowResizingEnum |
VSFlexControl.AutoSearchSettings | C1.Win.C1FlexGrid.AutoSearchEnum |
VSFlexControl.BorderStyleSettings | System.Windows.Forms.BorderStyle |
VSFlexControl.EllipsisSettings | System.Drawing.StringTrimming |
VSFlexControl.FocusRectSettings | C1.Win.C1FlexGrid.FocusRectEnum |
VSFlexControl.ShowSelSettings | C1.Win.C1FlexGrid.HighLightEnum |
VSFlexControl.MergeSettings | C1.Win.C1FlexGrid.AllowMergingEnum |
VSFlexControl.ScrollBarsSettings | System.Windows.Forms.ScrollBars |
VSFlexControl.SelModeSettings | C1.Win.C1FlexGrid.SelectionModeEnum |
VSFlexControl.ShowButtonSettings | C1.Win.C1FlexGrid.ShowButtonsEnum |
VSFlexControl.SubtotalPositionSettings | C1.Win.C1FlexGrid.SubtotalPositionEnum |
VSFlexControl.TabBehaviorSettings | C1.Win.C1FlexGrid.KeyActionEnum |
VSFlexControl.TextStyleSettings | C1.Win.C1FlexGrid.TextEffectEnum |
VSFlexControl.AutoSizeSettings | C1.Win.C1FlexGrid.AllowResizingEnum |
VSFlexControl.AllowUserFreezeSettings | C1.Win.C1FlexGrid.AllowFreezingEnum |
VSFlexControl.PictureAlignmentSettings | C1.Win.C1FlexGrid.ImageAlignEnum |
VSFlexControl.AlignmentSettings | C1.Win.C1FlexGrid.TextAlignEnum |
VSFlexControl.OutlineBarSettings | C1.Win.C1FlexGrid.TreeStyleFlags |
VSFlexControl.CellCheckedSettings | C1.Win.C1FlexGrid.CheckEnum |
The following controls are supported:
VSFlexLib
VSFlex6
VSFlex6Ctl
VSFlex6d
VSFlex6DAOCtl
VSFlex7
VSFlex7Ctl
VSFlex7d
VSFlex7DAOCtl
VSFlex7L
VSFlex7LCtl
VSFlex8
VSFlex8Ctl
VSFlex8d
VSFlex8DAOCtl
VSFlex8L
VSFlex8LCtl
VSFlex8n
VSFlex8NCtl
Original VB6 code:
C# code:
VB.NET code:
6.2. To COM Interop
This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.
Original VB6 code:
C# code:
VB.NET code:
Last updated