hi.....
Can you give me the c sharp code to merge rows for the cells contains the same value in a datagrid.is it possible???? if so please help me......
Thanks in advance......
Merge rows in a datagrid
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Nov 19, 2009, 9:13 PM EST
protected void grdEmployee_ItemDataBound(object sender, DataGridItemEventArgs e) { if (chkChangetoNormal.Checked) { // Apply Row span for all even rows if (e.Item.ItemIndex % 2 == 0 ) { e.Item.Cells[0].RowSpan = 2; e.Item.Cells[1].RowSpan = 2; } // Remove the extra cells created due to row span for odd rows if (e.Item.ItemIndex % 2 == 1 ) { e.Item.Cells.RemoveAt(0); e.Item.Cells.RemoveAt(0); e.Item.Cells[1].HorizontalAlign = HorizontalAlign.Center ; } } } show this article also more infoRoei BarRank #1,271 · 1.4K reputationPosted Nov 19, 2009, 9:15 PM EST
in order to perform what you want you will need todo it on the DataTable level
here is the howto from MS home:
http://support.microsoft.com/kb/326080
enjoy