System.Web.UI.WebControls Namespace DataGridItem Class
Initializes a new instance of the DataGridItem class.
[ VB ]
Public Sub New ( _
ByVal itemIndex As Integer, _
ByVal dataSetIndex As Integer, _
ByVal itemType As ListItemType _
)
[ C# ]
public DataGridItem (
int itemIndex,
int dataSetIndex,
ListItemType itemType
);
[ C++ ]
public: DataGridItem (
int itemIndex,
int dataSetIndex,
ListItemType itemType
);
[ JScript ]
public function DataGridItem (
itemIndex : int,
dataSetIndex : int,
itemType : ListItemType
);
- itemIndex
- The index of the item in the DataGrid control.
- dataSetIndex
- The index of the record in the bound data source.
- itemType
- One of the ListItemType values.
Use this constructor to initialize a new instance of the DataGridItem class.
The following example demonstrates how to initialize a new instance of the DataGridItem class.
void Page_Load ( Object src, EventArgs e ) {
int index = 0;
int setindex = 1;
DataGridItem myItem = new DataGridItem ( index, setindex, ListItemType.Item );
}
Sub Page_Load ( src As Object, e As EventArgs )
Dim index As Integer = 0
Dim setindex As Integer = 1
Dim myItem As New DataGridItem ( index, setindex, ListItemType.Item )
End Sub |
|
C# |
VB |
DataGridItem Members