如何创建一个grdivew计划 [英] how to create a grdivew schedule

查看:57
本文介绍了如何创建一个grdivew计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



i我正在尝试使用gridview创建一个时间表,我提示开始和结束日期,开始时间和结束时间和间隔,时间之间的时间..



i能够在gridview上显示这样的日期

星期一13/8/14

星期二14/8/14

2014年3月15日星期三

星期四16/8/14

星期五17/8/14



我希望显示时间为colums /



8h00 8h30 9h00 9h30 10h00



总而言之我希望时间表看起来像这样



-------------- ----- 8h00 8h30 9h00 9h30 10h00



星期一13/8/14

星期二14/8/14

星期三15/8/14

星期四16/8/14

星期五17/8/14

解决方案

按照你所说的方式构建一个 DataTable



声明新的数据表。然后添加列作为时间。之后,继续添加行。



现在将 DataTable 分配给 GridView

Hello

i am trying to create a schedule using gridview, i am prompting for start and end date, start time and end time and interval, time between the times..

i have able to show dates on the gridview like this
Monday 13/8/14
Tuesday 14/8/14
Wednesday 15/8/14
Thursday 16/8/14
Friday 17/8/14

I want ti display times as colums like

8h00 8h30 9h00 9h30 10h00

all in all i want the schedule to look like this

-------------------8h00 8h30 9h00 9h30 10h00

Monday 13/8/14
Tuesday 14/8/14
Wednesday 15/8/14
Thursday 16/8/14
Friday 17/8/14

解决方案

Build one DataTable exactly the way you have told.

Declare new DataTable. Then add columns as the times. After that, go on adding rows.

Now assign the DataTable to the GridView.


这篇关于如何创建一个grdivew计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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