Flickering is common problem in windows forms DataGridView when we use huge data to display. Overcome this problem is tricky part which we will discuss in this small snippet.
Accessing data-bound objects directly through row objects is useful when you do not have direct access to the data source containing the objects.
In this Snippet we will learn how we can access object bound to DataGridView Row. DataGridViewRow.DataBoundItem Property is the key by this property we can get our custom object quite easily.
While working on Datagridview we have to clear all rows after performing some operation. In this snippet i am combining different ways to achieve this
Using DataTable as DataSource to DataGridView as binding is an easy task, on the other hand using List<Class Objects> as DataSource is little tricky. In this tutorial we learn how we can bind List<Class Objects> to DataGridView as DataSource.