如何清除gridview中的先前值 [英] how to clear previous value in the gridview

查看:103
本文介绍了如何清除gridview中的先前值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Gridview中如下





房间课程房间课程





11 LGTF 21 PH1

编辑(链接按钮)编辑(链接按钮)



12 RM 22 ERS

编辑(链接按钮)编辑(链接按钮)





13 REO 23 PH2

编辑(链接按钮)编辑(链接按钮)





当我点击弹出的编辑链接按钮时课程将显示在下拉列表中。



如果用户想要更改特定房间的课程,请单击编辑(链接按钮)并在下拉列表中选择课程,点击确定。在gridview中,更改课程将在gridview中显示。





例如,11号房间LGTF在那里,如果用户想要改变路线从LGTF到PH1意味着,在21号房间已经分配了PH1课程,那个房间21路PH1将在网格视图中被清除。





我怎么能在asp.net中使用csharp。



Rgds,

Narasiman P.

In Gridview as follows


Room course Room course


11 LGTF 21 PH1
Edit(link button) Edit(link button)

12 RM 22 ERS
Edit(link button) Edit(link button)


13 REO 23 PH2
Edit(link button) Edit(link button)


when i click the edit link button in pop up the course will be shown in dropdownlist.

if the user want to change the course for particular room, click the edit(link button) and select the course in the dropdownlist and click the ok. in the gridview changes course will be shown in gridview.


for example, for room 11 LGTF is there,if the user want to change the course From LGTF to PH1 means, in the room 21 already course PH1 is alloted, that room 21 course PH1 is to be cleared in the gridview.


for that how can i do in asp.net using csharp.

Rgds,
Narasiman P.

推荐答案

提供您的代码段,以便我们为您提供帮助。请求帮助改进你的代码不要求为你编写代码。

没有适当的要求和数据库细节没有可以帮助你。

参考这个链接



http:// devilswork .wordpress.com / 2009/03/27 / gridview-row-edit-delete-and-update / [ ^ ]



http://www.aspdotnet-suresh.com/2011/02/how- to-inserteditupdate-and-delete-data.html [ ^ ]



http://www.dotnetfunda.com/articles/article29.aspx [ ^ ]



希望这些可以帮助您理解关于gridview。
Provide your snippet so that we can help you for that. Ask help to improve your code dont ask to write code for you.
Without proper requirement and database details no can help you.
Refer this links

http://devilswork.wordpress.com/2009/03/27/gridview-row-edit-delete-and-update/[^]

http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html[^]

http://www.dotnetfunda.com/articles/article29.aspx[^]

Hope these helps you to understand about gridview.


这篇关于如何清除gridview中的先前值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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