Solved

GridView update where column.visible = false

Posted on 2008-10-03
2
354 Views
Last Modified: 2013-11-26
How to get a column with visible = false be able to update it the a database.
0
Comment
Question by:keithwilson1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
JunnickYso earned 500 total points
ID: 22635174
So we cannot just easily set the column visibility that easy before we bind it. We all knew it right?
the option is to do it manually like:


e.Row.Cells(0).Visible = False
e.Row.Cells(1).Visible = False

where e is the row and you can do this on run-time...
0
 

Author Closing Comment

by:keithwilson1
ID: 31502795
Great!
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IDE for Python 5 109
asp.net figure out error 3 47
c#, case, if 4 39
Convert a string to date 4 40
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question