Re: swap 2 rows

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Steve (steve_at_nowhere.com)
Date: 02/12/04


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
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Monthly Cigar Swap Pairings for August 2007
    ... that allowed everyone to swap with someone new. ... schnauzer and a Schneider, a Nixster and a Bikster, an old German, a new ... RichardW - Rob Nixster ... Alex W. - Steve Heath ...
    (alt.smokers.cigars)
  • Re: Monthly Cigar Swap Pairings for August 2007
    ... that allowed everyone to swap with someone new. ... schnauzer and a Schneider, a Nixster and a Bikster, an old German, a new ... RichardW - Rob Nixster ... Alex W. - Steve Heath ...
    (alt.smokers.cigars)
  • Re: swap 2 rows
    ... will give you the focused row. ... > I want to swap 2 rows with each others data. ... >>> I need to make an interface to edit Technical Data records. ... use DataView and Order field. ...
    (microsoft.public.dotnet.framework.adonet)
  • Monthly Cigar Swap Pairings for August 2007
    ... that allowed everyone to swap with someone new. ... schnauzer and a Schneider, a Nixster and a Bikster, an old German, a new ... RichardW - Rob Nixster ... Alex W. - Steve Heath ...
    (alt.smokers.cigars)
  • Re: swap 2 rows
    ... > You'll need to find BindingManagerBase for your grid - its Current ... > will give you the focused row. ... >> like to swap ...
    (microsoft.public.dotnet.framework.adonet)