How to get the selected value of a combo box ?


  • Hi All,

            I am developing the windows application using .Net 2.0.
            I am binding the dataset to the combo box like,

                                this.cboUsers.DisplayMember = "UserName";
                                 this.cboUsers.ValueMember = "UserId";

                                 this.cboUsers.DataSource = usersTable; (usersTable - > Datatable)

             How to get the selected value in the selected index changed OR
    selected value changed event ? I need to get the selected userid.

             Can u any one help me please ?

    Thanks in Advance,



    Tuesday, April 25, 2006 2:10 PM