开发者

WPF DataGrid: edit all cells, new row position, click once to edit

开发者 https://www.devze.com 2022-12-13 05:44 出处:网络
I was wondering if anyone could point me into the right direction with DataGrids. I\'m trying to position the new row at the top of the grid

I was wondering if anyone could point me into the right direction with DataGrids.

  1. I'm trying to position the new row at the top of the grid
  2. When the user clicks a ce开发者_如何转开发ll all cells in the row move into an editable state.

Cheers


Check this out for single click editing: http://wpf.codeplex.com/wikipage?title=Single-Click%20Editing

And this for New row formatting: http://blogs.msdn.com/b/vinsibal/archive/2008/11/05/wpf-datagrid-new-item-template-sample.aspx

I think positioning a new row on top might not be possible as the new item row is not part of the DataGrid's control template. Haven't given it a try though.

0

精彩评论

暂无评论...
验证码 换一张
取 消