Take this example:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclasstopic.asp


         <HeaderTemplate>

            List of items

         </HeaderTemplate>

There goes your markup for how you want the header to look.


         <ItemTemplate>

            Description: <br>
            <%# DataBinder.Eval(Container.DataItem, "StringValue") %>

            <br>

            Price: <%# DataBinder.Eval(Container.DataItem, "CurrencyValue", 
"{0:c}") %>

            <br>

            <asp:Image id="ProductImage"
                 ImageUrl='<%# DataBinder.Eval(Container.DataItem, 
"ImageValue") %>'
                 runat="server"/>

         </ItemTemplate>

And thats an example of how you can customize your itemtemplate.

A repeater can give you even more control, but at the loss of some more free 
functionality.


----- Original Message ----- 
From: "jamil tamimi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, November 19, 2005 5:13 PM
Subject: Re: [AspNetAnyQuestionIsOk] grouping headers in the datagrid


> send me an example show me how ?
>
> Mischa Kroon <[EMAIL PROTECTED]> wrote:  You can do this easily with 
> a datalist.
>
> ----- Original Message ----- 
> From: "jamil tamimi" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, November 19, 2005 2:51 PM
> Subject: [AspNetAnyQuestionIsOk] grouping headers in the datagrid
>
>
>> Dear All,
>>
>>  I want to group three column header under one common header for the 
>> three
>> column like this:
>>
>>
>>  ------------------- All headers-------------------------
>>  header one--header two ------header three
>>
>>
>> ---------------------------------
>> Yahoo! FareChase - Search multiple travel sites in one click.
>>
>> [Non-text portions of this message have been removed]
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>
>
>
> ---------------------------------
>  YAHOO! GROUPS LINKS
>
>
>    Visit your group "AspNetAnyQuestionIsOk" on the web.
>
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
>    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
> ---------------------------------
>
>
>
>
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
> 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to