Unable To set row visible false of a datagridview

后端 未结 6 1628
北荒
北荒 2020-11-27 05:55

I have a DataGridView where I set DataSource:

taskerEntities te = new taskerEntities();
var OMsMasterDescriptiveIndicators = te.MyT         


        
6条回答
  •  旧时难觅i
    2020-11-27 06:59

    After searching a lot, I got the solution

    CurrencyManager currencyManager1 = (CurrencyManager)BindingContext[MyGrid.DataSource];  
    currencyManager1.SuspendBinding();
    MyGrid.Rows[5].Visible = false;
    currencyManager1.ResumeBinding();
    

提交回复
热议问题