![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
CreateAndAddDataRowNodes Method | |
See Also Send Feedback |
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.
Visual Basic (Declaration) | |
---|---|
Public Sub CreateAndAddDataRowNodes( _ ByVal parentNode As TreeViewPlusNode, _ ByVal dt As DataTable, _ ByVal showFieldAttributes As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
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.
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family