Rowvalidating event

17-Jun-2015 02:10

The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.

Please review the following URL and make sure that it is spelled correctly.

An example: their grid control proposes a property as the validation error text.

The exception instance, even though it's actually MY code that caused it, can't ever be caught afterwards.

I do not need the object of the current selected cell, but the object on which the whole row is based, in this case a Business Object whos properties make the columns of the grid.

I could go over the Data Source, but that itself is just an object and can be a Binding Source or a IBinding List or something like that - so not easy standartized way to get the wanted object.

The value "1" in the ID column corresponds to the value "Second" in the Items column. Sorry for my English and my newbie code :) Lastly, do not use the Cell Formatting event here - this event is not intended for this sort of use.

I hate it at least as much as your typical end-user, but I find it far worse to keep the app running on wrong assumptions.

How can I programmatically set the value in the cell when the form loads? @Stepler don't set the value during the formatting event (This will probably make it impossible to change the value manually or do something equally weird) - it is usually best to do in the databindingcomplete event. And are you sure that the value you are setting is in the datatable id column?

In the simple Combo Box I know a property Selected Index. @Stepler although I just tried this in the Cell Formatting event and it works unless the value you set does not match the datatable.

Hi, I am having trouble using the Rad Grid View (Row Validating Event).

When the Row Validating is fired, the values of my new row to be added are checked, if one of them is not okay, the message is shown to remind the user to input the correct values.

I hate it at least as much as your typical end-user, but I find it far worse to keep the app running on wrong assumptions.How can I programmatically set the value in the cell when the form loads? @Stepler don't set the value during the formatting event (This will probably make it impossible to change the value manually or do something equally weird) - it is usually best to do in the databindingcomplete event. And are you sure that the value you are setting is in the datatable id column?In the simple Combo Box I know a property Selected Index. @Stepler although I just tried this in the Cell Formatting event and it works unless the value you set does not match the datatable.Hi, I am having trouble using the Rad Grid View (Row Validating Event).When the Row Validating is fired, the values of my new row to be added are checked, if one of them is not okay, the message is shown to remind the user to input the correct values.There's no way for me to handle it other than wrapping my validation code in a try/catch block that catches everything.