10
6
8
4
how to arrange them in descending order?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Oct 7, 2013, 9:11 PM EDT
ds.Tables[0].DefaultView.Sort = "columnname desc"; ds.Tables[0] = ds.Tables[0].DefaultView.ToTable();Hardik PatelRank #4,439 · 343 reputationPosted Oct 8, 2013, 1:09 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Oct 8, 2013, 1:18 AM EDT
check this:
str = "select Sum(FEELERS) as FEELERS ,sum(INTUITORS) as INTUITORS,sum(THINKERS) as THINKERS,sum(SENSORS) as SENSORS from GivenAns where UserID =1";
dt = ObjConn.GetDataTable(str);
if (dt != null && dt.Rows.Count > 0)
{
dt.DefaultView.Sort = "FEELERS desc";// sort applied to 1st column
dt = dt.DefaultView.ToTable();
}