PopulateItemComboBox Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PopulateItemComboBox() method takes the item data in the supplied table and uses it to populate the specified combo box. The table must include a column for item_id and a column for item_desc.
public static void PopulateItemComboBox(
ComboBox comboBox,
DataTable table,
bool includeEmptyEntry
)
Parameters
- comboBox
- Required. Holds the combo box to be populated.
- table
- Required. Holds the table containing the data.
- includeEmptyEntry
- Required. Holds a flag that, if set to true, specifies that an empty entry be included in the combo box.