ESRI.ArcGIS.ADF.Web.UI.WebControls
CreateAndAddDataRowNodes Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : CreateAndAddDataRowNodes Method




parentNode
TreeViewPlusNode that will have features added.
dt
DataTable with features or records to add to the parent node.
showFieldAttributes
If true, adds a subnode with a table that displays all fields and values for each row in the DataTable. If false, only the header node for each feature is displayed.
Adds nodes for features or rows in the DataTable to the parent node.

Syntax

Visual Basic (Declaration) 
Public Sub CreateAndAddDataRowNodes( _
   ByVal parentNode As TreeViewPlusNode, _
   ByVal dt As DataTable, _
   ByVal showFieldAttributes As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim parentNode As TreeViewPlusNode
Dim dt As DataTable
Dim showFieldAttributes As Boolean
 
instance.CreateAndAddDataRowNodes(parentNode, dt, showFieldAttributes)
C# 
public void CreateAndAddDataRowNodes( 
   TreeViewPlusNode parentNode,
   DataTable dt,
   bool showFieldAttributes
)

Parameters

parentNode
TreeViewPlusNode that will have features added.
dt
DataTable with features or records to add to the parent node.
showFieldAttributes
If true, adds a subnode with a table that displays all fields and values for each row in the DataTable. If false, only the header node for each feature is displayed.

Remarks

This method is used in the Web ADF to insert the features from results into the task results tree.

A header node is added for each feature (row) in the DataTable. If showFieldAttributes is true, this method also adds the fields/values for each feature (row) as a subnode of the header node.

The text for feature's header node is set based on the first of the following found for the row in the DataTable:

  • The column identified by the value in DataTable.ExtendedProperties for ESRI.ArcGIS.ADF.Web.Constants.ADFHeader ("ADF Header"). This value can be set programmatically for the DataTable by using the ADFHeader constant.
  • A column with an ID of name (or NAME, or Name).
  • The first column with a type of String.
  • The first column in the table.

See Also

© 2010 All Rights Reserved.