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

Alternating Item Style "ForeColor" not working in Template Column

Hi,
I have a datagrid built that has an alternating item style that sets the
backcolor and ForeColor of its rows. I have 4 template columns. One of them
has a LinkButton embedded in it to perform updates. All the styles that are
set are being followed by all templated columns with the exception for the
update column. The update column does set the BackColor appropriately but
when setting its ForeColor the LinkButton's color is blue and remains blue
for all rows. However in another column which is a ButtonColumn with a
linkbutton in it as well for editing the colors are alternating fine. I
cannot make the update column a ButtonColumn because it needs to be able to
CauseValidation on the form and I could not find a property within the
ButtonColumn to do that. I tried removing all styles from the style sheet
pertaining to links but then my general windows environment settings started
to take over. If anyone has any clues as to how I can alternate the
forecolor I would greatly appreciated it.
Thanks in advance,
Max
Nov 19 '05 #1
9 2669
Just to clarify before I answer, you want to make a LinkButton column in a
DataGrid to alternate BackColor?

If so, you may have to put a function in for the BackColor value.... a
simple if then else routine to alternate the color value, placing it in there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
Hi,
I have a datagrid built that has an alternating item style that sets the
backcolor and ForeColor of its rows. I have 4 template columns. One of them
has a LinkButton embedded in it to perform updates. All the styles that are
set are being followed by all templated columns with the exception for the
update column. The update column does set the BackColor appropriately but
when setting its ForeColor the LinkButton's color is blue and remains blue
for all rows. However in another column which is a ButtonColumn with a
linkbutton in it as well for editing the colors are alternating fine. I
cannot make the update column a ButtonColumn because it needs to be able to
CauseValidation on the form and I could not find a property within the
ButtonColumn to do that. I tried removing all styles from the style sheet
pertaining to links but then my general windows environment settings started
to take over. If anyone has any clues as to how I can alternate the
forecolor I would greatly appreciated it.
Thanks in advance,
Max

Nov 19 '05 #2
No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
BackColor is alternating which leads me to believe that its not changing the
forecolor because it is a link and something is overriding the
alternatingitemstyle for the datagrid. Right now the linkbutton's text is
blue in every row. I need it to be blue/white/blue etc.

"Curt_C [MVP]" wrote:
Just to clarify before I answer, you want to make a LinkButton column in a
DataGrid to alternate BackColor?

If so, you may have to put a function in for the BackColor value.... a
simple if then else routine to alternate the color value, placing it in there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
Hi,
I have a datagrid built that has an alternating item style that sets the
backcolor and ForeColor of its rows. I have 4 template columns. One of them
has a LinkButton embedded in it to perform updates. All the styles that are
set are being followed by all templated columns with the exception for the
update column. The update column does set the BackColor appropriately but
when setting its ForeColor the LinkButton's color is blue and remains blue
for all rows. However in another column which is a ButtonColumn with a
linkbutton in it as well for editing the colors are alternating fine. I
cannot make the update column a ButtonColumn because it needs to be able to
CauseValidation on the form and I could not find a property within the
ButtonColumn to do that. I tried removing all styles from the style sheet
pertaining to links but then my general windows environment settings started
to take over. If anyone has any clues as to how I can alternate the
forecolor I would greatly appreciated it.
Thanks in advance,
Max

Nov 19 '05 #3
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a <%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
.....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
BackColor is alternating which leads me to believe that its not changing the
forecolor because it is a link and something is overriding the
alternatingitemstyle for the datagrid. Right now the linkbutton's text is
blue in every row. I need it to be blue/white/blue etc.

"Curt_C [MVP]" wrote:
Just to clarify before I answer, you want to make a LinkButton column in a
DataGrid to alternate BackColor?

If so, you may have to put a function in for the BackColor value.... a
simple if then else routine to alternate the color value, placing it in there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
Hi,
I have a datagrid built that has an alternating item style that sets the
backcolor and ForeColor of its rows. I have 4 template columns. One of them
has a LinkButton embedded in it to perform updates. All the styles that are
set are being followed by all templated columns with the exception for the
update column. The update column does set the BackColor appropriately but
when setting its ForeColor the LinkButton's color is blue and remains blue
for all rows. However in another column which is a ButtonColumn with a
linkbutton in it as well for editing the colors are alternating fine. I
cannot make the update column a ButtonColumn because it needs to be able to
CauseValidation on the form and I could not find a property within the
ButtonColumn to do that. I tried removing all styles from the style sheet
pertaining to links but then my general windows environment settings started
to take over. If anyone has any clues as to how I can alternate the
forecolor I would greatly appreciated it.
Thanks in advance,
Max

