///////////////
protected void
GV_PerformanceObjective_RowDataBound(object
sender, GridViewRowEventArgs e)
{
for (int i = GV_PerformanceObjective.Rows.Count - 2; i
>= 0; i--)
{
GridViewRow
row = GV_PerformanceObjective.Rows[i];
GridViewRow
preRow = GV_PerformanceObjective.Rows[i + 1];
string
currRow = ((LinkButton)row.FindControl("lbtn_EditObjective")).Text.Trim();
string
prevRow = ((LinkButton)preRow.FindControl("lbtn_EditObjective")).Text.Trim();
if
(currRow == prevRow)
{
row.Cells[0].RowSpan =
preRow.Cells[0].RowSpan < 2 ? 2 : preRow.Cells[0].RowSpan + 1;
preRow.Cells[0].Visible = false;
}
}
}