This is a migrated thread and some comments may be shown as answers.

[Solved] IsValid state?

1 Answer 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kiel
Top achievements
Rank 1
Kiel asked on 21 Apr 2009, 02:57 PM
What is the correct way to find out if the current record has errors/ is valid?  I'm using the CellValidating method, and set e.IsValid, but later I'd like to check to see if the grid has any errors later.  I could set my own variable, but it seems like the Grid should expose this somehow already.

Thanks

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 23 Apr 2009, 07:31 AM
Hi Kiel,

The RadGridView control doesn't stores any errors or IsValid states. CellValidating event can be used to stop editing process without committing of the new data (wrong data). While cell contents is not valid (args.IsValid = false) no other cell should be editable, so after edit is complete edited data must be OK.

Note: CellValidating event is fired only when user tries to commit the edited data, not fired when RadGridView loads or commits. RadGridView.Commit() just tries to commit previously edited data.
For more reference you can take a look at this online help topic.

Sincerely yours,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Kiel
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or