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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

exceptions in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

40283 Jan 30,2006 04:39 PM UTC Jan 31,2006 02:27 PM UTC WinForms 3
loading
Tags: GridControl
sahon
Asked On January 30, 2006 04:39 PM UTC

I have DataBoundGrid with datatable as datasource. DataTable contains some contstraints. Is it possible to show message boxes when user entered wrong data and do not leave bad row? Wrong data means that DataRow does not meet data condition of DataTable.

sahon
Replied On January 31, 2006 10:06 AM UTC

So nobody can help me? As I understand concept of GDBG is cell event based and there are no event intenally in grid when row saving occur? So I can process this event and rollback if there were something wrong.

Administrator [Syncfusion]
Replied On January 31, 2006 01:54 PM UTC

Hi Sahon, You can handle these in the RowLeave event. Here is the code snippet. private void gridDataBoundGrid1_RowLeave(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) { try { dt.AcceptChanges(); } catch { MessageBox.Show("Enter the Column Value in \"PrimaryColumn\" Correctly"); e.Cancel = true; } Console.WriteLine("Row Leave Event"); } Refer to sample for more details Let us know if you further assistance, Regards, Madhan.

sahon
Replied On January 31, 2006 02:27 PM UTC

thank you for the answer. But I decided to use another approach with table that do not have constraints at all and after saving data apply modified data to source table. It will give me flexibility to check data and full error handling control.

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.

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

;