private void FillData() { if (TableName == "Income") { dt_Income = LeadDL.GetIncome(); DGVTrans.DataSource = dt_Income; gridView1.Columns["Id"].Visible = false; } if (TableName == "ApartmentSize") { dt_ApaSize = LeadDL.GetApartmentsize(); DGVTrans.DataSource = dt_ApaSize; gridView1.Columns["Id"].Visible = false; } if (TableName == "CostPreference") { dt_CostPre = LeadDL.GetCostPreference(); DGVTrans.DataSource = dt_CostPre; gridView1.Columns["Id"].Visible = false; } }
public static DataTable GetCostPref() { return(LeadDL.GetCostPreference()); }