How might I return a current count of rows in a dataset table? I tried the
obvious:

DataSet.Tables("TableName").Rows.Count

However that returns the original number of rows, and not the number of rows
filtered subsequently in my datagrid. How may I return either the number of
filtered roceds in the dataset, or lacking that the number of rows displayed
in my datagrid? Thanks...

Unfortuantely because the documentation is so deeply nested and
multi-rooted, its next to impossible to find anything specific :-S Any help
would be greatly appreciated.

Re: Rows by Miha

Miha
Mon Apr 04 15:01:52 CDT 2005

Hi Steve,

Try with
DataSet.Tables("TableName").DefaultView.Count as grid is using DataView to
get, filter, sort, ... the data.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

"Steve Schroeder" <sschroeder@merchant-gould.com> wrote in message
news:OIPKFCVOFHA.2384@tk2msftngp13.phx.gbl...
> How might I return a current count of rows in a dataset table? I tried the
> obvious:
>
> DataSet.Tables("TableName").Rows.Count
>
> However that returns the original number of rows, and not the number of
> rows
> filtered subsequently in my datagrid. How may I return either the number
> of
> filtered roceds in the dataset, or lacking that the number of rows
> displayed
> in my datagrid? Thanks...
>
> Unfortuantely because the documentation is so deeply nested and
> multi-rooted, its next to impossible to find anything specific :-S Any
> help
> would be greatly appreciated.
>
>



Re: Rows by Steve

Steve
Mon Apr 04 15:13:07 CDT 2005

Worked like a charm...thank you!

"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:uDbLnEVOFHA.244@TK2MSFTNGP12.phx.gbl...
> Hi Steve,
>
> Try with
> DataSet.Tables("TableName").DefaultView.Count as grid is using DataView to
> get, filter, sort, ... the data.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> www.rthand.com
> SLODUG - Slovene Developer Users Group www.codezone-si.info
>
> "Steve Schroeder" <sschroeder@merchant-gould.com> wrote in message
> news:OIPKFCVOFHA.2384@tk2msftngp13.phx.gbl...
> > How might I return a current count of rows in a dataset table? I tried
the
> > obvious:
> >
> > DataSet.Tables("TableName").Rows.Count
> >
> > However that returns the original number of rows, and not the number of
> > rows
> > filtered subsequently in my datagrid. How may I return either the number
> > of
> > filtered roceds in the dataset, or lacking that the number of rows
> > displayed
> > in my datagrid? Thanks...
> >
> > Unfortuantely because the documentation is so deeply nested and
> > multi-rooted, its next to impossible to find anything specific :-S Any
> > help
> > would be greatly appreciated.
> >
> >
>
>