asp.net consultancy chorley ASP.NET Server Side Scripting Wigan
Website Development Radcliffe

IT Services And Support

Email : ren@techsolus.co.uk
Mobile Phone : 0788 68 41 411
Answerphone : 01204 469683
bespoke invoice systems Standish Information Technology Advice Worsley
    development systems Ramsbottom
data manipulation Farnworth access databases Whitefield SQL connections Atherton
online accessible software Leyland software compatible Coppull


Get connected and Online Tottington
remote management Makerfield code and design Aspull

ASP.NET Datagrid Columns Visible True & False - 01/11/2010

Just a simple note to remind me for the future...

<asp:datagrid id = "mygrid"      
              autogeneratecolumns = "false"
              runat = "server">

 <columns>

  <asp:BoundColumn DataField = "paalert" HeaderText = "Alert" visible = "false" />

 </columns>

</asp:datagrid>

So there's a really simple datagrid with one hidden column.  If you wish to make the column visible in the programs...

    mygrid.columns(0).visible = "true"

mygrid
is the datagrid name, columns is what we are dealing with, the (0) means it's column 0...REMEMBER we count columns left to right starting from 0, ZERO

Post A Comment

Name Comment
programming services asp.net specialist
Valid XHTML 1.0 Transitional
Admin
GD