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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Data Bound Grid Row Added Event

Thread ID:





8457 Nov 6,2003 04:53 PM UTC Nov 6,2003 06:21 PM UTC WinForms 2
Tags: GridControl
Asked On November 6, 2003 04:53 PM UTC

I know that this event doesn't exist but was wondering when it occurs if that makes sense. When is a row added to the grid and then a databound source. For debugging purposes it would be nice to know. Right now I believe the event flow is row enter, row leave, row validating, row saved then is it added? Thanks for your time. Ben

Administrator [Syncfusion]
Replied On November 6, 2003 06:15 PM UTC

Here is the event order. (Attached is a little sample that shows this order). gridDataBoundGrid1_CurrentCellMoving gridDataBoundGrid1_CurrentCellValidating gridDataBoundGrid1_RowLeave gridDataBoundGrid1_RowSaved gridDataBoundGrid1_RowEnter gridDataBoundGrid1_CurrentCellMoved

Administrator [Syncfusion]
Replied On November 6, 2003 06:21 PM UTC

Hi Ben, I'm using the Binder.EditModeChanged event: if (this.grid.Binder.IsEditing && this.grid.Binder.IsAddNew ) { CurrencyManager cm = (CurrencyManager)this.grid.Binder.BindingContext[this.DataSource, this.DataMember]; if( cm.Position != -1 ) { DataRow addedRow = ((DataRowView)cm.Current).Row; } I'm using this code to the default values for a row. Regards, Thomas


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon