Hi Guys,
Could someone shed some light on how i can create a new dataview with first
10 rows from a datatable?

Thanks,
Sunil

Re: dataview with few rows by Miha

Miha
Fri Feb 20 12:28:57 CST 2004

Hi Sunil,

Add a column to datatable, put in row number and do a RowFilter on that
column.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Sunil Ramineni" <plugindia@hotmail.com_nospam> wrote in message
news:uRNR7f99DHA.4064@TK2MSFTNGP09.phx.gbl...
> Hi Guys,
> Could someone shed some light on how i can create a new dataview with
first
> 10 rows from a datatable?
>
> Thanks,
> Sunil
>
>



Re: dataview with few rows by Bernie

Bernie
Fri Feb 20 12:31:28 CST 2004

Hi Sunil,

This should work:
Dim vue As New DataView(ods.Tables(0))

vue.Table.Select("select top 10 from histd_")

HTH,

Bernie Yaeger

"Sunil Ramineni" <plugindia@hotmail.com_nospam> wrote in message
news:uRNR7f99DHA.4064@TK2MSFTNGP09.phx.gbl...

> Hi Guys,
> Could someone shed some light on how i can create a new dataview with
first
> 10 rows from a datatable?
>
> Thanks,
> Sunil
>
>



Re: dataview with few rows by Sunil

Sunil
Fri Feb 20 20:11:32 CST 2004

Thanks Miha and Bernie for quick response. Adding a column and doing
RowFilter worked.

Thank you very much.

: Sunil

"Bernie Yaeger" <berniey@cherwellinc.com> wrote in message
news:uwTqB$99DHA.2368@TK2MSFTNGP11.phx.gbl...
> Hi Sunil,
>
> This should work:
> Dim vue As New DataView(ods.Tables(0))
>
> vue.Table.Select("select top 10 from histd_")
>
> HTH,
>
> Bernie Yaeger
>
> "Sunil Ramineni" <plugindia@hotmail.com_nospam> wrote in message
> news:uRNR7f99DHA.4064@TK2MSFTNGP09.phx.gbl...
>
> > Hi Guys,
> > Could someone shed some light on how i can create a new dataview with
> first
> > 10 rows from a datatable?
> >
> > Thanks,
> > Sunil
> >
> >
>
>