After searching a lot, I got the solution
CurrencyManager currencyManager1 = (CurrencyManager)BindingContext[MyGrid.DataSource];
currencyManager1.SuspendBinding();
MyGrid.Rows[5].Visible = false;
currencyManager1.ResumeBinding();
More Related Contents:
- Using a list as a data source for DataGridView
- How to change row color in datagridview?
- update datagridview very frequently
- How to Merge DataGridView Cell in Winforms
- Binding List to DataGridView in WinForm
- How can we do pagination in datagridview in winform
- How to bind a List to a DataGridView control?
- How can I refresh c# dataGridView after update ?
- DataGridView bound to a Dictionary
- Refresh DataGridView when updating data source
- DataGridView checkbox column – value and functionality
- show Yes/NO instead True/False in datagridview
- DataGridView Using SortableBindingList
- How to create a Button that can send keys to a conrol without losing focus – Virtual Keyboard
- Rows cannot be programmatically added to the datagridview’s row collection when the control is data-bound
- Conditional DataGridView Formatting
- How to set DataGridView textbox column to multi-line?
- Exporting datagridview to csv file
- Why is my bound DataGridView throwing an “Operation not valid because it results in a reentrant call to the SetCurrentCellAddressCore function” error?
- Reading data from DataGridView in C#
- WinForms DataGridView – databind to an object with a list property (variable number of columns)
- Populating a DataGridView with Text and ProgressBars
- DataGridView bound to BindingList does not refresh when value changed
- C#: Custom sort of DataGridView
- How to refresh datagridview when closing child form?
- DataGridView Image for Button Column
- How to move focus on next cell in a datagridview on Enter key press event
- Is it possible to switch rows and columns in a datagridview?
- DataGridView changing cell background color
- Sort dataGridView columns in C# ? (Windows Form)