Re: swap 2 rows
From: Steve (steve_at_nowhere.com)
Date: 02/12/04
- Next message: wjer: "inserting Checkboxlist input into Sql Server"
- Previous message: Cesar Hornsby-Zamora: "Re: Timeout expired"
- In reply to: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Next in thread: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Reply: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 14:52:01 -0800
It looks like this is not available for WebControls
I might have failed to mention that this is a web based application
(asp.net)
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:ui4mv$T8DHA.2736@TK2MSFTNGP10.phx.gbl...
> Hi Steve,
>
> You'll need to find BindingManagerBase for your grid - its Current
property
> will give you the focused row.
> For finding rows near the focused one, you might use its Position
property.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & software development
> miha at rthand com
> www.rthand.com
>
> "Steve" <steve@nowhere.com> wrote in message
> news:%23%23B14rM8DHA.2540@TK2MSFTNGP11.phx.gbl...
> > I don't want to change the ordering of the whole DataView or Database
> table,
> > I want to swap 2 rows with each others data.
> > I would need to know the ID of the row above and below the row that I
> would
> > like to swap
> >
> > (I think)
> >
> >
> > "Miha Markic [MVP C#]" <miha at rthand com> wrote in message
> > news:%2382%23DVH8DHA.2752@TK2MSFTNGP09.phx.gbl...
> > > Hi Steve,
> > >
> > > "Steve" <steve@nowhere.com> wrote in message
> > > news:O7wQoVC8DHA.2752@TK2MSFTNGP09.phx.gbl...
> > > > Hi-
> > > >
> > > > I need to make an interface to edit Technical Data records. Table
> looks
> > > > like this:
> > > >
> > > >
> > > > Tbl_Tech_Specs
> > > > [ TSID(pk) ] [ SpecName ] [ SpecValue ]
> > > >
> > > >
> > > > So if there were 2 records;
> > > >
> > > > 2 "Voltage" "5v"
> > > > 8 "Width" "11 in."
> > > >
> > > > I would like the user to be able to swap the values of 8 w/ 2.
> > > > There are no other criteria for how the records are orderd, nothing
> > > logical
> > > > though. i could try to place some sort of "Order" field, but that
> seems
> > > > hard to manage as I would want them to be unique.
> > > > Instead I was thinking of "move up" and "move down" links that would
> > swap
> > > > the values.
> > >
> > > Yes, use DataView and Order field.
> > > Why would be hard to manage it?
> > > Just put a "global" variable somewhere that contains last order value.
> > >
> > > --
> > > Miha Markic [MVP C#] - RightHand .NET consulting & software
development
> > > miha at rthand com
> > > www.rthand.com
> > >
> > >
> >
> >
>
>
- Next message: wjer: "inserting Checkboxlist input into Sql Server"
- Previous message: Cesar Hornsby-Zamora: "Re: Timeout expired"
- In reply to: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Next in thread: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Reply: Miha Markic [MVP C#]: "Re: swap 2 rows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|