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

How to chcek if the custom grid column can contnains null data

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marian
Top achievements
Rank 1
Marian asked on 19 Oct 2010, 04:16 PM
Hi

I created custom GridBoundColumn. I want to add required field validator in edit and insert form if the column is nullable. I want to do this for every custom column. How can i check if the data in column are nullable? When i look at DataTypeName i can not see if it is nullable or not.

Thanks

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 25 Oct 2010, 09:07 AM
Hi Marian,

Here is an approach using reflection: Determine nullable types using reflection.

Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Marian
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or