Connecting Tech Pros Worldwide Forums | Help | Site Map

Dataset..

Alen Smith
Guest
 
Posts: n/a
#1: Nov 19 '05


Is it possible to sort the data is dataset. .Net 1.1.

Thanks,

Smith





Patrice
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Dataset..


See the DefaultView member... The DataTable holds the data, views allows to
create sorted, filtered, restricted views of those data...

--

"Alen Smith" <Alen_smith_Belington@hotmail.com> a écrit dans le message de
news:OCrOJIAfFHA.3620@TK2MSFTNGP09.phx.gbl...[color=blue]
>
>
> Is it possible to sort the data is dataset. .Net 1.1.
>
> Thanks,
>
> Smith
>
>
>
>[/color]


Alen Smith
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Dataset..


Where to add DefaultView member in the below code? How to SORT the data?

Dim myAdapter As New SqlDataAdapter(data from SP)

Dim ds As New DataSet

myAdapter.Fill(ds)

myDataGrid.DataSource = ds

myDataGrid.DataBind()

Thanks,

Smith





"Patrice" <nobody@nowhere.com> wrote in message
news:eIWZmPAfFHA.580@TK2MSFTNGP15.phx.gbl...[color=blue]
> See the DefaultView member... The DataTable holds the data, views allows[/color]
to[color=blue]
> create sorted, filtered, restricted views of those data...
>
> --
>
> "Alen Smith" <Alen_smith_Belington@hotmail.com> a écrit dans le message de
> news:OCrOJIAfFHA.3620@TK2MSFTNGP09.phx.gbl...[color=green]
> >
> >
> > Is it possible to sort the data is dataset. .Net 1.1.
> >
> > Thanks,
> >
> > Smith
> >
> >
> >
> >[/color]
>
>[/color]


MarkD
Guest
 
Posts: n/a
#4: Nov 19 '05

re: Dataset..


Dim _dv As DataView = New DataView(ds.Tables(0))
dv.Sort = Sort
myDataGrid.DataSource = dv
myDataGrid.DataBind()



"Alen Smith" <Alen_smith_Belington@hotmail.com> wrote in message
news:%23spfQ%23AfFHA.640@tk2msftngp13.phx.gbl...[color=blue]
> Where to add DefaultView member in the below code? How to SORT the data?
>
> Dim myAdapter As New SqlDataAdapter(data from SP)
>
> Dim ds As New DataSet
>
> myAdapter.Fill(ds)
>
> myDataGrid.DataSource = ds
>
> myDataGrid.DataBind()
>
> Thanks,
>
> Smith
>
>
>
>
>
> "Patrice" <nobody@nowhere.com> wrote in message
> news:eIWZmPAfFHA.580@TK2MSFTNGP15.phx.gbl...[color=green]
> > See the DefaultView member... The DataTable holds the data, views allows[/color]
> to[color=green]
> > create sorted, filtered, restricted views of those data...
> >
> > --
> >
> > "Alen Smith" <Alen_smith_Belington@hotmail.com> a écrit dans le message[/color][/color]
de[color=blue][color=green]
> > news:OCrOJIAfFHA.3620@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > >
> > >
> > > Is it possible to sort the data is dataset. .Net 1.1.
> > >
> > > Thanks,
> > >
> > > Smith
> > >
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Alen Smith
Guest
 
Posts: n/a
#5: Nov 19 '05

re: Dataset..


Thanks a lot.
Smith
"MarkD" <mdelcambre@docksidesoftware.com*NO_SPAM*> wrote in message
news:%23jJWQEBfFHA.3184@TK2MSFTNGP15.phx.gbl...[color=blue]
> Dim _dv As DataView = New DataView(ds.Tables(0))
> dv.Sort = Sort
> myDataGrid.DataSource = dv
> myDataGrid.DataBind()
>
>
>
> "Alen Smith" <Alen_smith_Belington@hotmail.com> wrote in message
> news:%23spfQ%23AfFHA.640@tk2msftngp13.phx.gbl...[color=green]
> > Where to add DefaultView member in the below code? How to SORT the data?
> >
> > Dim myAdapter As New SqlDataAdapter(data from SP)
> >
> > Dim ds As New DataSet
> >
> > myAdapter.Fill(ds)
> >
> > myDataGrid.DataSource = ds
> >
> > myDataGrid.DataBind()
> >
> > Thanks,
> >
> > Smith
> >
> >
> >
> >
> >
> > "Patrice" <nobody@nowhere.com> wrote in message
> > news:eIWZmPAfFHA.580@TK2MSFTNGP15.phx.gbl...[color=darkred]
> > > See the DefaultView member... The DataTable holds the data, views[/color][/color][/color]
allows[color=blue][color=green]
> > to[color=darkred]
> > > create sorted, filtered, restricted views of those data...
> > >
> > > --
> > >
> > > "Alen Smith" <Alen_smith_Belington@hotmail.com> a écrit dans le[/color][/color][/color]
message[color=blue]
> de[color=green][color=darkred]
> > > news:OCrOJIAfFHA.3620@TK2MSFTNGP09.phx.gbl...
> > > >
> > > >
> > > > Is it possible to sort the data is dataset. .Net 1.1.
> > > >
> > > > Thanks,
> > > >
> > > > Smith
> > > >
> > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread