Andrew Bullock Andrew Bullock - 1 year ago 69
ASP.NET (C#) Question

How do I get Gridview to render THEAD?

How do I get the

control to render the
tags? I know
makes it put
instead of
, but I cant get the
to appear.

Answer Source

This should do it...

gv.HeaderRow.TableSection = TableRowSection.TableHeader;