.Net 2.0 SqlDataSource

J

Jason Huang

Hi,

In the .Net 2.0, how do we know the row numbers of a SqlDataSource's
dataset?
Thanks for help.


Jason
 
J

Jason Huang

IEnumerable IEN = SqlDataSource1.Select(DataSourceSelectArguments.Empty);
DataView dv = (DataView)IEN;
int iDV = dv.Count;


"Duggi" <[email protected]>
???????:9d4f508c-d647-475c-89b2-3906bd8852c0@y21g2000hsf.googlegroups.com...
Please explain a bit clear "row numbers of a SqlDataSource's
dataset?"

-Cnu
 
I

Ignacio Machin ( .NET/ C# MVP )

IEnumerable IEN = SqlDataSource1.Select(DataSourceSelectArguments.Empty);
DataView dv = (DataView)IEN;
int iDV = dv.Count;

What fails in your code?

what you get from DataView.Count?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top