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

[Solved] prevent display of empty gridview

1 Answer 46 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.
Carl
Top achievements
Rank 1
Carl asked on 02 Aug 2011, 09:01 PM
Hi,

I have a hierarchical grid with 4 levels, but in practice right now we are using 2.  However, even when the bound item to the grid contains a reference to an empty or null collection, an extra empty row shows up with an expander button on the left.  How can I control the grid so that the expander button is not present when there are no children to the row?

Thanks,

Carl

1 Answer, 1 is accepted

Sort by
0
Carl
Top achievements
Rank 1
answered on 02 Aug 2011, 09:36 PM
Never mind.  I found that I can control this through the RowLoaded  and

RowIsExpandedChanging events

Tags
GridView
Asked by
Carl
Top achievements
Rank 1
Answers by
Carl
Top achievements
Rank 1
Share this question
or