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

Custom Columns with DataGrid using IList?

Status
Not open for further replies.

topher0303

Programmer
Jan 5, 2003
186
US
I have been able to create a Datagrid and use an ArrayList as the data source. I have also added a DataGridTableStyle to the datagrid that is populated with DataGridColumnStyles. However, I cannot get the table styles to affect the columns in the datagrid. One problem is I don't know what to set the DataGridTableStyle.MappingName to. Since it is an ArrayList, there is no table name to reference. Does anyone know how to do this or is DataGridTableStyle only for ADO.Net data sources?

Thanks in advance.
Chris.
 
Nevermind. I found it on a website. The answer is to set the mapping name to the type name. For array lists, you set it to "ArrayList". The site I found it on has a very good list of FAQ for .net:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top