asp.net.ph

DataGridItem Constructor

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

Parameters

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.

Remarks

Use this constructor to initialize a new instance of the DataGridItem class.

Example

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 );
}
  C# VB

See Also

DataGridItem Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note