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

if griddata<>" " then showfooter = true

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
carlos
Top achievements
Rank 1
carlos asked on 29 Dec 2008, 05:49 PM
hy fellas,

I´d like to show the footer and evaluate the sum of the column only if the grid is not empty. how Can I achieve this?

Thanks and happy new year!!!

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Dec 2008, 06:23 PM
Hello Carlos,

A possible approach would be the following:
radGrid.ShowFooter = (radGrid.Items.Count > 0); 

Please note that you may need to rebind your RadGrid afterward.

Happy new year!

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
carlos
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or