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!

Format Datagrid, Column Widths

Status
Not open for further replies.

Sam050507

Programmer
Sep 13, 2005
18
0
0
US
Hi,

I'm having a tough time getting the datagrid to play nice.

cont_dg.columnNames=["Contacts", "Vendors", "idx"];
cont_dg.getColumnAt(0).width = 70;
cont_dg.getColumnAt(1).width = 200;
cont_dg.getColumnAt(2).width = 0;

This will fix the column headers and widths, but it throws the data out of wack. If I don't use that code, I see data - when I use the code, no data appears.

Anybody know of any really good, clear tutorials for using the datagrid?
 
Thanks Ken,

I'm using a binding between the datagrid and an XMLConnector.
 
Wow.

I put this at the top of my include file and it worked right off:

import mx.controls.DataGrid;

I thought it would have thrown an error if it couldn't already see that.

Long lesson learned (7.5 hours of hacking).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top