473,511 Members | 13,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re-Order Items in DataGrid Client-side?

I have a page where the user adds authors to a DataGrid along with various
settings for each author. I need to allow each item in the grid the ability
to move up or down in the list (basically re-order the authors) and then
save the order back to the database.

In classic ASP I would put the list of users in a list box and have 'Up' and
'Down' buttons that are controlled by client-side JavaScript to move the
items up or down in the list. Is there any way to do this with the
DataGrid?

Andrea
Nov 18 '05 #1
2 1329
The standard data grid doesn't support this.
It's gonna take a significant amount of custom code to make this happen.
This sample code might be a good start for you:
http://www.reflectionit.nl/DataIsland.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
I have a page where the user adds authors to a DataGrid along with various
settings for each author. I need to allow each item in the grid the
ability
to move up or down in the list (basically re-order the authors) and then
save the order back to the database.

In classic ASP I would put the list of users in a list box and have 'Up'
and
'Down' buttons that are controlled by client-side JavaScript to move the
items up or down in the list. Is there any way to do this with the
DataGrid?

Andrea

Nov 18 '05 #2
Thanks! However, I don't time to build the functionality in for this
version, maybe next version. I think for now, I'll look into using my old
code and a list box.

Andrea

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
The standard data grid doesn't support this.
It's gonna take a significant amount of custom code to make this happen.
This sample code might be a good start for you:
http://www.reflectionit.nl/DataIsland.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
I have a page where the user adds authors to a DataGrid along with various settings for each author. I need to allow each item in the grid the
ability
to move up or down in the list (basically re-order the authors) and then
save the order back to the database.

In classic ASP I would put the list of users in a list box and have 'Up'
and
'Down' buttons that are controlled by client-side JavaScript to move the
items up or down in the list. Is there any way to do this with the
DataGrid?

Andrea


Nov 18 '05 #3

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

Similar topics

1
4268
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
6410
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
4079
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
3987
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
18514
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
3687
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
10
4196
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
4396
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
1
3622
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
3
3468
by: presspley | last post by:
I have bought the book on advanced dreamweaver and PHP recently. I have installed MySQL and PHP server but am getting an error on the $GET statement show below. It says there is a problem with...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.