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

[Solved] Set Rowheight to zero nto working for Radgridview

1 Answer 80 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.
Shweta
Top achievements
Rank 1
Shweta asked on 09 Jul 2011, 05:59 AM
Hi ,

I have RadExpander in one of columns of RadGridview, when expander is collapsed I want to set rowheight of grid to zero such that it feels that Grid is also colapsed. Adn on expnaded event I wnat to set rowheight to be 25. But roheight=0 not working.

Below is my code:-

 

 

void radexpander_Collapsed(object sender, Telerik.Windows.RadRoutedEventArgs e)

 

{

((sender

 

as RadExpander).Tag as RadGridView).MinHeight = 0;

 

((sender

 

as RadExpander).Tag as RadGridView).RowHeight =0;

 

 

}

 

 

void radexpander_Expanded(object sender, Telerik.Windows.RadRoutedEventArgs e)

 

{

 

((sender

 

as RadExpander).Tag as RadGridView).RowHeight = 25;

 

}

Please let me know if i am doing naything wrong.

Thanks,
Shweta

1 Answer, 1 is accepted

Sort by
0
Shweta
Top achievements
Rank 1
answered on 13 Jul 2011, 06:46 AM
Hi,

Any help on above please.

Thanks & Regards,
shweta
Tags
GridView
Asked by
Shweta
Top achievements
Rank 1
Answers by
Shweta
Top achievements
Rank 1
Share this question
or