Click here to Skip to main content
15,917,622 members

Comments by sns60 (Top 7 by date)

sns60 15-Aug-16 5:48am View    
plz help me .. how can i add new row in my repeater when BackParameters have more than one data .
sns60 18-Aug-15 1:23am View    
hi
i tried this
Try:
Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "V_TIME_PERIOD"))
instead of
DataBinder.Eval(Container.DataItem, "V_TIME_PERIOD").ToString()

but i get this error :
string was not recognized as a valid datetime
sns60 17-Aug-15 3:32am View    
---content has been moved to the question---
sns60 17-Aug-15 3:04am View    
thanks very much
you help me
it is worked
sns60 10-Jul-15 10:12am View    
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++)
{
if (row.Cells[i].Text == previousRow.Cells[i].Text)
{
row.Cells[i].RowSpan = previousRow.Cells[i].RowSpan < 2 ? 2 :
previousRow.Cells[i].RowSpan + 1;
previousRow.Cells[i].Visible = false;
}
}
}


i used it

but it merge all cells of all columns
i want to merge same cells in one column