SmartGridView 中有合并单元格属性, 我在aspx 页面中代码<OTWebControl:SmartGridView runat="server" ID="GVList" OnRowCreated="GVList_RowCreated" AutoGenerateColumns="false" CssClass="listtable" MergeCells="1,2">
</OTWebControl:SmartGridView>能将 第一二列的临近相同内容的单元格 合并。
但我
如果aspx这样写
<OTWebControl:SmartGridView runat="server" ID="GVList" OnRowCreated="GVList_RowCreated" AutoGenerateColumns="false" CssClass="listtable" >
</OTWebControl:SmartGridView> 把MergeCells 属性去掉 然后在 CS文件中 这样写 SmartGridView.MergeCells = "1,2"; 却怎么也合并不了。。 头疼中 这两者区别在哪? 而我也必须要CS中 设置属性,可以动态控制要合并的列。。望 高手指点!!!!
</OTWebControl:SmartGridView>能将 第一二列的临近相同内容的单元格 合并。
但我
如果aspx这样写
<OTWebControl:SmartGridView runat="server" ID="GVList" OnRowCreated="GVList_RowCreated" AutoGenerateColumns="false" CssClass="listtable" >
</OTWebControl:SmartGridView> 把MergeCells 属性去掉 然后在 CS文件中 这样写 SmartGridView.MergeCells = "1,2"; 却怎么也合并不了。。 头疼中 这两者区别在哪? 而我也必须要CS中 设置属性,可以动态控制要合并的列。。望 高手指点!!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货