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

Help in grid

Status
Not open for further replies.

ahhuang

Programmer
Apr 1, 2002
61
SG
I like to know which datagrid controls can allow rows to display in alternate colors.Eg 1 row blue,1 row white..
 
Hi marcsoft,
which property should i set??
[smile]
 
You might want to try the following

grdGrid.Row = <row number>
grdGrid.Col = 0
grdGrid.RowSel = <row number>
grdGrid.ColSel = grdGrid.Cols - 1
grdGrid.FillStyle = flexFillRepeat
grdGrid.CellBackColor = vbGray

This sample will color one entire row, but It is not necessary that .Row and .RowSel be the same row. You may choose a set of rows, from Row (start) to .RowSel (ending) to color the entire block. Similarly, Col and ColSel are the starting and ending columns, not necessarily 0 and cols -1
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top