Silverlight 4 - Adding new Rows via the DataGrid control
I'm busy building an applicat开发者_运维百科ion where a user can copy and paste data to a silver light data-grid. If there are no rows the rows should be added via code and the rows should be updated with the pasted value. The datagrid is bound to a observablecollection.
I'm able to access the Clipboard.GetText() method to get the database but I'm not able to add datarows to the grid via code.
Perhaps you should have a look at the Silverlight 4 service release (September 2010)? It adds support to enable Add New Row capabilities in DataGrid control.
精彩评论