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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Oct 8, 2013, 5:18 AM
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();
}
Hardik PatelPosted Oct 8, 2013, 5:09 AM
Sanjeeb LenkaPosted Oct 8, 2013, 1:11 AM