DataGrid & InsertInto(?)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dbuchanan

    #1

    DataGrid & InsertInto(?)

    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.

  • Ken Tucker [MVP]

    #2
    Re: DataGrid & InsertInto(?)

    Hi,

    Would a datacolumn's default value help you?

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

    Ken
    ----------------
    "dbuchanan" <dbuchanan52@ho tmail.com> wrote in message
    news:1122665969 .258859.75490@f 14g2000cwb.goog legroups.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.


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: DataGrid &amp; InsertInto(?)

      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.



      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



      Comment

      Working...