Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据网格,有四列说项目名称,购买率,数量,金额。我想将数量单元格设置为可编辑,并在获得焦点时选择单元格内容,我还想关注单元格说金额单元格时按数量列中的 Enter 键如何实现此目的...
这应该工作
//Focus to cell dataGrid1.CurrentCell = new DataGridCellInfo(dataGrid1.Items[/*index*/], dataGrid1.Columns[/*index*/]); //Begins edit dataGrid1.BeginEdit();