ASP .NET网格列视图 [英] Asp .net Grid column view

查看:60
本文介绍了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>




是否可以在asp.net网格或使用语言c#的Telerik网格使用?




is it possible in asp.net grid or using Telerik grid using language c#?

推荐答案

请在下面找到解决方案:

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


这篇关于ASP .NET网格列视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