private void BindGridView(string index) { _tm.TaxId = Convert.ToInt16(index); _dt = _sobj.SelectTaxByTaxID(_tm); foreach (DataRow row in _dt.Rows) { hfTaxId.Value = row["TaxId"].ToString(); txtTaxname.Text = row["TaxName"].ToString(); txtTaxDesc.Text = row["TaxDesc"].ToString(); txtTaxrate.Text = row["TaxRate"].ToString(); if (row["TaxStatus"].ToString() == "True") { ddlTaxStatus.SelectedValue = "1"; } else { ddlTaxStatus.SelectedValue = "0"; } } }