public void LoadClientAssumption() { string[] field = new string[5] { "ClientAssumptionId", "AssumptionId", "ClientId", "Description", "Percentage" }; FillData.FillGrid(dgvAssumption, "vwGetClientAssumption", field, ClientBasicInfoVO.ClientId); var binding = new BindingSource(); binding.DataSource = field; dgvAssumption.DataSource = binding; DataGridViewRow dr; CurrencyManager currencyManager1 = (CurrencyManager)BindingContext[binding]; currencyManager1.Position = 0; if (dgvAssumption.Rows[0].Visible == true) { currencyManager1.SuspendBinding(); dgvAssumption.Rows[0].Visible = false; }
protected void dgvAssumption_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { // You can get the grid items, just hide from here.. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)