private void BindCmbSecondCategory() { BOSecondCategory _boseccat = new BOSecondCategory(); BASecondCategory bascat = new BALayer.BASecondCategory(); _boseccat.Event = "GETALL"; List <BOSecondCategory> _secCatlist = bascat.SelectSecondCategoryList(_boseccat); cmbCategory.DataSource = _secCatlist; cmbCategory.DisplayMember = "SecondCategoryName"; cmbCategory.ValueMember = "SecondCategoryId"; }
private void FillSecondCategoryCombo(string eventtxt, int topcatid) { BOSecondCategory _boseccat = new BOSecondCategory(); BASecondCategory bascat = new BALayer.BASecondCategory(); List <BOSecondCategory> _secCatlist = bascat.SelectSecondCatListWithTop(eventtxt, topcatid); cmbSecondcat.DataSource = null; if (_secCatlist.Count > 0) { cmbSecondcat.DataSource = _secCatlist; cmbSecondcat.DisplayMember = "SecondCategoryName"; cmbSecondcat.ValueMember = "SecondCategoryId"; } }