动态地在Gridview中绑定一个月 [英] Binding a Months in a Gridview dynamically

查看:65
本文介绍了动态地在Gridview中绑定一个月的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我如何解决这个问题??????



我的表格上有一个gridview,

i我在页面加载事件上传递了两个日期。

假设日期是2012,1,1和2013,1,1

然后从2012年1月1日到2013年1月1日全部几个月应显示在Gridview的列中。

如果稍后我更改日期,则相应的月份应显示在gridview中。



怎么做到这一点。

可以帮助我吗?



提前致谢。

解决方案

硬编码

它很容易我认为有很多方法。这是基本的做法



需要3个下拉列表,并在第一个下拉列表中加载所有12个月,并在另一个下拉列表中加载日期和另一年

Can any one tell me how to solve this??????

I have one gridview on my form,
i am passing two dates on a page load event.
suppose dates are 2012, 1, 1 and 2013,1,1
then from 1st jan 2012 to 1st jan 2013 all months should be displayed in the Gridview''s column.
if later on i changes the date then respective months should be displayed in the gridview.

how to achieve this.
can any one help me??

Thanks in advance.

解决方案

hard code it
it''s easy i think there are lot many ways. This is the basic way to do

take 3 drop downlists and in the first dropdown load all 12 months and in another dropdown load the dates and in another year


这篇关于动态地在Gridview中绑定一个月的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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