Initializes a new instance of the DataGridCell class.
[Visual Basic] Public Sub New( _ ByVal r As Integer, _ ByVal c As Integer _ ) [C#] public DataGridCell( int r, int c ); [C++] public: DataGridCell( int r, int c ); [JScript] public function DataGridCell( r : int, c : int );
The following example creates a DataGridCell and sets the new instance to the CurrentCell of a DataGrid control.
[Visual Basic]
Private Sub SetCell() ' Set the focus to the cell specified by the DataGridCell. Dim dc As DataGridCell dc.RowNumber = 1 dc.ColumnNumber = 1 DataGrid1.CurrentCell = dc End Sub
DataGridCell Structure | DataGridCell Members | System.WinForms Namespace | CurrentCell | DataColumn | DataGrid | DataRow | ColumnNumber | RowNumber