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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datawindows Properties

Status
Not open for further replies.

lolo327

Programmer
Nov 25, 2003
14
GB
Hello all,

I have to change the font.face and font.charset of a datawindow (grid).

But, when I change the property, it is done for the entire column and I want it line per line (and not all lines).

How is it possible ?

Thx
 
If you want the font to be different for for each row you can put an expression in the font.face property.

Current row Arial:
Code:
dw_1.modify("columnname.Font.face=~"~tif(getrow()=currentrow(),'Arial','Courier')~"")

Based on value:
Code:
dw_1.modify("columnname.Font.face=~"~t if(columnname='value','Arial','Courier')~"")

I don't know a way to do it for the whole row, I think you have to do it for each column individually.
 
It works fine, thanks

I work with unicode Database (for Greek, ...). I have tried to do the same with the Charset but it returns an error.

Does anyone have an idea ?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top