Click here to Skip to main content
15,887,875 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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...
Posted
v2

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

C#
<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.
 
Share this answer
 
v2
Comments
shindesb 15-Apr-13 9:04am    
hii

I try this but I can't drop value into gridview row.
can you please tell me how can I do this...
Raj Parashar 15-Apr-13 13:01pm    
jut select The text which you want to keep in the text box and drag that to text box which must work as i have already done the same many times.....
shindesb 16-Apr-13 0:23am    
Thanks,but please give me one example ......
shindesb 17-Apr-13 7:59am    
Hi
It works fine now in my gridview I use 3 column add I drag that value into 2nd column at the same time I wont to add or display 1st & 3rd column value is it possible .
please help me ........
Hi Shindesb,
Please try with following working example.
Working Example[^]
and if u feel any difficulty feel free to ask.
Thanks.
JMD:-)
 
Share this answer
 
Comments
shindesb 15-Apr-13 9:05am    
Hi this example was nice but i can't drop div value into gridview row.
please tell me how can I do this...
shindesb 17-Apr-13 7:59am    
Hi
It works fine now in my gridview I use 3 column add I drag that value into 2nd column at the same time I wont to add or display 1st & 3rd column value is it possible .
please help me ........
giri001 17-Apr-13 12:18pm    
give me some time...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900