/// <summary> /// 添加子表格配置项 /// </summary> /// <param name="option">子表格配置项</param> public void SetSubGrid( SubGridOption option ) { SubGrid = option; }
public void TestSubGridOption() { var subGridOption = new SubGridOption { Options = { FitColumns = true } }; _option.SetSubGrid( subGridOption ); Assert.AreEqual( "{'options':{},'subgrid':{'options':{'fitColumns':true}}}", _option.ToString() ); }
/// <summary> /// 初始化子表格 /// </summary> public SubDataGrid() { _subGridOption = new SubGridOption(); _option = new DataGridOption(); }
public void TestInit() { _option = new SubGridOption(); }
/// <summary> /// 添加子表格配置项 /// </summary> /// <param name="option">子表格配置项</param> public void SetSubGrid(SubGridOption option) { SubGrid = option; }