SunburstFlatDataAdapter.LabelDataMember Property

Gets or sets the name of the data field whose values are used to automatically generate SunburstItem.Label values.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v20.1.dll

Declaration

[DefaultValue("")]
[XtraSerializableProperty]
public string LabelDataMember { get; set; }
<DefaultValue("")>
<XtraSerializableProperty>
Public Property LabelDataMember As String

Property Value

Type Default Description
String

String.Empty

A String value.

Examples

This example demonstrates how to visualize flat data using the SunburstControl.

Create a SunburstFlatDataAdapter object and assign it to the SunburstControl.DataAdapter property to provide flat data to the Sunburst. Then, specify the adapter's SunburstFlatDataAdapter.DataSource, SunburstFlatDataAdapter.LabelDataMember and SunburstFlatDataAdapter.ValueDataMember to define data source members that should be used to generate sunburst items. Add data members to the SunburstFlatDataAdapter.GroupDataMembers collection to specify how to group the sunburst's items.

NOTE

A complete sample project is available at How to: provide flat data to Sunburst.

private void OnLoad(object sender, EventArgs e) {
    SunburstFlatDataAdapter dataAdapter = new SunburstFlatDataAdapter();            
    dataAdapter.ValueDataMember = "Annual";
    dataAdapter.LabelDataMember = "Product";
    dataAdapter.GroupDataMembers.AddRange(new string[] { "Category", "Country" });
    dataAdapter.DataSource = CreateProductInfos();
    sunburstControl.DataAdapter = dataAdapter;
}

Implements

DevExpress.TreeMap.Native.IFlatDataAdapter.LabelDataMember
See Also