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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph