473,383 Members | 1,822 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,383 software developers and data experts.

rearrange the order of items in a control ?

is there a way to have a re-arrangeable list with an asp.net control ?

I would like to have a list of database table column values in an ordered
list initially loaded by their column order in the table

HOWEVER

have the ability to use an arrow or some mechanism to rearrange the order of
the columns so that when a report is created, the columns will be in that
new order.

Some users may want to see the first name as the beginning column of a
report but some may not really care about it. In fact I have to have a
checkbox 'select all -deselect all columns' capability to determine which
columns even end up in the report.

Thank you,
-Greg
Apr 25 '06 #1
2 1921
You can dynamically add columns to a databound control, such as a gridview a,
if that's what you are asking. You use something like
GridView.Columns.Add(DataControlField field); you can then ask the user what
order the fields should apear and programatically create them at run time in
that order.

"hazz" wrote:
is there a way to have a re-arrangeable list with an asp.net control ?

I would like to have a list of database table column values in an ordered
list initially loaded by their column order in the table

HOWEVER

have the ability to use an arrow or some mechanism to rearrange the order of
the columns so that when a report is created, the columns will be in that
new order.

Some users may want to see the first name as the beginning column of a
report but some may not really care about it. In fact I have to have a
checkbox 'select all -deselect all columns' capability to determine which
columns even end up in the report.

Thank you,
-Greg

Apr 25 '06 #2
Thank you. The only way I can think of is to use textboxes and have the user
manually put numbers in text boxes and use that info..But I can see problems
if they put in duplicate numbers, etc. I guess drag and drop or arrows that
move the whole line up in order (from top to bottom) could only be done with
Winforms..or tricky javascript-dom-html tricks. -greg

"clickon" <cl*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
You can dynamically add columns to a databound control, such as a gridview
a,
if that's what you are asking. You use something like
GridView.Columns.Add(DataControlField field); you can then ask the user
what
order the fields should apear and programatically create them at run time
in
that order.

"hazz" wrote:
is there a way to have a re-arrangeable list with an asp.net control ?

I would like to have a list of database table column values in an ordered
list initially loaded by their column order in the table

HOWEVER

have the ability to use an arrow or some mechanism to rearrange the order
of
the columns so that when a report is created, the columns will be in that
new order.

Some users may want to see the first name as the beginning column of a
report but some may not really care about it. In fact I have to have a
checkbox 'select all -deselect all columns' capability to determine
which
columns even end up in the report.

Thank you,
-Greg

Apr 26 '06 #3

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

Similar topics

2
by: Andrea | last post by:
Hi, I'm trying to emulate part of our client-server application as a web site so customers can use it, and I'm stuck when it comes to re-ordering items in a list. Basically we have a list of...
7
by: Marcio Rosa da Silva | last post by:
Hi! In dictionaries, unlinke lists, it doesn't matter the order one inserts the contents, elements are stored using its own rules. Ex: >>> d = {3: 4, 1: 2} >>> d {1: 2, 3: 4}
1
by: Nick Stubbs | last post by:
Can anyone tell me how to code the listbox so I can move an item up and down the listbox with the mouse. For example, the play list in Winamp 5 can be sorted by you selecting a song and moving it...
0
by: tommazzo | last post by:
I'm currently writing a photo album sotware in C#. I'm using a ListView component to diaplay thumbnail previews of the photos and want to give the user the possibility to rearrange the photos via a...
12
by: Jozef | last post by:
Hello, Does anyone here know for sure, when you do a For Each loop on a forms controls collection, does Access cycle through them in Alphabetical order or control ID or ???. Any ideas? ...
2
by: Xela | last post by:
Hi all, I have radio button list in a user control which when selection changed fire an event which will modify the current Thread culture. This user control is on general page which contain...
2
by: Al Reid | last post by:
I'm using VB 2005. I have a production application where I load a ListView with information from several sources based on user interaction. At some point I need to iterate through the Items...
2
by: letmefly | last post by:
Hello , i use a method that has a Control as parameter ex. public static void Method(Control c) This control can be RadioButtonList, DropDownList , CheckBoxList , ListBox ..All of these...
2
by: laxwrestler27 | last post by:
Hello everyone, I'm creating a program for a courier service that takes info from a database to make a 2d array with the necessary info, then puts that on to an excel spreadsheet per delivery. ...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.