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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Datagrid currentcellchange won''t fire

Thread ID:

Created:

Updated:

Platform:

Replies:

36666 Nov 6,2005 12:00 PM UTC Nov 6,2005 01:17 PM UTC WinForms 1
loading
Tags: GridControl
Mike
Asked On November 6, 2005 12:00 PM UTC

I have a typed dataset attached to a grid. I have three columns, price which is a double, total which is a double and quantity which is a int. I check currentcellchange event to see if the user has been changing values, if this event fires I calculate the total(total = quantity * price) and assign the value to the total column in the dataset. I would rather add an expression to the grid and let it do this for me but I couldn''t figure that out(I am working in the IDE). Anyway, everything works as I would expect unless the user types in a 0 for either quantity or price. If they do the currentcellchange doesn''t fire. Funny thing is if they they type 0.0, it does fire. This is frustrating becuase I don''t have to type 1.0 to get it to work right, just typing 1 works as I would expect. Can anyone please help? THANKS.

Mike
Replied On November 6, 2005 01:17 PM UTC

Nevermind. I figured it out. I had to (re-add?) to the nulltext property of the datagridcolumnstyle collection. >I have a typed dataset attached to a grid. I have three columns, price which is a double, total which is a double and quantity which is a int. I check currentcellchange event to see if the user has been changing values, if this event fires I calculate the total(total = quantity * price) and assign the value to the total column in the dataset. I would rather add an expression to the grid and let it do this for me but I couldn''t figure that out(I am working in the IDE). Anyway, everything works as I would expect unless the user types in a 0 for either quantity or price. If they do the currentcellchange doesn''t fire. Funny thing is if they they type 0.0, it does fire. This is frustrating becuase I don''t have to type 1.0 to get it to work right, just typing 1 works as I would expect. Can anyone please help? THANKS.

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

;