Is it possible in ultracharts to create sub column headers as shown in the attachment? if yes then how many levels sub headers can be created?
Currently, there are only two levels of labels: SeriesLabel SeriesLabelItemLabel ItemLabel ItemLabel ItemLabelDataPoint DataPoint DataPoint DataPoint
Each data point has one label. Data points are grouped into series, where each series also has one label. I hope this explains things enough.
Is there some code that I can refer to?
Thanks
It's the default behavior of the chart. Suppose you bind your chart to this table:DataTable dt = new DataTable();dt.Columns.Add("col1", typeof(string));dt.Columns.Add("col2", typeof(int));dt.Columns.Add("col3", typeof(int));dt.Rows.Add( new object[{"Series1", 10, 20});dt.Rows.Add( new object[{"Series2", 30, 40});
chart.Data.DataSource = dt;
The result is the attached image. You should see 2 levels of labels: series labels and column labels.
ok thanks.
Another quick question, the picture that I provided in my first post, is it possible to have an ultrawingrid structured like that? To have a column that is divided into sub-columns and then data.
Yes, you should be able to use row layout for multiple headers. There are samples installed with the product that demonstrate the use of row layouts. If you need help using that feature, I would suggest posting on the WinGrid forums.