Click here to Skip to main content
15,923,376 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datagrid Rows color chage Pin
Eddy Vluggen22-Mar-10 16:14
professionalEddy Vluggen22-Mar-10 16:14 
AnswerRe: Datagrid Rows color chage Pin
PIEBALDconsult22-Mar-10 8:40
mvePIEBALDconsult22-Mar-10 8:40 
Questionmove nodes up and down Pin
Jassim Rahma22-Mar-10 4:08
Jassim Rahma22-Mar-10 4:08 
AnswerRe: move nodes up and down Pin
dan!sh 22-Mar-10 4:38
professional dan!sh 22-Mar-10 4:38 
GeneralRe: move nodes up and down Pin
Jassim Rahma22-Mar-10 4:57
Jassim Rahma22-Mar-10 4:57 
GeneralRe: move nodes up and down Pin
Eddy Vluggen22-Mar-10 7:04
professionalEddy Vluggen22-Mar-10 7:04 
GeneralRe: move nodes up and down Pin
Jassim Rahma23-Mar-10 4:53
Jassim Rahma23-Mar-10 4:53 
GeneralRe: move nodes up and down Pin
Eddy Vluggen23-Mar-10 7:18
professionalEddy Vluggen23-Mar-10 7:18 
jrahma wrote:
what I actually want is just a simple MOVE UP and MOVE DOWN button which will move the row in the DataGrid as well as the actual XML file

Simple as it may sound, it still needs to be programmed. The buttons should do something to the grid, and the XML. Back to Danish;
Danish wrote:
I would use XPath or XmlDocument and then rebind the grid.

His answer is completely valid; you can use the XmlDocument-class to manipulate the XML. "Rebind the grid" means that the next step would be to load that XML back into the datagrid.

Another option would be to add a field that says "order", and to sort on that - that way the buttons only need to change a value, as opposed to changing the complete order and structure of the Xml file.
I are Troll Suspicious | :suss:

QuestionDatagridview Error Pin
kruegersck22-Mar-10 2:13
kruegersck22-Mar-10 2:13 
AnswerRe: Datagridview Error Pin
padmanabhan N22-Mar-10 2:21
padmanabhan N22-Mar-10 2:21 
GeneralRe: Datagridview Error Pin
kruegersck22-Mar-10 2:26
kruegersck22-Mar-10 2:26 
GeneralRe: Datagridview Error Pin
padmanabhan N22-Mar-10 2:35
padmanabhan N22-Mar-10 2:35 
GeneralRe: Datagridview Error Pin
kruegersck22-Mar-10 2:53
kruegersck22-Mar-10 2:53 
AnswerRe: Datagridview Error Pin
dan!sh 22-Mar-10 4:15
professional dan!sh 22-Mar-10 4:15 
GeneralRe: Datagridview Error Pin
kruegersck22-Mar-10 4:22
kruegersck22-Mar-10 4:22 
GeneralRe: Datagridview Error Pin
dan!sh 22-Mar-10 4:29
professional dan!sh 22-Mar-10 4:29 
GeneralRe: Datagridview Error Pin
kruegersck22-Mar-10 4:36
kruegersck22-Mar-10 4:36 
GeneralRe: Datagridview Error Pin
dan!sh 22-Mar-10 4:42
professional dan!sh 22-Mar-10 4:42 
Questionhow to clear cookie programitically Pin
hotthoughtguy22-Mar-10 2:08
hotthoughtguy22-Mar-10 2:08 
AnswerRe: how to clear cookie programitically Pin
hotthoughtguy22-Mar-10 2:18
hotthoughtguy22-Mar-10 2:18 
GeneralRe: how to clear cookie programitically Pin
hotthoughtguy22-Mar-10 2:27
hotthoughtguy22-Mar-10 2:27 
QuestionDataGridViewDataErrorContexts problem Pin
eyalle22-Mar-10 1:55
eyalle22-Mar-10 1:55 
AnswerRe: DataGridViewDataErrorContexts problem Pin
Luc Pattyn22-Mar-10 2:01
sitebuilderLuc Pattyn22-Mar-10 2:01 
QuestionTransfer Data From Datagrid cell IN form TO Text box IN Other Form Pin
shahramkeyboard22-Mar-10 1:46
shahramkeyboard22-Mar-10 1:46 
AnswerRe: Transfer Data From Datagrid cell IN form TO Text box IN Other Form Pin
Pete O'Hanlon22-Mar-10 2:02
mvePete O'Hanlon22-Mar-10 2:02 

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.