Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want a grid, every column look like this
HTML
<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
HTML
<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

1 solution

Please find the solution below:

XML
<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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900