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

Working with the Data Grid control.

Status
Not open for further replies.

logo

Programmer
Aug 22, 2001
56
0
0
US
I am working with the data grid control and would like to be able to assign the number of colums, column headings, and width of the columns at design time. I need to work with more than 2 columns (the default setting), can anyone tell me how to do this or point me to a good resource online?

Thank you in advance.
 
try looking in the help file. I haven't used a dbgrid in a while (I usually use flexgrids when needed) but they should have .cols (used to return and set the number of columns) and they'll either have a format string or something to set the header text. as for column width, try .colwidth(x) where x is the column number you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top