使用webmethod的动态gridview [英] Dynamic gridview using webmethod

查看:77
本文介绍了使用webmethod的动态gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一行显示日期



接下来两行显示重复日期的通知等等









03/08/2016

在asp.net学习



08/08/2016



java考试







10/08/2016



ooad考试是







有可能在gridview中



我尝试过:



< asp:gridview id =ffffrunat =server>

one row display date

next two lines display notification of the date repeaat so on




03/08/2016
study on asp.net

08/08/2016

java exam



10/08/2016

ooad exam it is



it is possible in gridview

What I have tried:

<asp:gridview id="ffff" runat="server" >

推荐答案

GridView 控件每个项目显示一行。你可能可以通过使用带换行符的单列来伪造它,但它不会特别好。



我建议使用 ListView控件 [ ^ ]。这将使您完全控制生成的标记。
The GridView control displays one row per item. You might be able to fake it by using a single column with line-breaks, but it won't be particularly nice.

I would suggest using the ListView control[^] instead. The will give you complete control over the generated markup.


这篇关于使用webmethod的动态gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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