473,503 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ItemStyle question

Hello sirs,
In my aspx file I have a datagrid with some BoundColumn's. When a
format has been defined for a column (for colors, horizontal alignment,
etc), it adds an ItemStyle element inside the bound column element, as
in this example:
<asp:BoundColumn DataField="DEEMAIL" SortExpression="DEEMAIL"
HeaderText="DEEMAIL">
<ItemStyle ForeColor="Green"></ItemStyle>
</asp:BoundColumn>
When a format has not been defined, the bound column element doesn't
have this ItemStyle element (well, that's kind of obvious):
<asp:BoundColumn DataField="NUCPF" SortExpression="NUCPF"
HeaderText="NUCPF"></asp:Bound*Column>
My question is: programmatically (in the .cs file), how can I check if
an ItemStyle has been defined for a given column?

I searched high and low but couldn't find an answer.

I appreciate any help on this issue.
Leonardo D'Ippolito

Nov 19 '05 #1
0 866

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

Similar topics

4
1326
by: Sam Evans | last post by:
All: I've looked all over (and probably not in the right places) to try and find some example code, or documentation on how I can modify the text in a cell of a datagrid. I've found...
5
2260
by: AC | last post by:
Any reason i'm having trouble with: DataGrid1.Columns(7).ItemStyle.HorizontalAlign = HorizontalAlign.Right I'm trying to directly set the column alignment of a datagrid created at runtime.. ...
1
2206
by: VB Programmer | last post by:
I have a datagrid which is bound to a datatable that I create on the fly. How do I set the width of each column via code? Ex: Column 1 is always 100, Column 2 is always 250, etc... Thanks!
3
291
by: Manny Chohan | last post by:
I have a hyperlink column in the datagrid as follows bound to a column in thr database. How can i add another query string to it to send Row number of the datagrid to the target page: ...
0
862
by: leodippolito | last post by:
Hello sirs, In my aspx file I have a datagrid with some BoundColumn's. When a format has been defined for a column (for colors, horizontal alignment, etc), it adds an ItemStyle element...
1
1100
by: leodippolito | last post by:
Hello sirs, In my aspx file I have a datagrid with some BoundColumn's. When a format has been defined for a column (for colors, horizontal alignment, etc), it adds an ItemStyle element inside...
1
995
by: Tim::.. | last post by:
Can someone please tell me how I turn an ItemTemplate into a link? I don't what to use a HyperlinkColumn as I have two lines in one column in the datagrid coming from different sources! I would...
2
1478
by: Frank | last post by:
Hello, I am developing with VS.Net 2003 on the asp 1.1 platform. I am a few days new to using a datagrid. I found a nice tutorial and had no problems using an editable datagrid with textboxes...
0
2065
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
3
1471
by: SAL | last post by:
Hello, I'm using vs2005 and ajax exentions 1.0.61025.0. I have a page with a Gridview control that's inside of an update panel. I also have a DetailsView on this page inside of another update...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
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
7330
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...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.