G
Guest
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
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