System.Windows.Forms.DataGridView.CurrentRow.get returned null. csharp

Code Example - System.Windows.Forms.DataGridView.CurrentRow.get returned null. csharp

                
                        if(datagridview1[1, dataGridView1.CurrentRow.Index].Value == null)
{
    return;
}