NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridCell Constructor

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
);

Parameters

r
The number of a row in the DataGrid.
c
The number of a column in the DataGrid.

Example [Visual Basic]

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

See Also

DataGridCell Structure | DataGridCell Members | System.WinForms Namespace | CurrentCell | DataColumn | DataGrid | DataRow | ColumnNumber | RowNumber