private void bindCsutomerGroupCombo() { BLLCustomerCategory obj_BLLCatagory = new BLLCustomerCategory(); DataTable dt_Catagory = obj_BLLCatagory.LoadCatagoryTableForAllData(); cbx_CustomerGroup.Items.Clear(); cbx_CustomerGroup.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable; cbx_CustomerGroup.SourceDataString = new string[] { "Catagory_Description", "Catagory_Id", "Catagory_Id", "Catagory_Id" }; cbx_CustomerGroup.ColumnNum = 3; cbx_CustomerGroup.ColumnWidth = "150;0;0,0"; cbx_CustomerGroup.SourceDataTable = dt_Catagory; cbx_CustomerGroup.Text = string.Empty; }
private void BindDataGridView() { DECustomerCategory catagory = new DECustomerCategory(); BLLCustomerCategory obj_BLLCatagory = new BLLCustomerCategory(); DataTable dt_Catagory; if (txt_FilteredDescription.Text.Trim().Length <= 0) { dt_Catagory = obj_BLLCatagory.LoadCatagoryTableForAllData(); } else { catagory.Catagory_Description = txt_FilteredDescription.Text; dt_Catagory = obj_BLLCatagory.LoadCatagoryTableForAllDataByCatagoryDescription(catagory); } dgv_Catagory.DataSource = dt_Catagory; NumberingTableForDataGridView(dt_Catagory); FormatDataGridView(); }