private void BorderCells(RangePosition range, int k)
        {
            var currnetSheed = reoGridControl.Worksheets[k];

            reoGridControl.DoAction(currnetSheed,
                                    new SetRangeBorderAction(range,
                                                             BorderPositions.Outside,
                                                             new RangeBorderStyle
            {
                Color = SolidColor.Black,
                Style = BorderLineStyle.BoldSolid
            })
                                    );
        }
Ejemplo n.º 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (grid != null)
            {
                var actionGroup = new WorksheetReusableActionGroup(grid.CurrentWorksheet.SelectionRange);

                this.ProcessAllPages(p =>
                {
                    WorksheetReusableAction action = p.CreateUpdateAction();
                    if (action != null)
                    {
                        actionGroup.Actions.Add(action);
                    }
                });

                grid.DoAction(actionGroup);
            }

            Close();
        }