Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multicolored text using MSFlexGrid

Status
Not open for further replies.

nbjrbr

Programmer
Feb 28, 2007
5
US
Hi All,

I'm writing an ActiveX Control as a Grid, using MSFlexGrid, and I need to show some status character in different color beside the value in the same cell, for example
Cell1: M 250
Cell2: 250 L

Anyone know how can I do that ???

Thanks

Nilson
 
maybe your " status character" should be in their own column columns, seperate from the other value ...
If there is some logic to the status value, some pattern or position or delimiter, which obviously there is, then you can easily parse out the status values from the rest.
 
Another thing that you can do is use the DataRepeater control. This control is designed for just this sort of need. You create your own activeX control using text boxes, labels, whatever, such that your control is a single line item in your database. You then put it into the datarepeater control and it will create instances of your created control, one for each line in the underlying database. This gives you pretty much absolute control over the appearance of the line.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top