Hi Hal,
Lucky for you, the answer is possibly yes.
You can't do this declaratively, but you can do this in code.
If you set up an ItemCreated or ItemDataBoud event handler for the grid, you can get access to the full Grid elements.
Inside that event, you could get a handler to the currently added row. Once you have that row, what you do with it is up to you. Adding a simple colspan for the address column is pretty easy. You can remove the second column, then set colspan to 2 for the first row.
However, the rowspan might be a bit trickier. I think the easiest way to do it is somehow pass some info with the address column to indicate it should be merged with the previous column. Then get a reference to the previous one, copy the data over to the address row, and remove the first name row.
Or, maybe a lot easier, remove the top border from the address column to make it appear the rows are merged.
Another solution is to use a template column with fields bound to first name, last name and address......
I have some code somewhere that merges columns, so if you need more help, please let me know.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Alles by
Brainpower (Track 7 from the album:
Even Stil)
What's This?