Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: implement Download functionality in windows based Application project Pin
joy_priyank22-Aug-06 0:00
joy_priyank22-Aug-06 0:00 
GeneralRe: implement Download functionality in windows based Application project Pin
Nader Elshehabi22-Aug-06 3:41
Nader Elshehabi22-Aug-06 3:41 
Questionoutlook context menu Error and PREVIEW PANE Problem Pin
K edar V20-Aug-06 19:44
K edar V20-Aug-06 19:44 
AnswerRe: outlook context menu Error and PREVIEW PANE Problem Pin
Nader Elshehabi21-Aug-06 2:07
Nader Elshehabi21-Aug-06 2:07 
GeneralRe: outlook context menu Error and PREVIEW PANE Problem Pin
K edar V21-Aug-06 2:15
K edar V21-Aug-06 2:15 
GeneralRe: outlook context menu Error and PREVIEW PANE Problem Pin
Nader Elshehabi21-Aug-06 3:03
Nader Elshehabi21-Aug-06 3:03 
QuestionDataGrid with Check Boxes Pin
Pinnapureddy20-Aug-06 19:39
Pinnapureddy20-Aug-06 19:39 
AnswerRe: DataGrid with Check Boxes Pin
Nader Elshehabi21-Aug-06 1:57
Nader Elshehabi21-Aug-06 1:57 
Hello


Pinnapureddy wrote:
Please send me the code.


It's not approperiate to ask for how the answer is posted this way. Maybe you declare that code snippets are preferable, but almost no one will post you "The code"!!

Now, to your issue. There many approaches to solve it. One is to make a column at the begining of the grid. You may cal it "Order". Now make that column invisible and store the order you want the columns to appear with in these cells. Sort the Grid according to that column.

When the user clicks up, swap the order value of the selected row with the one above and resort. When the user clicks down vice versa.

Before changing the values, check if order = 0, or order = MaxValue. If so, return without doing anything.

RegardsRose | [Rose]
GeneralRe: DataGrid with Check Boxes Pin
Pinnapureddy21-Aug-06 21:44
Pinnapureddy21-Aug-06 21:44 
QuestionCrystal Reports and filling dataset/datatable Pin
Glen Harvy20-Aug-06 19:14
Glen Harvy20-Aug-06 19:14 
Questionstartup times woes.... Pin
Super Lloyd20-Aug-06 14:10
Super Lloyd20-Aug-06 14:10 
AnswerRe: startup times woes.... Pin
S. Senthil Kumar20-Aug-06 19:04
S. Senthil Kumar20-Aug-06 19:04 
GeneralRe: startup times woes.... Pin
Super Lloyd20-Aug-06 19:22
Super Lloyd20-Aug-06 19:22 
AnswerRe: startup times woes.... Pin
V.20-Aug-06 22:40
professionalV.20-Aug-06 22:40 
GeneralRe: startup times woes.... Pin
Super Lloyd20-Aug-06 23:57
Super Lloyd20-Aug-06 23:57 
GeneralRe: startup times woes.... Pin
V.21-Aug-06 0:03
professionalV.21-Aug-06 0:03 
Questionimplementing a C++ interface (from a DLL) in C# Pin
_Liron_20-Aug-06 11:39
_Liron_20-Aug-06 11:39 
AnswerRe: implementing a C++ interface (from a DLL) in C# Pin
Christian Graus20-Aug-06 12:02
protectorChristian Graus20-Aug-06 12:02 
QuestionInvalidComObjectException was unhandled Pin
thunderbirdje20-Aug-06 10:51
thunderbirdje20-Aug-06 10:51 
AnswerRe: InvalidComObjectException was unhandled Pin
Nader Elshehabi20-Aug-06 11:07
Nader Elshehabi20-Aug-06 11:07 
QuestionRe: InvalidComObjectException was unhandled Pin
thunderbirdje20-Aug-06 12:57
thunderbirdje20-Aug-06 12:57 
AnswerRe: InvalidComObjectException was unhandled Pin
Nader Elshehabi20-Aug-06 13:36
Nader Elshehabi20-Aug-06 13:36 
AnswerRe: InvalidComObjectException was unhandled Pin
thunderbirdje21-Aug-06 2:56
thunderbirdje21-Aug-06 2:56 
QuestionCatch system keys in a Form Pin
kozu20-Aug-06 8:34
kozu20-Aug-06 8:34 
AnswerRe: Catch system keys in a Form Pin
kozu20-Aug-06 8:52
kozu20-Aug-06 8:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.