for (int rowIndex = gridView.Rows.Count - 2; rowIndex >= 0; rowIndex--)
{
GridViewRow row = gridView.Rows[rowIndex];
GridViewRow previousRow = gridView.Rows[rowIndex + 1];
for (int i = 0; i < row.Cells.Count; i++)
//for (int i = 0; i < cnt; i++)
{
string rowcell = row.Cells[i].Text;
string previousRowCell = previousRow.Cells[i].Text;
if (row.Cells[i].Text == previousRow.Cells[i].Text && i==11)
{
// int j = i + 1;
row.Cells[i].RowSpan = previousRow.Cells[i].RowSpan < 2 ? 2 : previousRow.Cells[i].RowSpan + 1;
previousRow.Cells[i].Visible = false;
}
}
}

Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 2:40 AM EDT
with this code row merging working fine in EventId Column but i want to merge rows from action column also based on the eventid.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 2:43 AM EDT
There no attachment.
Regards,
Iftikar
Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 2:46 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 2:51 AM EDT
Regards,
Iftikar
Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 3:14 AM EDT
Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 3:26 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 3:52 AM EDT
Regards,
Iftikar
Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 3:57 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 4:00 AM EDT
Regards,
Iftikar
Hardik PatelRank #4,439 · 343 reputationPosted Aug 22, 2013, 4:07 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 4:13 AM EDT
Regards,
Iftikar