System.Web 2.0.0.0 System.Web.UI.WebControls.TableRow The class is used to represent an individual row in a control. Each row in the control has a designated row type. The following table lists the different row types. Row type Description DataControlRowType.DataRow The data row in the control. DataControlRowType.EmptyDataRow The empty data row in the control. The empty data row is displayed in a control when there are no records to display. DataControlRowType.Footer The footer row in the control. DataControlRowType.Header The header row in the control. DataControlRowType.Pager A pager row in the control. To determine the row type of a object, use the property. A object also has a state associated with it. The state can be a bitwise combination of the values in the following table. State value Description DataControlRowState.Edit The object is in edit mode. DataControlRowState.Insert The object is in insert mode. DataControlRowState.Normal The object is in its normal (default) state. DataControlRowState.Selected The object is selected. To determine the state of a object, use the property. The control displays the contents of its property in a data row. To access the data row, use the property. To determine the index of the current data item in the data source, use the property. You can access the individual cells of the object by using the property. If a cell contains controls, you can retrieve a control from the cell by using one of the following methods: Use the collection of the cell to retrieve the control at a specific index. Use the method of the cell to retrieve the control, if the control has its property set. This is the preferred method to retrieve a control from a cell. For a list of initial property values for an instance of the class, see the constructor. Represents a row within a control. Constructor To be added. Use this constructor to initialize a new instance of the class. The following table shows initial property values for an instance of the class. Property Initial Value The value specified by the parameter. The value specified by the parameter. The value specified by the parameter. Initializes a new instance of the class. One of the enumeration values. One of the enumeration values. 2.0.0.0 Property System.Int32 To be added. Use the property to determine the index of the data item. Gets the index of the data item displayed from the data source. 2.0.0.0 Method System.Boolean To be added. Determines whether to pass an event up the page's ASP.NET server control hierarchy. true if the event has been canceled; otherwise, false. The source of the event. The event data. 2.0.0.0 Property System.Web.UI.WebControls.DataControlRowState To be added. Use the property to determine the state of the row. The state can be a bitwise combination of the values in the following table. State value Description DataControlRowState.Edit The object is in edit mode. DataControlRowState.Insert The object is in insert mode. DataControlRowState.Normal The object is in its normal, read-only state. DataControlRowState.Selected The object is selected. This property is commonly used to determine the state of a row before performing an operation. Gets the state of the object. 2.0.0.0 Property System.Web.UI.WebControls.DataControlRowType To be added. Use the property to determine the type of row that the object represents. The following table lists the different row type values. Row type Description DataControlRowType.DataRow The data row in the control. DataControlRowType.EmptyDataRow The empty data row in the control. The empty data row is displayed in a control when there are no records to display. DataControlRowType.Footer The footer row in the control. DataControlRowType.Header The header row in the control. DataControlRowType.Pager A pager row in the control. DataControlRowType.Separator A separator row in the control. This property is commonly used to determine a row's type before performing an operation. Gets the row type of the object. 2.0.0.0