|
Visual Basic 6.0
|
Visual Basic 2005 Equivalent
|
| AddNewMode | New implementation. Data operations are handled in the data source. For more information, see Displaying Data in the Windows Forms DataGridView Control. |
| Align | Dock and Anchor |
| AllowAddNew | AllowNew (BindingSource) |
| AllowArrows | No longer an adjustable property; arrow navigation always allowed. For more information, see Default Keyboard and Mouse Handling in the Windows Forms DataGridView Control. |
| AllowDelete | AllowRemove (BindingSource) |
| AllowRowSizing | AllowUserToResizeRows |
| AllowUpdate | AllowEdit (BindingSource) |
| Appearance | New implementation. For more information, see Appearance and BorderStyle Properties for Visual Basic 6.0 Users. |
| ApproxCount | New implementation. Data operations are handled in the data source. For more information, see Displaying Data in the Windows Forms DataGridView Control. |
| BackColor | BackgroundColor |
| Bookmark | New implementation. You can now directly access any item. |
| Caption | New implementation. Use a Label control to simulate a title bar. |
| Col | SelectedColumns |
| ColumnHeaders | ColumnHeadersVisible |
| Container | Parent; inherited from Control. |
| CurrentCellModified | IsCurrentCellDirty, IsCurrentCellInEditMode |
| CurrentCellVisible | CurrentCell Note |
|---|
| If the CurrentCell property is set to a cell that is not visible, the grid scrolls to show that cell (similar to setting CurrentCellVisible = True). |
|
| DataChanged | IsCurrentCellDirty, IsCurrentRowDirty |
| DataFormats | DataGridViewCellStyle.object. Note |
|---|
| Formatting can be set for an individual cell, column, or row. |
|
| DefColWidth | Width DataGridViewColumn object. |
| DragIcon DragMode | New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users. |
| EditActive | IsCurrentCellInEditMode |
| FirstRow | FirstDisplayedScrollingRowIndex |
| Font FontBold FontItalic FontName FontSize FontStrikethrough FontUnderline | Font |
| ForeColor | ForeColor |
| HeadFont | DataGridViewCellStyle object. |
| HeadLines | No direct equivalent. Use the WrapMode property of the DataGridViewCellStyle object in combination with ColumnHeadersHeight. |
| Height | Height, inherited from Control class. |
| HelpContextID | New implementation. For more information, see Help Support for Visual Basic 6.0 Users. |
| hWnd | Handle |
| hWndEditor | New implementation. Use Handle. |
| Index | New implementation. For more information, see Control Arrays for Visual Basic 6.0 Users. |
| Left | Left, inherited from Control class. |
| LeftCol | FirstDisplayedScrollingColumnIndex |
| MarqueeStyle | No direct equivalent. Use the SelectionMode, CellBorderStyle, and Format properties. |
| RecordSelectors | RowHeadersVisible |
| Row | SelectedRows |
| RowDividerStyle | GridColor, CellBorderStyle, RowHeadersBorderStyle, ColumnHeadersBorderStyle properties. |
| RowHeight | Height |
| SelBookmarks | New implementation. You can now directly access any item. |
| SelEndCol SelStartCol | SelectedCells, SelectedColumns |
| SelLength | No direct equivalent. Use the SelectionLength property in the EditingControlShowing event handler. |
| SelStart | No direct equivalent. Use the SelectionStart property in the EditingControlShowing event handler. |
| SelText | No direct equivalent. Use the SelectedText property in the EditingControlShowing event handler. |
| Split Splits TabAcrossSplits | New implementation. Split views are not directly supported; use a SplitContainer control. |
| TabAction | StandardTab |
| Tag | New implementation. |
| Text | CurrentCell.Value Note |
|---|
| The Value property returns an Object; use CStr or ToString to convert it to a String. |
|
| ToolTipText | ToolTip component For more information, see ToolTip Support for Visual Basic 6.0 Users. |
| Top | Top |
| VisibleCols | DisplayedColumnCount method. Note |
|---|
| In Visual Basic 6.0, partially visible columns are always included in the count; the DisplayedColumnCount method uses a Boolean includePartialColumns parameter to determine whether partially visible columns are included. |
|
| VisibleRows | DisplayedRowCount method. Note |
|---|
| In Visual Basic 6.0, partially visible rows are always included in the count; the DisplayedRowCount method uses a Boolean includePartialRows parameter to determine whether partially visible rows are included. |
|
| WhatsThisHelpID | New implementation. For more information, see Help Support for Visual Basic 6.0 Users. |
| Width | Width, inherited from Control class. |
| WrapCellPointer | No longer an adjustable property; default behavior is WrapCellPointer = True. |