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

BackColor in DataGrid

Status
Not open for further replies.

elibb

Programmer
Oct 22, 2001
335
MX
hi.. is there a way to make the backcolor of a datagrid cell different to the rest of the grid??

thank You

Eli
 
Hi Eli,
Try this

FlxGrd.CellBackColor = vbYellow

FlxGrd is the grid name property. vbYellow (or any other) will set the back color.

HTH
Rowland
 

oops, sorry
the previous post works in the MSFlexGrid.

Rowland
 
mmm isnt there a way to do the same but in a datagrid???

thank You
Eli
 
TrueDBGrid:
Create a new Style with the color that you want. Set the cell Style to your new Style.
John
 
IFELSETHEN: how do i do that? could You give me an example??
i didnt find the style property on the grid...

thank you very much

Eli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top