473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TemplateColumn Width

Hello,

Does anyone know how to set a TemplateColumn width to 0 to
hide the column? When I try this it only decreases to the
length of the longest control within the column? I can't
set the visible property to false because I still need to
access the values within the column

Thanks

Ed
Nov 18 '05 #1
1 1957
Edward,

If you set the column to visible="false" you will still be able to access it
in the code-behind. If you need to access its value from the client, then
you are correct you can't set visible="false".

If the latter is the case (you need to access the value from the client
code) you could try using <div> tags around it and setting it's visibility
with CSS.
--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Edward" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hello,

Does anyone know how to set a TemplateColumn width to 0 to
hide the column? When I try this it only decreases to the
length of the longest control within the column? I can't
set the visible property to false because I still need to
access the values within the column

Thanks

Ed

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Das | last post by:
Hi All I'm using Temple column in Asp.Net if works fine, but I directly want to set the checked property. With Text Property: it works fin <asp:TemplateColumn HeaderText="Red...
3
by: Krzysztof Karnicki | last post by:
Hi, I need to create DataGrid with TemplateColumns in Codebehind so I do something like that: TemplateColumn templateColumn = new TemplateColumn(); templateColumn.HeaderText = "header title";...
1
by: Dave | last post by:
Hello. Can anybody explain me how to use TemplateColumn?
0
by: tshad | last post by:
I have a custom object that handles my radio buttons. It works fine if I don't use it inside of a templatecolumn. But if I wrap it with the templateColumn/itemtemplate, it doesn't work at all. I...
2
by: Jim Bancroft | last post by:
Hi everyone, I have a couple of TemplateColumns in my DataGrid that I need to hide from view....yet still have their contents available in the code-behind file. My HTML code looks like this at...
2
by: tshad | last post by:
The following gives me an error: Character is not valid The TemplateColumn <asp:TemplateColumn Visible="true" HeaderText="Meets Job Rqrmnts" ItemStyle-Width="170px"...
3
by: rn5a | last post by:
A DataGrid has the following TemplateColumn: <asp:DataGrid ID="dgCart"...OnSortCommand="SortGrid" AllowSorting="true"....> <Column> <asp:TemplateColumn HeaderImageUrl="Images\Up.gif"...
1
by: Stephen Barrett | last post by:
I have an application that was originally built with ASP.Net 1.1. We finally got permission to migrate to 2.0. Due to time constraints we migrated the web projects to 2.0 web application...
2
by: =?Utf-8?B?RXVnZW5l?= | last post by:
Hi, I use a datagrid with asp:templatecolumn, and handles the datagrid's ItemDataBound event, whereby I assign a value to this asp:templatecolumn text. e.Item.Cells.Text = e.Item.Cells.Text +...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.