New Posts New Posts RSS Feed: inserting data in a datagrid
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

inserting data in a datagrid

 Post Reply Post Reply
Author
tom7254 View Drop Down
Newbie
Newbie


Joined: 31-Jul-2011
Posts: 1
Post Options Post Options   Quote tom7254 Quote  Post ReplyReply Direct Link To This Post Topic: inserting data in a datagrid
    Posted: 31-Jul-2011 at 5:18pm
I am working on the Toure of DevForce Silverligh Part 2. I would like to know if i can add an employee using the datagrid and not the dataform. I would like to use the datagrid like an excel worksheet. 
Back to Top
robertg View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 15-Mar-2011
Location: California
Posts: 87
Post Options Post Options   Quote robertg Quote  Post ReplyReply Direct Link To This Post Posted: 01-Aug-2011 at 12:39pm

You should be able to do this, certainly. The DataGrid in Silverlight isn't as feature-rich as its WinForms counterpart, though, so what you'd have to do is add a new object of the appropriate sort to the ObservableCollection that your grid is bound to, change your selected item to that item, and add event handlers to handle your changes and trigger an update and save of your entity.

I'm sorry we don't have any samples which show a really dynamic connection between useful UI controls like DataGrid. This is, of course, well outside of Devforce support, but I'll try to find the time to provide something.
Back to Top
robertg View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 15-Mar-2011
Location: California
Posts: 87
Post Options Post Options   Quote robertg Quote  Post ReplyReply Direct Link To This Post Posted: 04-Aug-2011 at 5:01pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down