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

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 858

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

Similar topics

3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
0
by: Clive | last post by:
Hi, I have a datagrid whereby I specify the ForeColor for my ItemStyle to be #ff6600. However this does not change the color of the font to be above. If I change the backcolor, it changes...
0
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
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...
0
by: Smith | last post by:
I have used literal and datagrid control in my application. For literal text I have used the font size as 1. What should I select (Larger,xx-small....) for the itemStyle.Font.Size property to make...
0
by: .Net Sports | last post by:
I'm trying to display a figure in my datagrid as a currency ($100.00), but I can't use DataFormatString inside templatecolumn, itemstyle, or itemtemplate (as they imply that no attribute named...
1
by: Dick | last post by:
Is it possible to include in a theme, the ItemStyle that belongs to the BoundField of a GridView's column? i.e. the BorderColor property from the control defined below? <asp:GridView...
1
by: tshad | last post by:
I have columns with text and radio buttons that I would like to center or put to the right of the cell, but the attribute ItemStyle-HorizontalAlign="right" doesn't seem to work. ...
0
by: John | last post by:
Dear all I used C# (Visual studio 2005). I want to try to set a gridview column width with itemstyle.width. But, It is fail to control the column width I have also tried to set ROWSTYLE 's...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.