473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Changing order on Datagrid

Hi,

How do i let a user change the order of some parameters on a web page?
suppose by default when the web page is loaded, suppose he sees this like on
a grid
PK Rule
1 Rule 1
2 Rule 2
3 Rule 3
4 Rule 4

Now I want him to change the order anyway he wants and then when he clicks
submit it should update the DB.
Is DataGrid the best way to do it?
please advice,
Stephen
May 19 '06 #1
4 1206
On Fri, 19 May 2006 14:33:25 -0700, "Stephen" <st********@hotmail.com>
wrote:
Hi,

How do i let a user change the order of some parameters on a web page?
suppose by default when the web page is loaded, suppose he sees this like on
a grid
PK Rule
1 Rule 1
2 Rule 2
3 Rule 3
4 Rule 4

Now I want him to change the order anyway he wants and then when he clicks
submit it should update the DB.
Is DataGrid the best way to do it?
please advice,
Stephen


One way you could do it is using GridView and have "move up" and "move
down" button's on each row.
Peter Kellner
http://peterkellner.net
May 19 '06 #2
Thanks Peter will try this
stephen

"PeterKellner" <pk**********@73rdstreet.com> wrote in message
news:14********************************@4ax.com...
On Fri, 19 May 2006 14:33:25 -0700, "Stephen" <st********@hotmail.com>
wrote:
Hi,

How do i let a user change the order of some parameters on a web page?
suppose by default when the web page is loaded, suppose he sees this like ona grid
PK Rule
1 Rule 1
2 Rule 2
3 Rule 3
4 Rule 4

Now I want him to change the order anyway he wants and then when he clickssubmit it should update the DB.
Is DataGrid the best way to do it?
please advice,
Stephen


One way you could do it is using GridView and have "move up" and "move
down" button's on each row.
Peter Kellner
http://peterkellner.net

May 19 '06 #3
Oops....
Peter,
is grid view in VS 2005 and v2.0?
I am using VS 2003
thanks,
stephen

"PeterKellner" <pk**********@73rdstreet.com> wrote in message
news:14********************************@4ax.com...
On Fri, 19 May 2006 14:33:25 -0700, "Stephen" <st********@hotmail.com>
wrote:
Hi,

How do i let a user change the order of some parameters on a web page?
suppose by default when the web page is loaded, suppose he sees this like ona grid
PK Rule
1 Rule 1
2 Rule 2
3 Rule 3
4 Rule 4

Now I want him to change the order anyway he wants and then when he clickssubmit it should update the DB.
Is DataGrid the best way to do it?
please advice,
Stephen


One way you could do it is using GridView and have "move up" and "move
down" button's on each row.
Peter Kellner
http://peterkellner.net

May 19 '06 #4
On Fri, 19 May 2006 15:45:59 -0700, "Stephen" <st********@hotmail.com>
wrote:
Oops....
Peter,
is grid view in VS 2005 and v2.0?
I am using VS 2003
thanks,
stephen

"PeterKellner" <pk**********@73rdstreet.com> wrote in message
news:14********************************@4ax.com.. .
On Fri, 19 May 2006 14:33:25 -0700, "Stephen" <st********@hotmail.com>
wrote:
>Hi,
>
>How do i let a user change the order of some parameters on a web page?
>suppose by default when the web page is loaded, suppose he sees this likeon >a grid
>PK Rule
>1 Rule 1
>2 Rule 2
>3 Rule 3
>4 Rule 4
>
>Now I want him to change the order anyway he wants and then when heclicks >submit it should update the DB.
>Is DataGrid the best way to do it?
>please advice,
>Stephen
>


One way you could do it is using GridView and have "move up" and "move
down" button's on each row.
Peter Kellner
http://peterkellner.net


sorry, GridView is 2.0 only.
Peter Kellner
http://peterkellner.net
May 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: mvargasp | last post by:
Hi all, I have a web form which contains a frame, (a form containing a menu on the left and a web form containing a datagrid on the right). Also there is a button (right side) which transforms...
0
by: Martin Clark | last post by:
Hi, I have a C# Windows .net application (not asp.net) which uses a datagrid to display information. The datagrid is populated from a DataView, in which I specify a sort order ("ORDER BY...
9
by: Frederik | last post by:
Hi all, I'm building a C# application that uses a M$ Acces database. In one of the queries I use something like the following: SELECT id FROM mytable WHERE id IN (20, 12, 21, 14) The result...
1
by: nm | last post by:
How can I change the order of DataGrid columns? I have a Master-Detail relationship and the columns in the datagrid look like they are lined up in alphabetical order which is not what I want.
1
by: Shawn Benson | last post by:
I have a Windows form where a user enters an order number which returns a dataset that is bound to a datagrid. The problem is when a user clicks on a cell in the datagrid, then enters another...
3
by: crjunk | last post by:
I have 4 different databases that I'm having to pull data from in order to populate a datagrid. I am able to do this, but my problem is that because I'm pulling the data from 4 different...
7
by: Dan Sikorsky | last post by:
How do you iterate thru a dataset to change money fields to a different value? Here's what I have. My dataset is filled directly from a stored procedure. ' Create Instance of Connection and...
6
by: Opa | last post by:
Hi, I have a DataGrid, whose sourceI am exporting to Excel. This works fine except for the Column ordering. My datasource is not a datatable, with a typical SELECT statement where I can...
3
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.