English 中文(简体)
我如何以某种方式整理我的原始数据来源记录
原标题:How do I sort my sqldatasource records in a particular way

我有我的SqlDataSource控制。 它基本上有最新的商业和选择商业。 我的电网格接受这一数据来源控制。 我的特意是:

Select Username, Status from Users Order by LastLoginTime desc

I have my table something like this:

ABC IN PROGESS  somedate
DEF COMPLETE    somedate
PQR PENDING     somedate
JLM COMPLETE    somedate
LKM IN PROGESS  somedate

目前,调查结果按最后一刻(即某个日期)分类。 但我想把我的成果分为两栏(这栏名是现状)。 我想以这样一种方式对记录进行分类,即所有用户中1位都属于PROGRESS,然后出现在项目目录上,然后是合并文件。 你可以说,这不是一条条款上的简单命令。

我如何以这种方式控制我的SqlDataSource?

最佳回答
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签