Nov 19 '05 #4
That might work if I was defining my controls in the aspx. file but I have a
base template page class. I am defining all my controls in the code behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a <%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
BackColor is alternating which leads me to believe that its not changing the
forecolor because it is a link and something is overriding the
alternatingitemstyle for the datagrid. Right now the linkbutton's text is
blue in every row. I need it to be blue/white/blue etc.

"Curt_C [MVP]" wrote:
Just to clarify before I answer, you want to make a LinkButton column in a
DataGrid to alternate BackColor?

If so, you may have to put a function in for the BackColor value.... a
simple if then else routine to alternate the color value, placing it in there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:

> Hi,
> I have a datagrid built that has an alternating item style that sets the
> backcolor and ForeColor of its rows. I have 4 template columns. One of them
> has a LinkButton embedded in it to perform updates. All the styles that are
> set are being followed by all templated columns with the exception for the
> update column. The update column does set the BackColor appropriately but
> when setting its ForeColor the LinkButton's color is blue and remains blue
> for all rows. However in another column which is a ButtonColumn with a
> linkbutton in it as well for editing the colors are alternating fine. I
> cannot make the update column a ButtonColumn because it needs to be able to
> CauseValidation on the form and I could not find a property within the
> ButtonColumn to do that. I tried removing all styles from the style sheet
> pertaining to links but then my general windows environment settings started
> to take over. If anyone has any clues as to how I can alternate the
> forecolor I would greatly appreciated it.
> Thanks in advance,
> Max

Nov 19 '05 #5
that's fine...
use the .Forecolor = GetColor(); as a function in the Item_DataBound (or
similar event) (perhaps Item_Created)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
That might work if I was defining my controls in the aspx. file but I have a
base template page class. I am defining all my controls in the code behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a <%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
BackColor is alternating which leads me to believe that its not changing the
forecolor because it is a link and something is overriding the
alternatingitemstyle for the datagrid. Right now the linkbutton's text is
blue in every row. I need it to be blue/white/blue etc.

"Curt_C [MVP]" wrote:

> Just to clarify before I answer, you want to make a LinkButton column in a
> DataGrid to alternate BackColor?
>
> If so, you may have to put a function in for the BackColor value.... a
> simple if then else routine to alternate the color value, placing it in there.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Max Weebler" wrote:
>
> > Hi,
> > I have a datagrid built that has an alternating item style that sets the
> > backcolor and ForeColor of its rows. I have 4 template columns. One of them
> > has a LinkButton embedded in it to perform updates. All the styles that are
> > set are being followed by all templated columns with the exception for the
> > update column. The update column does set the BackColor appropriately but
> > when setting its ForeColor the LinkButton's color is blue and remains blue
> > for all rows. However in another column which is a ButtonColumn with a
> > linkbutton in it as well for editing the colors are alternating fine. I
> > cannot make the update column a ButtonColumn because it needs to be able to
> > CauseValidation on the form and I could not find a property within the
> > ButtonColumn to do that. I tried removing all styles from the style sheet
> > pertaining to links but then my general windows environment settings started
> > to take over. If anyone has any clues as to how I can alternate the
> > forecolor I would greatly appreciated it.
> > Thanks in advance,
> > Max

Nov 19 '05 #6
link buttons are implemented with an anchor (<a>). anchors have psuedo css
styles for their "visited" state. you have to define the forecolor for each
of these states (visited,link,active, and hover).
-- bruce (sqlwork.com)


