get title of data form web part from datasource

I have a data form web part that I'm using to display different lists of people based on a query string parameter. The datasource contains a field that holds the "title" the lists belong to. I want to pull back that field 1 time and use it as a header (either web part header or I can just put it in an h1 tag). Anyone know how to make this happen/ I can pull it back in the row_view, but of course it gets repeated for each itme. Thanks!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

if you put the title field into the DVWP , you can then group by that field, so it is only shown once. Group fields can be collapsed/expanded, so the user can focus on specific aspects of the data.

cheers, teylyn

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scisocAuthor Commented:
Thanks teylyn. Any idea how to style that header?

I added text after the field, but can't wrap the value-of select statement with an h2 tag?

<xsl:variable name="groupheader0">
<xsl:when test="not (@DESCRIPTION) and (@DESCRIPTION) != false()"><xsl:value-of select="' '" /></xsl:when>      
//want this wrapped in h2 tag<xsl:value-of select="@DESCRIPTION" /> Committee</xsl:otherwise>
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

<xsl:variable name="groupheader0">
   <xsl:when test="not (@DESCRIPTION) and (@DESCRIPTION) != false()">
      <xsl:value-of select="' '" />
         <xsl:value-of select="@DESCRIPTION" /> Committee

Open in new window

scisocAuthor Commented:
That's what I tried, but doesn't work. Strange? Looking at the source I see the web part div has an id, perhaps I can style the first td in that div. I'll try it out. Thanks for the answer on the main question.
scisocAuthor Commented:
In case anyone else reads this and wants and answer on stying the group header here is what I did.

Added a hidden content editor web part to the page, grabbed the id of the first tr in the web part div table and styled the first td tag (the header).

//what the source looks like
<div WebPartID="8ec6c4e5-5626-46d8-9f7a-0a3ac726dcxx" HasPers="false" id="WebPartWPQ2" width="100%" allowDelete="false" style="" ><table border="0" width="100%" xmlns:xs="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="" xmlns:__designer="" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"><tr id="group0" style="display:auto"><td><a href="javascript:" onclick="javascript:ExpGroupBy(this);return false;"><img src="/_layouts/images/minus.gif" border="0" alt="collapse" name="expand"></a>&nbsp;<b></b>Group Title</td>

<style type="text/css">
		#group0 td:first-child{
				font-size: 1.6em; font-weight: normal; margin: 0 0 0.5em 0; color: #012b4d;

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.