foreach GridViewRow not seeing first row in dataset.
--------------------------------------------------------------------------------
Hi, I’m new to C# and .NET, but here is my dilemma,
In a nutshell my foreach loop is not seeing / addressing the first row of my dataset.
foreach (GridViewRow row in gvt.Rows)
{
e.Row.BackColor = Color.Red;
}
This turns all rows in my Gridview to Red except the first one. I’m assuming foreach starts at [0] and the Gridview dataset starts at [1], but I’m at a loss as to how to correct it.
I’m loading the gridview using a SQL statement from an Oracle database.
Thanks
--------------------------------------------------------------------------------
Hi, I’m new to C# and .NET, but here is my dilemma,
In a nutshell my foreach loop is not seeing / addressing the first row of my dataset.
foreach (GridViewRow row in gvt.Rows)
{
e.Row.BackColor = Color.Red;
}
This turns all rows in my Gridview to Red except the first one. I’m assuming foreach starts at [0] and the Gridview dataset starts at [1], but I’m at a loss as to how to correct it.
I’m loading the gridview using a SQL statement from an Oracle database.
Thanks