"Max Weebler" <Ma********@discussions.microsoft.com> wrote in message
news:EE**********************************@microsof t.com...
That might work if I was defining my controls in the aspx. file but I have
a
base template page class. I am defining all my controls in the code
behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a
<%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
> No I am trying to alternate the forecolor.... the LinkButtons
> TextColor. The
> BackColor is alternating which leads me to believe that its not
> changing the
> forecolor because it is a link and something is overriding the
> alternatingitemstyle for the datagrid. Right now the linkbutton's text
> is
> blue in every row. I need it to be blue/white/blue etc.
>
> "Curt_C [MVP]" wrote:
>
> > Just to clarify before I answer, you want to make a LinkButton column
> > in a
> > DataGrid to alternate BackColor?
> >
> > If so, you may have to put a function in for the BackColor value....
> > a
> > simple if then else routine to alternate the color value, placing it
> > in there.
> >
> > --
> > Curt Christianson
> > site: http://www.darkfalz.com
> > blog: http://blog.darkfalz.com
> >
> >
> >
> > "Max Weebler" wrote:
> >
> > > Hi,
> > > I have a datagrid built that has an alternating item style that
> > > sets the
> > > backcolor and ForeColor of its rows. I have 4 template columns.
> > > One of them
> > > has a LinkButton embedded in it to perform updates. All the styles
> > > that are
> > > set are being followed by all templated columns with the exception
> > > for the
> > > update column. The update column does set the BackColor
> > > appropriately but
> > > when setting its ForeColor the LinkButton's color is blue and
> > > remains blue
> > > for all rows. However in another column which is a ButtonColumn
> > > with a
> > > linkbutton in it as well for editing the colors are alternating
> > > fine. I
> > > cannot make the update column a ButtonColumn because it needs to be
> > > able to
> > > CauseValidation on the form and I could not find a property within
> > > the
> > > ButtonColumn to do that. I tried removing all styles from the
> > > style sheet
> > > pertaining to links but then my general windows environment
> > > settings started
> > > to take over. If anyone has any clues as to how I can alternate
> > > the
> > > forecolor I would greatly appreciated it.
> > > Thanks in advance,
> > > Max

Nov 19 '05 #7
Thanks for the advice curt but this still does not help me. If i try to set
the value for my linkbutton in Item_DataBound or Item_Created I get a object
not set to an instance of an object. Here is my code... The linkbutton
resides in a template column. What is wierd is the ButtonColumn that I
created that has an edit linkbutton alternates color on the grid. Why are
the TemplateColumn and ButtonColumn objects acting differently.

Public Class UpdateITemplateCol
Implements ITemplate

Public Sub InstantiateIn(ByVal container As System.Web.UI.Control)
Implements System.Web.UI.ITemplate.InstantiateIn
Dim btn As New LinkButton
btn.Text = "Update"
btn.ID = "Update"
btn.CommandName = "Update"

btn.CausesValidation = True
container.Controls.Add(btn)
End Sub

End Class
Public Class BaseTemplate
Inherits System.Web.UI.Page
'''Item Databound DG Event''''
Private Sub dgBedInfo_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgBedInfo.ItemDataBound

Dim LinkBtn As LinkButton = CType(e.Item.FindControl("Update"),
LinkButton)
LinkBtn.ForeColor = GetUpdateLinkColor()

End Sub

