Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# HTML ASP:NET
I want a grid, every column look like this
<pre>
<table width="950" border="1">
  <tr>
    <td width="129" rowspan="4"><img src="help_clip_image020.jpg" width="130" height="126" /></td>
    <td width="702">Heading</td>
    <td width="97" rowspan="4"><form id="form1" name="form1" method="post" action="">
      <label>
      <input type="submit" name="Submit" value="Submit" />
        </label>
    </form>
    </td>
  </tr>
  <tr>
    <td>tittle1</td>
  </tr>
  <tr>
    <td height="35">Description1</td>
  </tr>
  <tr>
    <td>Description 2 </td>
  </tr>
</table>
 

 
More over the grid may be like this
<pre><table width="950" border="1">
  <tr>
    <td width="129" rowspan="4"><img src="help_clip_image020.jpg" width="130" height="126" /></td>
    <td width="702">Heading</td>
    <td width="97" rowspan="4"><form id="form1" name="form1" method="post" action="">
      <label>
      <input type="submit" name="Submit" value="Submit" />
        </label>
    </form>
    </td>
  </tr>
  <tr>
    <td>tittle1</td>
  </tr>
  <tr>
    <td height="35">Description1</td>
  </tr>
  <tr>
    <td>Description 2 </td>
  </tr>
</table>
<table width="950" border="1">
  <tr>
    <td width="129" rowspan="4"><img src="help_clip_image020.jpg" width="130" height="126" /></td>
    <td width="702">Heading</td>
    <td width="97" rowspan="4"><form id="form1" name="form1" method="post" action="">
      <label>
      <input type="submit" name="Submit" value="Submit" />
        </label>
    </form>
    </td>
  </tr>
  <tr>
    <td>tittle1</td>
  </tr>
  <tr>
    <td height="35">Description1</td>
  </tr>
  <tr>
    <td>Description 2 </td>
  </tr>
</table>
<table width="950" border="1">
  <tr>
    <td width="129" rowspan="4"><img src="help_clip_image020.jpg" width="130" height="126" /></td>
    <td width="702">Heading</td>
    <td width="97" rowspan="4"><form id="form1" name="form1" method="post" action="">
      <label>
      <input type="submit" name="Submit" value="Submit" />
        </label>
    </form>
    </td>
  </tr>
  <tr>
    <td>tittle1</td>
  </tr>
  <tr>
    <td height="35">Description1</td>
  </tr>
  <tr>
    <td>Description 2 </td>
  </tr>
</table>
 

is it possible in asp.net grid or using Telerik grid using language c#?
Posted 11-Oct-12 22:55pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please find the solution below:
 
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowHeader="False">
          <Columns>
              <asp:TemplateField>
                  <ItemTemplate>
                      <table width="950" border="1">
                          <tr>
                              <td width="129" rowspan="4">
                                  <img src="help_clip_image020.jpg" width="130" height="126" /></td>
                              <td width="702">
                                  Heading</td>
                          </tr>
                          <tr>
                              <td>
                                  tittle1</td>
                          </tr>
                          <tr>
                              <td height="35">
                                  Description1</td>
                          </tr>
                          <tr>
                              <td>
                                  Description 2
                              </td>
                          </tr>
                      </table>
                  </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField>
                  <ItemTemplate>
                      <asp:Button ID="Button2" runat="server" Text="Button" />
                  </ItemTemplate>
              </asp:TemplateField>
          </Columns>
      </asp:GridView>
 
Thanks
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 295
1 OriginalGriff 249
2 Sergey Alexandrovich Kryukov 205
3 Aajmot Sk 197
4 Sinisa Hajnal 176
0 OriginalGriff 7,800
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100