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

DataGrid & InsertInto(?)

P: n/a
How do I address datagrid columns in the row currently being edited by
the user.

I want to have code assign values without requiring user input.

This can occur when the row first gets the focus.

Thank you.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hi,

Would a datacolumn's default value help you?

http://msdn.microsoft.com/library/de...valuetopic.asp

Ken
----------------
"dbuchanan" <db*********@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
How do I address datagrid columns in the row currently being edited by
the user.

I want to have code assign values without requiring user input.

This can occur when the row first gets the focus.

Thank you.
Nov 21 '05 #2

P: n/a
Dbuchanan,

If the answer what Ken showed you is not what you mean, maybe you can than
use the painting event of the datagrid

By instance in a way as this (just new placed) sample on our website.

http://www.windowsformsdatagridhelp....8-1def3152436f

If you don't use an expression, than you can use the currencymanager to find
the row .

(there are samples about the currencymanager and datagrid as well on our
website)

I hope this helps,

Cor

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.