Page 273 - Open Soource Technologies 304.indd
P. 273

Unit 12: ADO Data Control



               12.4   DataGrid Control Property, Method, and Event Equivalencies

               The following tables list Visual Basic 6.0 properties, methods, and events, along with their Visual
               Basic 2005 equivalents. Those properties, methods, and events that have the same name and
               behavior are not listed. All Visual Basic 2005 enumerations map to the System.Windows. Forms
               namespace unless otherwise noted.
               This table provides links to topics explaining behavior differences. Where there is no direct
               equivalent in Visual Basic 2005, links are provided to topics that present alternatives.
               12.4.1 Properties


               Visual Basic 6.0       Visual Basic 2005 Equivalent
               AddNewMode             New implementation. Data operations are handled in the data source.

               Align                  Dock and Anchor
               AllowAddNew            AllowNew (BindingSource)
               AllowArrows            No longer an adjustable property; arrow navigation always allowed.
               AllowDelete            AllowRemove (BindingSource)
               AllowRowSizing         AllowUserToResizeRows

               AllowUpdate            AllowEdit (BindingSource)
               Appearance             New implementation.
               ApproxCount            New implementation. Data operations are handled in the data source.
               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
               DataChanged            IsCurrentCellDirty, IsCurrentRowDirty
               DataFormats            DataGridViewCellStyle.object.
               DefColWidth            Width  DataGridViewColumn object.
               DragIcon
                                      New implementation.
               DragMode

               EditActive             IsCurrentCellInEditMode
               FirstRow               FirstDisplayedScrollingRowIndex



                                      LOVELY PROFESSIONAL UNIVERSITY                        267
   268   269   270   271   272   273   274   275   276   277   278