1
Reply

datagrid formating

Seviano Wessini

Seviano Wessini

Oct 12 2005 9:52 AM
2.1k
Can someone shed some light on datagrid formating?

i have 2 requirements

1) Concatenate some fields - ie Address, Town, Zip
2) Set Column field widths

To achieve item 1) ArrayList of Objects is used - where each column is defined by a property.

To acheive item 2) I use a DataTable/DataView and GridColumnStyles

I have been unable to acheive both requirements. With a DataTable I cxannot perform the concatenate (without the use of views). I found some notes on "helper functions" but could only find information for ASP.Net datagrids.

With an ArrayList of Objects, I cannot set the column width because it seems to require a DataTable.

Any help is appreciated...

Answers (1)