public void SelectRow(BvgRow <TItem> ActiveRow, bool DoClear) { if (DoClear) { Cmd_Clear_Selection(); } short j = -1; string[] UpdatePkg = new string[ActiveRow.Cells.Count() * 2]; foreach (var c in ActiveRow.Cells) { c.IsSelected = true; c.CssClassBase = CellStyle.CS.ToString(); UpdatePkg[++j] = c.ID; UpdatePkg[++j] = c.CssClassFull.ToString(); //c.InvokePropertyChanged(); } BvgJsInterop.SetAttributeBatch(UpdatePkg, "class"); //ActiveRow.InvokePropertyChanged(); //InvokePropertyChanged(); }
public void SelectCell(BvgCell parCell, bool doFocus) { ActiveCell = parCell; ActiveRow = parCell.bvgRow; ActiveColumn = parCell.bvgColumn; SelectActiveRow(); SelectActiveCell(false); if (doFocus) { ActiveCellFocus(); } }