The Displayed property should work. I've tried the following code, and OK
Code Snippet
void button1_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow dr in this.dataGridView1.Rows)
{
if( dr.Displayed )
{
MessageBox.Show("row " + dr.Index.ToString() + " displayed");
}
}
}
|