'''Item Created DG Event"""
Private Sub dgBedInfo_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgBedInfo.ItemCreated

Dim LinkBtn As LinkButton = CType(e.Item.FindControl("Update"),
LinkButton)
LinkBtn.ForeColor = GetUpdateLinkColor()

End Sub

'''Alternating Color Sub'''
Private Function GetUpdateLinkColor() As System.Drawing.Color
'AlternatingColor is a session variable accessed through public property
If (AlternatingColor = "Blue") Then
AlternatingColor = "White"
Return System.Drawing.Color.Blue
Else
AlternatingColor = "Blue"
Return System.Drawing.Color.White
End If
End Function

End Class

"Curt_C [MVP]" wrote:
that's fine...
use the .Forecolor = GetColor(); as a function in the Item_DataBound (or
similar event) (perhaps Item_Created)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
That might work if I was defining my controls in the aspx. file but I have a
base template page class. I am defining all my controls in the code behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a <%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:

> No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
> BackColor is alternating which leads me to believe that its not changing the
> forecolor because it is a link and something is overriding the
> alternatingitemstyle for the datagrid. Right now the linkbutton's text is
> blue in every row. I need it to be blue/white/blue etc.
>
> "Curt_C [MVP]" wrote:
>
> > Just to clarify before I answer, you want to make a LinkButton column in a
> > DataGrid to alternate BackColor?
> >
> > If so, you may have to put a function in for the BackColor value.... a
> > simple if then else routine to alternate the color value, placing it in there.
> >
> > --
> > Curt Christianson
> > site: http://www.darkfalz.com
> > blog: http://blog.darkfalz.com
> >
> >
> >
> > "Max Weebler" wrote:
> >
> > > Hi,
> > > I have a datagrid built that has an alternating item style that sets the
> > > backcolor and ForeColor of its rows. I have 4 template columns. One of them
> > > has a LinkButton embedded in it to perform updates. All the styles that are
> > > set are being followed by all templated columns with the exception for the
> > > update column. The update column does set the BackColor appropriately but
> > > when setting its ForeColor the LinkButton's color is blue and remains blue
> > > for all rows. However in another column which is a ButtonColumn with a
> > > linkbutton in it as well for editing the colors are alternating fine. I
> > > cannot make the update column a ButtonColumn because it needs to be able to
> > > CauseValidation on the form and I could not find a property within the
> > > ButtonColumn to do that. I tried removing all styles from the style sheet
> > > pertaining to links but then my general windows environment settings started
> > > to take over. If anyone has any clues as to how I can alternate the
> > > forecolor I would greatly appreciated it.
> > > Thanks in advance,
> > > Max

Nov 19 '05 #8
Bruce thanks,
Yes, I know that already. That may have something to do with the reason why
my links are staying blue in the templated column. However I have set an
alternatingItemstyle for the datagrid that the column is in.

dgBedInfo.AlternatingItemStyle.BackColor = Color.SlateGray
dgBedInfo.AlternatingItemStyle.ForeColor = Color.White

Now... I have a buttoncolumn as well... that also has a linkbutton in it
too. This linkbutton follows the style correctly. It alternates the
linkcolor. Just not in the templatecolumn. Why is the buttoncolumn
performing as expected and not the templatecolumn.

"Bruce Barker" wrote:
link buttons are implemented with an anchor (<a>). anchors have psuedo css
styles for their "visited" state. you have to define the forecolor for each
of these states (visited,link,active, and hover).
-- bruce (sqlwork.com)


"Max Weebler" <Ma********@discussions.microsoft.com> wrote in message
news:EE**********************************@microsof t.com...
That might work if I was defining my controls in the aspx. file but I have
a
base template page class. I am defining all my controls in the code
behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a
<%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:

> No I am trying to alternate the forecolor.... the LinkButtons
> TextColor. The
> BackColor is alternating which leads me to believe that its not
> changing the
> forecolor because it is a link and something is overriding the
> alternatingitemstyle for the datagrid. Right now the linkbutton's text
> is
> blue in every row. I need it to be blue/white/blue etc.
>
> "Curt_C [MVP]" wrote:
>
> > Just to clarify before I answer, you want to make a LinkButton column
> > in a
> > DataGrid to alternate BackColor?
> >
> > If so, you may have to put a function in for the BackColor value....
> > a
> > simple if then else routine to alternate the color value, placing it
> > in there.
> >
> > --
> > Curt Christianson
> > site: http://www.darkfalz.com
> > blog: http://blog.darkfalz.com
> >
> >
> >
> > "Max Weebler" wrote:
> >
> > > Hi,
> > > I have a datagrid built that has an alternating item style that
> > > sets the
> > > backcolor and ForeColor of its rows. I have 4 template columns.
> > > One of them
> > > has a LinkButton embedded in it to perform updates. All the styles
> > > that are
> > > set are being followed by all templated columns with the exception
> > > for the
> > > update column. The update column does set the BackColor
> > > appropriately but
> > > when setting its ForeColor the LinkButton's color is blue and
> > > remains blue
> > > for all rows. However in another column which is a ButtonColumn
> > > with a
> > > linkbutton in it as well for editing the colors are alternating
> > > fine. I
> > > cannot make the update column a ButtonColumn because it needs to be
> > > able to
> > > CauseValidation on the form and I could not find a property within
> > > the
> > > ButtonColumn to do that. I tried removing all styles from the
> > > style sheet
> > > pertaining to links but then my general windows environment
> > > settings started
> > > to take over. If anyone has any clues as to how I can alternate
> > > the
> > > forecolor I would greatly appreciated it.
> > > Thanks in advance,
> > > Max


Nov 19 '05 #9
Curt-

You were right about changing the color in the Item_DataBound event. My
problem at first is how I was trying to access the control. I was trying the
following way Dim LinkBtn As LinkButton = CType(e.Item.FindControl("Update"),
LinkButton). And each time I would get a Object reference not set exception.
Instead of trying to reference it by the Id "Update" that I had given it. I
iterated through the e.item.controls collection and grabbed each
control(cell) and then I went through the control collection of the cell.

Private Sub dgBedInfo_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgBedInfo.ItemDataBound
Dim ctrl As Control
For Each ctrl In e.Item.Controls
Dim i As Integer
For i = 0 To ctrl.Controls.Count - 1
Dim s As String = ctrl.Controls(i).GetType().ToString()
If (s = "System.Web.UI.WebControls.LinkButton") Then
CType(ctrl.Controls(i), LinkButton).ForeColor =
GetUpdateLinkColor()
End If
Next
Next
End Sub

Thanks,
Max

"Curt_C [MVP]" wrote:
that's fine...
use the .Forecolor = GetColor(); as a function in the Item_DataBound (or
similar event) (perhaps Item_Created)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:
That might work if I was defining my controls in the aspx. file but I have a
base template page class. I am defining all my controls in the code behind.

"Curt_C [MVP]" wrote:
Ahh....
The Styles/Css are determining it's coloring. You may want to start with
adding a cssClass to that item, but in an alternating way. Perhaps use a <%=
%> to hold the cssClass where the value is a function that retrieves an
alternating value

myColor = blue
Sub GetColor() as String
if(myColor=blue) then
myColor=white
else
myColor=blue
end if
return myColor
End Sub
....untested but it should be enough to get you started...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Max Weebler" wrote:

> No I am trying to alternate the forecolor.... the LinkButtons TextColor. The
> BackColor is alternating which leads me to believe that its not changing the
> forecolor because it is a link and something is overriding the
> alternatingitemstyle for the datagrid. Right now the linkbutton's text is
> blue in every row. I need it to be blue/white/blue etc.
>
> "Curt_C [MVP]" wrote:
>
> > Just to clarify before I answer, you want to make a LinkButton column in a
> > DataGrid to alternate BackColor?
> >
> > If so, you may have to put a function in for the BackColor value.... a
> > simple if then else routine to alternate the color value, placing it in there.
> >
> > --
> > Curt Christianson
> > site: http://www.darkfalz.com
> > blog: http://blog.darkfalz.com
> >
> >
> >
> > "Max Weebler" wrote:
> >
> > > Hi,
> > > I have a datagrid built that has an alternating item style that sets the
> > > backcolor and ForeColor of its rows. I have 4 template columns. One of them
> > > has a LinkButton embedded in it to perform updates. All the styles that are
> > > set are being followed by all templated columns with the exception for the
> > > update column. The update column does set the BackColor appropriately but
> > > when setting its ForeColor the LinkButton's color is blue and remains blue
> > > for all rows. However in another column which is a ButtonColumn with a
> > > linkbutton in it as well for editing the colors are alternating fine. I
> > > cannot make the update column a ButtonColumn because it needs to be able to
> > > CauseValidation on the form and I could not find a property within the
> > > ButtonColumn to do that. I tried removing all styles from the style sheet
> > > pertaining to links but then my general windows environment settings started
> > > to take over. If anyone has any clues as to how I can alternate the
> > > forecolor I would greatly appreciated it.
> > > Thanks in advance,
> > > Max

Nov 19 '05 #10

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

Similar topics

0
by: Diego | last post by:
Does the Wrap="False" feature work for a datagrid with autocolums or it's just a joke? Regards, Diego.
9
by: A P | last post by:
Hi! I have created a sample datagrid that can update data on a database. Please help me solve the problem, I have attached both aspx and code behind (aspx.vb): ______________________ ...
0
by: samir dsf | last post by:
hi i thinks its a very strange problem.I had been running my file ServerList2.aspx and i see the output(when i do f5). i am using this file serverList2.aspx on hte left side of a main page (using...
1
by: Anup | last post by:
Hi Group, I have a datagrid with dropdown in my application. I want to fill the data in dropdown by an ArrayList for that I am using "e.Item.FindControl("DropdownId")" but this function is...
0
by: james | last post by:
Hi, I am having a little trouble highlighting a column in a grid. Basically, I have 7 columns, one for each day of the week and I need some way of highlighting "today". I tried this (if the...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
4
by: mike | last post by:
how can I change the font color for an alternating row where the column data is formatted as a link? setting a style in the stylesheet for a { color:white; }
1
by: rogerford | last post by:
I have a grid which i bind with values from Database. I have events to edit and update the grid. I am not using SqlDatasource to connect to DB. Rather i am doing the updating of the grid...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
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: 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
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
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
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...
0
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...

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.