Sunday, October 14, 2012

Dynamically show/hide gridview footer?


This article explains how to show/hide  GridView Footer row. Just put this in page load or RowDataBound  event.

GridView1.ShowFooter = false;

If not work then put this code.
GridView1.FooterRow.Visible = false;

what is is the difference between GridView1.ShowFooter = false; and GridView1.FooterRow.Visible = false;
Answer:
FooterRow is represents the footer row in a GridView control.
ShowFooter property is Gets or sets a value indicating whether the footer row is displayed in a GridView control.
Happy Programming!!!!

No comments:

Post a Comment