Hide the Gridview Rows and Header rows in Button click

  • Thread starter Thread starter VijayRama
  • Start date Start date
V

VijayRama

Hi,

I want to hide the Datarow and Header row in a button click event.
Please help

Thanks in Advance
 
Hi,

I want to hide the Datarow and Header row in a button click event.
Please help

Thanks in Advance

Did you try to set the GridView's ShowHeader property to False?
 
I want to hide the Datarow and Header row in a button click event.
Please help

Alexey has an answer, but note that if this is what is causing the error
you posted a few minutes ago, you need to rebuild the entire Grid on the
postback, as your changes are most likely what is causing your error.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top