/// <summary> /// 设置列集合 /// </summary> /// <param name="columns">列集合</param> public ISubDataGrid Columns(params ISubGridColumn[] columns) { if (columns == null) { return(this); } foreach (var column in columns) { _option.AddColumn(column.GetOption()); } return(this); }
public void TestAddColumn_Validate_Null() { _option.AddColumn(null); Assert.AreEqual("{}", _option.ToString()); }