This error occured due to two reasons,
1)Either you are trying to access the columns before the datasource is assigned to the datagrid view or
2) The data source might be null
one simple validation does the job
if (dgvfind.DataSource != null && dgvfind.ColumnCount > 0)
{
dgvfind.Columns[0].HeaderText = "SL NO";
dgvfind.Columns[0].Name = "SL NO";
dgvfind.Columns[0].DataPropertyName = "slno";
}