datagrid new row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all,

Is there a way to make the new row in a datagrid show up at the top of the
grid?

thanks,
rodchar
 
One way would be to bind the DataGrid to a DataView and sort it on the
createDate

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Rodchar,
Is there a way to make the new row in a datagrid show up at the top of the
grid?

There is however as far as I know not in a very simple way, and I the
effects of that can be very confusing.

I use it not in exactly in this way I am telling it now, however to explain.

You can use a dataview, set in that by instance the sort on a column which
you have added and set the dataview.allownew to false, use a button set the
dataview.allownew to true, and add a row using the dataview or a
currencymanager, set the columnitem to 0 and set the allownew again to
false. Than when updating you can set the value in the addedcolumnitem to
another value.

However this kind of doing is in my eyes a lot of work, and as I said really
confusing by instance when the user add 2 rows.

Cor
 

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

Similar Threads

Datagrid deleting rows 2
datagrid event 3
An array and a datagrid 9
residual of some sort 1
move is null 2
is this a collection or not. 6
Are these too many? 2
what's the best way to loop thru this 2

Back
Top