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.
Syncfusion Feedback

Data validation in DataBound Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

13994 May 15,2004 12:56 PM UTC May 17,2004 05:39 AM UTC Windows Forms 3
loading
Tags: GridControl
Patrick Noble
Asked On May 15, 2004 12:56 PM UTC

1. I have a DataBoundColumn with a TextFormat control linked to a decimal field in a dataset. I am able to restrict entry to single decimal place numeric using the styleinfo, but can''t get rid of the DBNull error message that appears if I type the delete key and then try to leave the field. How can I best deal with this, do I have to handle an event or is there a simpler way just using the designer? 2. My application updates other columns in the same row in a datatable based on entry into specific columns. The result of this is not reflected in the grid until I leave the row. How can I force the grid to update when I leave a cell rather than just the row?

Patrick Noble
Replied On May 16, 2004 07:38 AM UTC

OK, I see the answer to 2 in another post, use grid.binder.endedit. Just need help with 1 now. >1. I have a DataBoundColumn with a TextFormat control linked to a decimal field in a dataset. I am able to restrict entry to single decimal place numeric using the styleinfo, but can''t get rid of the DBNull error message that appears if I type the delete key and then try to leave the field. How can I best deal with this, do I have to handle an event or is there a simpler way just using the designer? > >2. My application updates other columns in the same row in a datatable based on entry into specific columns. The result of this is not reflected in the grid until I leave the row. How can I force the grid to update when I leave a cell rather than just the row? > >

Administrator [Syncfusion]
Replied On May 16, 2004 10:24 PM UTC

What version of our code are you using? In the sample below, using 2.0.5.1, I do not see a problem pressing the delete key to empty a decimal cell. What are you doing differently? WindowsApplication2_9386.zip

Patrick Noble
Replied On May 17, 2004 05:39 AM UTC

My fault. Too embarassed to explain it. >What version of our code are you using? In the sample below, using 2.0.5.1, I do not see a problem pressing the delete key to empty a decimal cell. > >What are you doing differently? > >WindowsApplication2_9386.zip > >

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

;