Welcome Guest Search | Active Topics | Sign In | Register

UpdateCommand ... HELP Options
ivanomonti
Posted: Wednesday, May 21, 2008 2:53:41 PM
Rank: Newbie
Groups: Member

Joined: 5/21/2008
Posts: 7
UpdateCommand where do I find it?

where to I find information or complete examples.

Brick wall
eo_support
Posted: Thursday, May 22, 2008 10:27:12 AM
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.html

Please 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
ivanomonti
Posted: Thursday, May 22, 2008 10:32:05 AM
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.html

Please 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!!!!! Brick wall

(I like the tool, would immediately purchase ... but I want to be sure.)
eo_support
Posted: Thursday, May 22, 2008 10:39:58 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.