We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

RowEvent

Thread ID:

Created:

Updated:

Platform:

Replies:

43807 May 4,2006 06:35 AM May 4,2006 10:36 AM Windows Forms 4
loading
Tags: GridControl
Ravichandran
Asked On May 4, 2006 06:35 AM

Hi, How to insert a new row during runtime?. I am using Virtual Grid control not databoundgrid control. And also let me know which event will be fired if i move on to next row.(Grid control). Requirement is I have to update the DB with the changed data whenever I move from one row to next row ( if any changes been done). Is this the right way to do...let me suggest the best way to update the grid to DB. note: I am using Virtual Grid control Thanks & regards Ravi

Administrator [Syncfusion]
Replied On May 4, 2006 07:28 AM

Hi Ravi, Attached is a sample that demonstrates how to add new row with a help of the BindingManagerBase. Since GridControl is cell based there is no direct event that get triggers when a row entered or leave. But this behavior can be achieved by handling the CurrentCellMoving event and there by checking the old row index and the new row index. The SaveCellInfo event can be handled to save the value from the grid to the database. Let us know if you need any further assistance. Regards, Calvin.

GridPopulationSample_2003.zip

Ravichandran
Replied On May 4, 2006 08:27 AM

Thanks Calvin, It seems to be okay but is this the right approach to commit the changes when move on to next row? Regards, Ravi >Hi Ravi, > >Attached is a sample that demonstrates how to add new row with a help of the BindingManagerBase. Since GridControl is cell based there is no direct event that get triggers when a row entered or leave. But this behavior can be achieved by handling the CurrentCellMoving event and there by checking the old row index and the new row index. The SaveCellInfo event can be handled to save the value from the grid to the database. > >Let us know if you need any further assistance. > >Regards, >Calvin. >

GridPopulationSample_2003.zip

Administrator [Syncfusion]
Replied On May 4, 2006 09:33 AM

Hi Ravi, If it is must the data base should be updated every time on a row leave then its fine, else the gridControl1.Validated event can be handled and there the data base can be updated. Regards, Calvin.

Ravichandran
Replied On May 4, 2006 10:36 AM

Thanks for your timely help. Will get back to you if I need more info. Thanks Ravi >Hi Ravi, > >If it is must the data base should be updated every time on a row leave then its fine, else the gridControl1.Validated event can be handled and there the data base can be updated. > >Regards, >Calvin. >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;