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

Binding to sub-objects with nulls problem

2 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin Danek
Top achievements
Rank 1
Marcin Danek asked on 24 Jan 2010, 05:07 PM
Hi,
I'm trying to reimplement a part of system using telerik gridView control.
I'm trying to bind a collection of objects to a dataGridView. This objects contains some other objects, that's why i want to use binding to sub objects. Everything works great, until a sub-object is a NULL. Then the whole row is not displayed. What I want to achive, is only not to display this column's value, and display all other values.
Is it possible using such a binding scenario?
Or should I do it in any other way (for example by initializing all these items with empty ones)? As far as these are database objects, I don't want to implement additional logic for adding such 'empty' items and deleting them before saving changes to DB.

I have similiar problem when using wpf version of this control.

Thanks for Your help in advance
Marcin Danek

2 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 27 Jan 2010, 10:22 AM
Hi Marcin Danek,

Please send us a sample project with your data to debug the problem locally. Thank you in advance.

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Marcin Danek
Top achievements
Rank 1
answered on 27 Jan 2010, 06:06 PM
Hi,
thank You for Your reply. While preparing a very simple project, that should show this problem, everything is wokring as expected.
So I will check my objects I was binding and I there are any other problems I will ask You again.

Best regards
Marcin Danek
Tags
GridView
Asked by
Marcin Danek
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Marcin Danek
Top achievements
Rank 1
Share this question
or