Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Common error when uploading files? Pin
ZurdoDev21-Jun-12 2:37
professionalZurdoDev21-Jun-12 2:37 
Questionasp.net 2010 button Pin
classy_dog20-Jun-12 10:08
classy_dog20-Jun-12 10:08 
AnswerRe: asp.net 2010 button Pin
R. Giskard Reventlov20-Jun-12 10:47
R. Giskard Reventlov20-Jun-12 10:47 
GeneralRe: asp.net 2010 button Pin
classy_dog20-Jun-12 15:53
classy_dog20-Jun-12 15:53 
AnswerRe: asp.net 2010 button Pin
David Mujica20-Jun-12 11:03
David Mujica20-Jun-12 11:03 
AnswerRe: asp.net 2010 button Pin
trooper081421-Jun-12 8:44
trooper081421-Jun-12 8:44 
Questioncolumns in mutilple rows using any control to be exported to excel? Pin
akpaga2220-Jun-12 9:40
akpaga2220-Jun-12 9:40 
AnswerRe: columns in mutilple rows using any control to be exported to excel? Pin
Sanjay Kunjam21-Jun-12 21:16
Sanjay Kunjam21-Jun-12 21:16 
akpaga22 wrote:
Colum1 Column2 Column3

xx xxx xxx

Column4 Column5 column6

xxx xxx xxxx

 

Colum1 Column2 Column3

xx xxx xxx

Column4 Column5 column6

xxx xxx xxxx


Hi,

You can use TemplateField for doing the same.
Here is the example

<pre lang="VB">
 <asp:TemplateField>               
              <ItemTemplate>
                 <table>
                        <tr>
                            <td>
                                <asp:Label ID="column1" runat="server" Text=""></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="column2" runat="server" Text=""></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="column3" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("field1")%>
                            </td>
                            <td>
                                 <%#Eval("field2")%>
                            </td>
                            <td>
                                 <%#Eval("field3")%>
                            </td>
                        </tr>

                        <tr>
                            <td>
                                <asp:Label ID="column4" runat="server" ForeColor="GrayText" Text=""></asp:Label>
                            </td>
                            <td>
                                 <asp:Label ID="column5" runat="server" Text=""></asp:Label>
                            </td>
                            <td>
                                 <asp:Label ID="column6" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("field4")%>
                            </td>
                            <td>
                                 <%#Eval("field5")%>
                            </td>
                            <td>
                                 <%#Eval("field6")%>
                            </td>
                        </tr>
                    </table>
              </ItemTemplate>
            </asp:TemplateField>

Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------

Questionsave image in mvc3 Pin
HamedYem20-Jun-12 6:00
HamedYem20-Jun-12 6:00 
Questioncrystal report Pin
ManjuDipu19-Jun-12 23:13
ManjuDipu19-Jun-12 23:13 
AnswerRe: crystal report Pin
Sandeep Mewara20-Jun-12 1:14
mveSandeep Mewara20-Jun-12 1:14 
GeneralRe: crystal report Pin
ashjassi17-Aug-12 3:06
ashjassi17-Aug-12 3:06 
QuestionCreate Dymanic Controls in MVC Pin
Pankaj Kohli19-Jun-12 17:23
Pankaj Kohli19-Jun-12 17:23 
QuestionDownload file without extension issue Pin
Roman Muntyanu19-Jun-12 8:19
Roman Muntyanu19-Jun-12 8:19 
AnswerRe: Download file without extension issue Pin
Sandeep Mewara20-Jun-12 1:17
mveSandeep Mewara20-Jun-12 1:17 
GeneralRe: Download file without extension issue Pin
Roman Muntyanu20-Jun-12 1:34
Roman Muntyanu20-Jun-12 1:34 
QuestionSQL server 2005 Pin
sundaramoorthy.b19-Jun-12 3:19
sundaramoorthy.b19-Jun-12 3:19 
AnswerRe: SQL server 2005 Pin
David Mujica19-Jun-12 3:57
David Mujica19-Jun-12 3:57 
AnswerRe: SQL server 2005 Pin
UTHIRASAMY20-Jun-12 6:31
professionalUTHIRASAMY20-Jun-12 6:31 
AnswerRe: SQL server 2005 Pin
AshishChaudha29-Jun-12 22:45
AshishChaudha29-Jun-12 22:45 
QuestionMicrosoft Report Viewer runs great on my local machine but not on the web host server !!! Pin
ma.amer18-Jun-12 5:58
ma.amer18-Jun-12 5:58 
AnswerRe: Microsoft Report Viewer runs great on my local machine but not on the web host server !!! Pin
Sandeep Mewara18-Jun-12 6:40
mveSandeep Mewara18-Jun-12 6:40 
GeneralRe: Microsoft Report Viewer runs great on my local machine but not on the web host server !!! Pin
ma.amer19-Jun-12 0:45
ma.amer19-Jun-12 0:45 
GeneralRe: Microsoft Report Viewer runs great on my local machine but not on the web host server !!! Pin
Sandeep Mewara20-Jun-12 1:18
mveSandeep Mewara20-Jun-12 1:18 
GeneralRe: Microsoft Report Viewer runs great on my local machine but not on the web host server !!! Pin
ma.amer20-Jun-12 5:40
ma.amer20-Jun-12 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.