| |

VerySource

 Forgot password?
 Register
Search
Author: caoowl

How to specify the colors of the first few columns in the DataList?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-18 09:54:01
| Show all posts
to:zhouji700
Oh, the text color should use ForeColor. As you provided, I tested and the background color turned red. But I'm very surprised, why is there no change with ForeColor, and the text should turn red?
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-18 16:09:01
| Show all posts
Wrongly written, the first few lines. Not the number of columns taken
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-21 22:54:01
| Show all posts
Use e.Item.ForeColor = System.Drawing.Color.Red;
My side has turned red. You can see the problem by typing the generated HTML source code.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list