Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
#1 Posted : Saturday, January 12, 2019 11:08:51 PM(UTC)

Rank: Newbie

Groups: Registered
Joined: 11/14/2018(UTC)
Posts: 9

The method LoadFromArray appears to set the cell type in accordance with the value type of the element of the array that it loads.

The InputValidationError event passes lConvErr (a integer error code) and sErrDescr (a string containing the error description) to the event handler. That is, it does not pass the value of the cell before the change.

How does the error handler:

1. reset the cell value to what it was or undo the change?
2. NOT display an error message (choosing instead to change the background colour of the cell)?

Edited by user Saturday, January 12, 2019 11:12:15 PM(UTC)  | Reason: Not specified

#2 Posted : Tuesday, January 15, 2019 4:03:55 PM(UTC)

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,038

Thanks: 14 times
Was thanked: 133 time(s) in 133 post(s)
It's not clear what you want to do. Can you describe your problem in details?

The purpose of the LoadFromArray method is to populate iGrid cells with the values from the specified array AS QUICK AS POSSIBLE. Generally this method is used to speed up code execution when you need to set values for a range of cells. In this case the method works much faster compared to an equivalent loop in which you call the CellValue property.

To provide the best performance, iGrid does not coerce a value from the array to the type of the corresponding cell value if it was specified before. Array values are simply copied to iGrid "as is". And sure, the logic that checks the entered value is not used in this case too.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.