Datagrid - moving a row

  • Thread starter Thread starter Philip Rayne
  • Start date Start date
P

Philip Rayne

I have a datagrid that is populated with the columns automatically
generated. It is bound to a dataset (populated via XML).

I would like to physically move a row up and down a grid at run time. I
have added the push buttons to do this, and have the ItemCommand event
identified as where I need to add my code.

I am not sure how I can physically move a row. Is there a method for this
in the datagrid itself, or do I need to do it in the dataset instead?
 
No, it is not in the grid, it is in the table. You need to order table
records by a certain key, change the key of the record you want to move and
than rebind the grid.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top