datagrid jointing cells

ales

New member
Joined
Jul 4, 2003
Messages
3
Hi my problem: I have datagrid - dataset - database, SQL query


matej gobo 1993
matej gobo 1980
matej gobo 1976
giba selim 1979
giba selim 1980

I would like that my datagrid be like that

1993
matej gobo 1980
1976
giba selim 1979
1980

Thank you
 
Im the only one who answers?

OK, the Grid is the false Control, you need a REPEATER:

Code:
Repeater1.DataSource = myDataTable;  //myDataTable must filled with your Datas from SQL server.
Repeater1.DataBind();


Code:
<asp:Repeater id="Repeater1" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Year").ToString()%><br>
<%# DataBinder.Eval(Container.DataItem, "OtherDB_Column").ToString()%>
</ItemTemplate>
</asp:Repeater>

Regards,
Stefan
 
Back
Top