日期:2014-05-17 浏览次数:20473 次
string sLastName = string.Empty;
protected string GetFirstTd(RepeaterItem oItem)
{
string Name = ((DataRowView)oItem.DataItem)["课别"].ToString();
if (Name == sLastName) return string.Empty;
else
{
DataView dv = new DataView( ((DataRowView)oItem.DataItem).DataView.Table);
dv.RowFilter = "课别='"+Name+"'";
sLastName = Name;
return "<td rowspan ='" + dv.Count.ToString() + "'>" + Name + "</td>";
}
}
//从grd的第rowIndex行colIndex列单元格以下count行合并
public static void 合并行(this GridView grd, int rowIndex, int colIndex, int count)
{
grd.