I have a dataset with the following data
Name Value Percent
0-3 months 0 0
3-12 months 0 0
1-5 years 1234.12 28
5-10 years 13144.11 68
10-15 years 0 0
Over 15 years 1233.44 14
Other Income 2245.12
when i try
foreach (DataRow dr in dsMaturity.Tables[0].Select("name not like 'Other%'"))
{
TotalValue += double.Parse(dr["Value"].ToString());
}
Edit: Actually, similar to the code above. I use a similar loop to add data to display the bucket, which is eventually written to the chart.
foreach (DataRow dr in dsMaturity.Tables[0].Rows)
{
}
I get data sorted as:
0-3 months
10-15 years
1-5 years
3-12 months
5-10 years
Over 15 years
Why? How can I disable data? This is very important, as I display the data in my chart object. Did I miss something?
source
share