hello ,
i am getting error on it , object refrence is not set to an instance of an object ,
my code is
if (dgvBlockSites.Rows[j].Cells[1].Value.ToString() != "-1")
{
//-------------- some code here
}
i dont know what is wrong with it , i have 4 or 5 rows in my grid , it give above mentioned error .
do any one has any idea how to deal with it ?
Regards