예제 #1
0
        MyPanelChild panelEx1_SetItemTemplate(PanelItem item)
        {
            int height = this.panelEx1.MinRowHeight;
            if (!cbxEqualHeight.Checked)
            {
                height += heightOffset;
                heightOffset++;
            }

            WorkBench pnl = new WorkBench();
            pnl.Height = height;
            pnl.DataRow = item.DataRow;
            pnl.RowIndex = item.RowIndex;
            pnl.RefreshData();
            pnl.SizeChanged +=pnl_SizeChanged;
            return pnl;
        }
예제 #2
0
 MyPanelChild panelEx1_SetItemTemplate(PanelItem item)
 {
     WorkBench pnl = new WorkBench();
     pnl.DataRow = item.DataRow;
     pnl.RowIndex = item.RowIndex;
     pnl.RefreshData();
     return pnl;
 }