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

Row height does not working

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stew
Top achievements
Rank 1
Stew asked on 04 May 2011, 03:31 PM
Hi,

I am using radGridView.In Grid Rowloaded event i have to set visibility false to some Row based on condition. I have used the below code to set visibility false to Row.But this is not working .

e.Row.Visibility = System.Windows.

 

Visibility.Collapsed;

 

e.Row.MaxHeight = 0;

e.Row.MinHeight = 0;

e.Row.Height = 0;

FYI i have attached the screen shot for your reference.

 I have to set visibility false to particular row or set Height to "0"

can you please explain ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 04 May 2011, 03:34 PM
Hi Stew,

 

Generally it is not a good idea to play with the GridViewRow's Visibility. By that reason you are getting such blank spaces, indeed such action messes up with the RadGridView's virtualization. The better approach is to use filtering in order to display only the items that satisfy your condition.


Kind regards,
Vanya Pavlova
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
GridView
Asked by
Stew
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or