public static void DoWork_DataGridSelectCell(ExDataGrid _dg, int _selectIndex, int _dataGridColIndex) { try { // DataGridにItemsourceを設定して、設定が確定するのは非同期で若干のタイムラグがある為の処理 ExBackgroundWorker.DoWork_Focus(_dg, 0); ExBackgroundWorker.DoWork_SelectedIndex(_dg, 10, _selectIndex); ExBackgroundWorker.DoWork_DataGridColum(_dg, 20, _dg.Columns[_dataGridColIndex]); } catch { } }
public static void DoWork_FocusForLoad(Control _ctl) { try { ExBackgroundWorker.DoWork_Focus(_ctl, 10); ExBackgroundWorker.DoWork_Focus(_ctl, 50); ExBackgroundWorker.DoWork_Focus(_ctl, 100); ExBackgroundWorker.DoWork_Focus(_ctl, 200); ExBackgroundWorker.DoWork_Focus(_ctl, 300); ExBackgroundWorker.DoWork_Focus(_ctl, 400); } catch { } }