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中 设置属性,可以动态控制要合并的列。。望  高手指点!!!!