By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,556 Members | 1,448 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,556 IT Pros & Developers. It's quick & easy.

datagrid new row

P: n/a
Hey all,

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

thanks,
rodchar
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Nov 21 '05 #2

P: n/a
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" <ro*****@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Hey all,

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

thanks,
rodchar

Nov 21 '05 #3

P: n/a
Thanks everybody for the replies. They helped.

"rodchar" wrote:
Hey all,

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

thanks,
rodchar

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.