protected void get_bank_list() { DataTable dt = Salary_scales.return_bank_lists("return_bank_lists"); this.gdv_banks.DataSource = dt; this.gdv_banks.Columns["record_id"].Visible = false; this.gdv_banks.DefaultCellStyle.SelectionBackColor = Color.White; this.gdv_banks.DefaultCellStyle.SelectionForeColor = Color.Black; this.gdv_banks.RowsDefaultCellStyle.BackColor = Color.LightGray; this.gdv_banks.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige; this.gdv_banks.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; this.gdv_banks.ColumnHeadersDefaultCellStyle.BackColor = Color.Black; this.gdv_banks.RowHeadersDefaultCellStyle.BackColor = Color.Black; this.gdv_banks.DefaultCellStyle.SelectionBackColor = Color.White; this.gdv_banks.DefaultCellStyle.SelectionForeColor = Color.Black; }
protected void get_bank_list() { DataTable dt = Salary_scales.return_bank_lists("return_bank_lists"); if (dt.Rows.Count != 0) { DataRow dtRow = dt.NewRow(); dtRow["record_id"] = -1; dtRow["bank_code"] = string.Empty; dtRow["bank_name"] = string.Empty; dtRow["bank_active"] = true; dt.Rows.InsertAt(dtRow, 0); cbo_bank.DisplayMember = "bank_name"; cbo_bank.ValueMember = "record_id"; cbo_bank.DataSource = dt; } }
protected void get_guard_bank_mapping() { DataTable dt = Salary_scales.return_bank_lists("select_guard_bank_details_mapping"); if (dt.Rows.Count != 0) { this.gdv_guards.DataSource = dt; this.gdv_guards.DefaultCellStyle.SelectionBackColor = Color.White; this.gdv_guards.DefaultCellStyle.SelectionForeColor = Color.Black; this.gdv_guards.RowsDefaultCellStyle.BackColor = Color.LightGray; this.gdv_guards.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige; this.gdv_guards.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; this.gdv_guards.ColumnHeadersDefaultCellStyle.BackColor = Color.Black; this.gdv_guards.RowHeadersDefaultCellStyle.BackColor = Color.Black; this.gdv_guards.DefaultCellStyle.SelectionBackColor = Color.White; this.gdv_guards.DefaultCellStyle.SelectionForeColor = Color.Black; } }