473,385 Members | 1,320 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,385 software developers and data experts.

TemplateColumn - conditional visibility?

I'd like to dynamically turn off a whole column if I can. I can use
Visible=False, but would like to do this in code. I tried
<asp:TemplateColumn Visible='<%= IsAllowed("delete") %>' >
....
....
</asp:TemplateColumn>

but with no success.

Nov 19 '05 #1
2 1755
Read help on databinding and databinding expressions syntax.

Eliyahu

"The Colonel" <co**********@budweiser.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'd like to dynamically turn off a whole column if I can. I can use
Visible=False, but would like to do this in code. I tried
<asp:TemplateColumn Visible='<%= IsAllowed("delete") %>' >
...
...
</asp:TemplateColumn>

but with no success.

Nov 19 '05 #2
Nope - no help there.

Nov 19 '05 #3

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

Similar topics

10
by: nimmi_srivastav | last post by:
Below you will see an example of a nested conditional expression that this colleague of mine loves. He claims that it is more efficient that a multi-level if-else-if structure. Moreover, our...
1
by: Edward | last post by:
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...
1
by: Dave | last post by:
Hello. Can anybody explain me how to use TemplateColumn?
1
by: Giorgio | last post by:
Hi, Is it possible to add a condition to the value being displayed in a datagrid template column? Based on the value in the container item I would like to display one of 2 <asp:Lable> controls....
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
1
by: Jake K | last post by:
I have an ItemTemplate in a datagrid that must use a conditional statement. The templatecolumns is as follows: <asp:TemplateColumn HeaderText="Listen To File"> <ItemTemplate> <asp:HyperLink...
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"...
3
by: smuir | last post by:
I am working with a basic access form for a payroll system and need to modify it such that if an employee worked overtime, then their overtime payrate and hours show up on the report below their...
10
by: Lyn | last post by:
Hi, I would like to make a bound text box not visible if it is empty (not just disable it). This option is not available from the standard conditional formatting feature (at least, not that I can...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.