# Datagrid and xml

**URL:** <https://forum.kirupa.com/t/datagrid-and-xml/118940>\
**Category:** Uncategorized\
**Created:** [August 10, 2004, 11:38am UTC](https://forum.kirupa.com/t/datagrid-and-xml/118940 "2004-08-10T11:38:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![straycat](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@straycat](https://forum.kirupa.com/u/straycat)\
**Post date:** [August 10, 2004, 11:38am UTC](https://forum.kirupa.com/t/datagrid-and-xml/118940/1 "2004-08-10T11:38:44Z")

</div>

Hi there,

Is it possible to arrange rows in a datagrid. ie can I swap id 6 in my datagrid and move it to number 1 on the list.

I have an eventhandler on my button (Alert) which tells me what I have selected. I suppose I should use the same type of event handler to shift stuff around… but i am a bit stuck ?

Can post code if needed.

Any sug…:h:

Thanx 🙂
