将div值拖入gridview [英] drag div value into gridview

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

问题描述

hii



我不会从div中拖出值并将该值放入gridview行。

我试试

使用jQuery将表格行拖到div中 [ ^ ]

但是我无法理解如何将该值拖入gridview。

你能告诉我我该怎么办...

hii

I wont to drag value from div and drop that value into gridview row .
I try
Drag table row to a div with jQuery[^]
but I can''t understand how to drag that value into gridview .
can you please tell me how can I do this...

推荐答案

在网格而不是普通列中使用itemTemplate并将Textbox放入其中,然后尝试将div数据拖到网格中。它不会拒绝你的请求:)



尝试在你的GridView中实现以下代码行



In grid instead of normal column use itemTemplate and place Textbox in it and then try to drag the div data to your grid. It won''t reject your request :)

Try to implement following line of code in your GridView

<asp:GridView ID="GridView1" Runat="server" >
    <Columns>
<asp:TemplateField HeaderText="AcceptInput">
<ItemTemplate>
 <input type="Text" name="txtInput" runat="server">
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView> 





我相信这会奏效。如果它没有请让我知道。



I am sure this will work. If it doesn''t please let me know.


您好Shindesb,

请尝试以下工作示例。

工作示例 [ ^ ]

如果您觉得有任何困难可以随意询问。

谢谢。

JMD: - )
Hi Shindesb,
Please try with following working example.
Working Example[^]
and if u feel any difficulty feel free to ask.
Thanks.
JMD:-)


这篇关于将div值拖入gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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