Jan 10, 2004 #1 Darci IS-IT--Management Jul 23, 2002 37 0 0 US Hi, I am pulling data into a grid from SQL Server and I want to hide one of the columns. How do I do this? Thanks, Darci "If you do what you always did, you get what you always got." Darci
Hi, I am pulling data into a grid from SQL Server and I want to hide one of the columns. How do I do this? Thanks, Darci "If you do what you always did, you get what you always got." Darci
Jan 10, 2004 #2 eb24 Programmer Dec 17, 2003 240 0 0 US There are numerous ways of accomplishing this, e.g. dynamically, explicitly, etc. Easiest way: Create a BoundColumn or TemplateColumn and set the Visible Property to "False" such as: <asp:TemplateColumn HeaderText="PrivateField" Visible="false"></asp:BoundColumn>[/blue] Hope this helps. Upvote 0 Downvote
There are numerous ways of accomplishing this, e.g. dynamically, explicitly, etc. Easiest way: Create a BoundColumn or TemplateColumn and set the Visible Property to "False" such as: <asp:TemplateColumn HeaderText="PrivateField" Visible="false"></asp:BoundColumn>[/blue] Hope this helps.
Jan 10, 2004 #3 BG12424 Programmer Jun 4, 2002 717 0 0 US Try this link: You basically only need to set visible property to false if you are using boundcolomns. http://www.c-sharpcorner.com/Code/2003/June/HideDataGridColDyna.asp regards, Brian http://www.gainesconsulting.com Upvote 0 Downvote
Try this link: You basically only need to set visible property to false if you are using boundcolomns. http://www.c-sharpcorner.com/Code/2003/June/HideDataGridColDyna.asp regards, Brian http://www.gainesconsulting.com