Hi,

I need to read the "Nothing follows" on excel page that was transfered to datagridview

Here's my code:

foreach (DataGridViewRow row_temp in dataGridView2.Rows)
{
    string str1 = row_temp.Cells[0].Value.ToString();

    if (str1 == "Nothing follows")
    {
       MessageBox.Show("Nothing follows");
    }
}

when I insert a row.. up to row 7 "Nothing follows" appear but when I inserted row 8 it appear as null/empty..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.