How to trap DataGridViewComboBox events?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Berend
    New Member
    • Dec 2009
    • 5

    How to trap DataGridViewComboBox events?

    Does anyone know how to trap f.i. the SelectedIndexCh anged event in order to read the SelectedValue from the ComboBoxColumn?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    "trap f.i." ??
    I'm not sure I follow where you are having issue. It sounds like you know what you need and where to get it.

    On the SelectedIndexCh anged event you can get the obtain the currently selected item in a few ways.

    Comment

    • Berend
      New Member
      • Dec 2009
      • 5

      #3
      tlhintoq,

      I am looking for a code sample. Sofar all I could trap were the DataGridView events, not the DataGridViewCom boBox events.

      Do you have an example?

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        My mistake. Too early in the morning I guess. I just saw "combobox" not "datagridviewco mbobox"

        Comment

        • Berend
          New Member
          • Dec 2009
          • 5

          #5
          No problem Tlhintoq.
          Just take your time to wake up.
          It's 4:00 PM here and I am awake since 6:00 AM

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Have you seen this MSDN article on the DataGridViewCom boBoxEditingCon trol Class?

            -Frinny

            Comment

            • Berend
              New Member
              • Dec 2009
              • 5

              #7
              Thanks Frinny,

              looks like just the thing I need.

              Berend

              Comment

              • Berend
                New Member
                • Dec 2009
                • 5

                #8
                Frinny,

                your post solved my problem.
                It just took some minor adaption to fulfill my needs.
                Now it does everything I need.

                Thank you very much.

                Berend

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  I'm glad you solved your problem :)

                  -Frinny

                  Comment

                  Working...