我想以gridview的形式显示这些记录以及计算总记录我应该怎么做..?

时间:2017-03-19 10:13:01

标签: gridview

ALTER PROCEDURE [dbo]。[pDashboard]

AS

BEGIN

DECLARE @TotalUSers INT
DECLARE @PendingQuery INT
DECLARE @RepliedQuery INT


SELECT  @TotalUSers = COUNT(*)
FROM    register


SELECT  @PendingQuery = COUNT(*)
FROM    USerQuery
WHERE   QueryReply is null

SELECT  @RepliedQuery = COUNT(*)
FROM    UserQuery
WHERE   QueryReply is not null


SELECT  @TotalUSers as TOTALUSERS,
        @PendingQuery as PENDINGQUERY,
        @RepliedQuery as RepliedQuery;

END

我想以gridview的形式显示这些记录以及计算总记录我应该如何在asp.net中进行?

1 个答案:

答案 0 :(得分:0)

要在数据网格中显示序列号,您需要使用每行的索引。

Container.ItemIndex+1