行数 [英] Number of rows

查看:87
本文介绍了行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取MS Access表中的行数?


我知道如何通过BindingManager这样做,但在这种情况下我需要

有网格控件。


int numRows =

dataGridDetails.BindingContext [dataGridDetails.DataSource,

dataGridDetails.DataMember] .Count;


我想知道如何得到一些int值,行号。


谢谢:)

How can I get the number of rows in MS Access table?

I know how to do that through the BindingManager, but in that case I need to
have Grid control.

int numRows =
dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

I would like to know how to get some int value, row numbers.

Thanks :)

推荐答案



执行类似select table(*)from table1的查询它将返回数字

行。


欢呼,


-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

Florida Department of Transportation


"华盛顿" < AB ****** @ yahoo.com>在消息中写道

news:uc ************** @ TK2MSFTNGP14.phx.gbl ...
Hi,
Do a query like "select count(*) from table1 " it will return the number
of rows.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Washington" <ab******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
我怎样才能得到MS Access表中的行数?

我知道如何通过BindingManager这样做,但在这种情况下我需要
来控制网格。

int numRows =
dataGridDetails.BindingContext [dataGridDetails.DataSource,
dataGridDetails.DataMember] .Count;

我想知道如何获取一些int值,行号。

谢谢:)
How can I get the number of rows in MS Access table?

I know how to do that through the BindingManager, but in that case I need
to have Grid control.

int numRows =
dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

I would like to know how to get some int value, row numbers.

Thanks :)



您好,

执行类似select count(*)的查询table1它将返回数字

行。


欢呼,


-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

Florida Department of Transportation


"华盛顿" < AB ****** @ yahoo.com>在消息中写道

news:uc ************** @ TK2MSFTNGP14.phx.gbl ...
Hi,
Do a query like "select count(*) from table1 " it will return the number
of rows.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Washington" <ab******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
我怎样才能得到MS Access表中的行数?

我知道如何通过BindingManager这样做,但在这种情况下我需要
来控制网格。

int numRows =
dataGridDetails.BindingContext [dataGridDetails.DataSource,
dataGridDetails.DataMember] .Count;

我想知道如何获取一些int值,行号。

谢谢:)
How can I get the number of rows in MS Access table?

I know how to do that through the BindingManager, but in that case I need
to have Grid control.

int numRows =
dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

I would like to know how to get some int value, row numbers.

Thanks :)



我也知道SQL中的那个和Max选项,但我不知道怎么能得到
选择查询的
int值?

" Ignacio Machin(.NET / C#MVP)" < ignacio.machin AT dot.state.fl.us>在消息新闻中写了

:OL ************* @tk2msftngp13.phx.gbl ...
I know that and Max option within SQL too but I am not sure how I can get
int value from select query?
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OL*************@tk2msftngp13.phx.gbl...


执行类似select table(*)from table1的查询它会返回行数。

欢呼,

-
Ignacio Machin,
ignacio.machin at dot.state .fl.us
佛罗里达州交通局

华盛顿 < AB ****** @ yahoo.com>在消息中写道
新闻:uc ************** @ TK2MSFTNGP14.phx.gbl ...
Hi,
Do a query like "select count(*) from table1 " it will return the number
of rows.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Washington" <ab******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
如何获取行数MS Access表?

我知道如何通过BindingManager做到这一点,但在这种情况下我需要
来控制网格。

int numRows =
dataGridDetails.BindingContext [dataGridDetails.DataSource,
dataGridDetails.DataMember] .Count;

我想知道如何得到一些int值,行号。

谢谢:)
How can I get the number of rows in MS Access table?

I know how to do that through the BindingManager, but in that case I need
to have Grid control.

int numRows =
dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

I would like to know how to get some int value, row numbers.

Thanks :)




这篇关于行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