private DataTable FillddlSecondCategory(string value) { BASecondCategory bascat = new BASecondCategory(); DataTable _datatable3 = new DataTable(); _datatable3 = bascat.SelectSecondCategoryList("GetWithTopCatId", value); return(_datatable3); }
private void FillDataGridView() { int Snu = 0; DataTable dt = new DataTable(); _boscat.Event = "GETALL"; List <BOSecondCategory> _boseccatlist = bscat.SelectSecondCategoryList(_boscat); dt = Common.LINQToDataTable(_boseccatlist); dgvSecondCategory.Rows.Clear(); foreach (DataRow row in dt.Rows) { dgvSecondCategory.Rows.Add(); dgvSecondCategory.Rows[Snu].Cells[0].Value = Convert.ToString(row["SecondCategoryId"]); dgvSecondCategory.Rows[Snu].Cells[1].Value = Convert.ToString(row["SecondCategoryName"]); dgvSecondCategory.Rows[Snu].Cells[2].Value = Convert.ToString(row["TopCategoryName"]); ++Snu; } }
private void FillSecondCategory() { BOSecondCategory _boseccat = new BOSecondCategory(); _boseccat.Event = "GETALL"; List <BOSecondCategory> _secCatlist = bascat.SelectSecondCategoryList(_boseccat); cmbSecondCategory.DataSource = _secCatlist; cmbSecondCategory.DisplayMember = "SecondCategoryName"; cmbSecondCategory.ValueMember = "SecondCategoryId"; }
private void FilldropDownSecondCategory(string topcatid) { BASecondCategory _baseccat = new BASecondCategory(); DataTable _dt = new DataTable(); _dt = _baseccat.SelectSecondCategoryList("GetWithTopCatId", topcatid); drpSecondCategory.DataTextField = "SecondCategoryName"; drpSecondCategory.DataValueField = "SecondCategoryID"; drpSecondCategory.DataSource = _dt; drpSecondCategory.DataBind(); }
private void FillSecondddlCategory(string value) { BASecondCategory bascat = new BASecondCategory(); DataTable _datatable3 = new DataTable(); _datatable3 = bascat.SelectSecondCategoryList("GetWithTopCatId", value); ddlSecondCategory.DataTextField = "SecondCategoryName"; ddlSecondCategory.DataValueField = "SecondCategoryId"; ddlSecondCategory.DataSource = _datatable3; ddlSecondCategory.DataBind(); FillchkboxListExam(Convert.ToInt32(ddlSecondCategory.SelectedItem.Value), MerchantId); }