dataGridView sınıfında selected, isSelected, hasSelected, selectedRow vb. bir method olmalı, biraz kurcalayın.
Bir stringin boş mu dolu mu olduğunu kontrol ederken de kullanılan dil her ne ise onun uygun bir String sınıfı methodu kesin mevcuttur. C# için mesela IsNullOrEmpty methodu kullanılabilir Check Whether a TextBox is empty or not