Question

I have got 3 columns (columns: FirstName, LastName, Tel ) For the FirstName and LastName I use GridBoundColumn this is fine. But for the last one I don't know what to use (I could have several numbers and there for I need several Rows in a Row). How can I solve this problem my DataSource is a List (string FirtsName, string Lastname, List Tel)

alt text http://www.imagefilez.com/out.php/i343457_help.jpg

Was it helpful?

Solution

Use a templatecolumn and in the itemtemplate add another nested list control. Set its datasource property to your telephone list.

This article explains this approach in detail.

You can ignore the example code about RowFiltering in the RowDataBound event and just set the datasource to your list.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top