Rank: Newbie Groups: Member
Joined: 5/21/2008 Posts: 7
|
UpdateCommand where do I find it? where to I find information or complete examples.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, There is no need to use UpdateCommand with our Grid. Editing support is built-in with the Grid. This topic explained how to create an editable Grid: http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fediting.htmlPlease review that topic and if you have any specific questions we will be happy to answer. Sorry we do not have Italian version! Several samples for editing support are available in the sample project. Thanks
|
Rank: Newbie Groups: Member
Joined: 5/21/2008 Posts: 7
|
eo_support wrote:Hi, There is no need to use UpdateCommand with our Grid. Editing support is built-in with the Grid. This topic explained how to create an editable Grid: http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fediting.htmlPlease review that topic and if you have any specific questions we will be happy to answer. Sorry we do not have Italian version! Several samples for editing support are available in the sample project. Thanks I can not understand how to unleash the event, to update the data in the central database!!!!! (I like the tool, would immediately purchase ... but I want to be sure.)
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
The Grid tells you which item and which cell has been changed. It does not update the database for you. Just like a standard textbox control, it tells you what user has entered through its Text property, but it does not save this text into database for you.
The basic flow is like this: 1. You enable editing on the Grid; 2. User edits the data in the Grid; 3. User submits the page (for example, by clicking a separate "Submit" button); 4. You handle the Grid's ItemChanged event, inside this event handler you would check the Grid's ChangedItems property to find out which item has been changed; 5. You save the changes into your database;
Our samples demonstrate step 1 through step 4. So you can copy the code from there. Step 5 is unrelated to our Grid and you will need to implement that. If you have any questions with step 5, you will need to consult other resources.
Thanks
|