Shahid khan

Shahid khan

  • NA
  • 7
  • 613

combobox in ribbon control

May 24 2016 5:11 AM

Hi !

i have been working on ribbon control on a windows form ,which has three combo box (name(ribboncombobox3), amount(ribboncombobox4),status(ribboncombobox5)).I intent to fetch data from a table in SQL server database and display the same in drop down of the each combo box in ribbon control.

There are three tables in SQL database.

  1. customer_information(i only need data from "Name" column of this table ie.i only need to fetch name of customer into my combobox)
  2. Amount
  3. Status

On clicking the ADD button present on the ribbon i want data to be inserted in Data grid view present on a panel control in the same windows form.

Please give a simple code in c # for the above task.

Thanks.

Shahid