I need to push the result into an array to be able to display in a chart . I am keep getting System.Data.DataRow instead of the value. I need to know, the proper way to store the result(currently I store it in DataTable), and to push it into an array.I am newbie in c# ..
public void getOutstanding()
{
SelectQueryBuilder sqbSelect;
DataSet dsOutstanding;
sqbSelect = new SelectQueryBuilder();
sqbSelect.SelectColumns(new string[] { "name"});
sqbSelect.SelectFromTable("user");
sqbSelect.AddWhere("category", Comparison.Equals, "18");
dsOutstanding = Conn.DataAdapter(CommandType.Text, sqbSelect.BuildQuery());
sqbSelect = null;
DataTable areaChart = dsOutstanding.Tables[0];
for( int a = 0; a < areaChart.Rows.Count; a++) {
// want to push the value to an array ;
}
}
Thank you..