How to create Editable Gridview

Posted by Dhivakar under Regular Expressions on 1/27/2011 | Points: 10 | Views : 24151 | Status : [Member] | Replies : 7
i have created the gridview which has following fields Qty,Itemname,Retail_price and total_price...here qty is a templatefield column which has textbox(in gridview) to get the input from user...itemname column contains the name of the product,retail price column contains cost of the prodcut...now i want the total_price column will update based on the qty....
for ex :
if the mouse(product name) =200rs(retail price)
when i enter ' 2 ' in qty , the total price will update to '400'


how to do this?

any one plz quide me!!!!!!!!!!!!

Dhivakar.M


Responses

Posted by: Karthikanbarasan on: 1/27/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi DHivakar,

Check this link... it shows the steps to make a gridview columns editable

http://www.dotnetfunda.com/articles/article1122-editable-gridview--all-columns-in-gridview-are-editable-.aspx

Thanks
Karthik
www.f5Debug.net

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 1/27/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi divakar,


read my this article . i think it's a use full for your requirement ..


http://www.dotnetfunda.com/articles/article1122-editable-gridview--all-columns-in-gridview-are-editable-.aspx

Thanks & Regard's
Prabhakar

Best Regard's
Prabhakar

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dhivakar on: 1/28/2011 [Member] Starter | Points: 25

Up
0
Down
guys tanx for ur reply...but i want this way..after entering the input in text box the gridview will updated(...wat i am tryin to say is, i want the gridview wil update when text box losses the focus.....




Dhivakar.M

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 1/28/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi divakar,
i think it's not possible because of that Text_changed event not fired in ASP.NET .. so u used your requirement on Update Button Click ..


Thanks & Regard's
Prabhakar

Best Regard's
Prabhakar

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/28/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

You can use this by using jquery scripts...

Thanks
Karthik
www.f5Debug.net

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 4/3/2012 [Member] Starter | Points: 25

Up
0
Down
http://sandeep-chourasia.blogspot.in/2011/09/editable-gridview.html

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patel28rajendra on: 4/4/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

you have to use Jquery for that


R D Patel

Dhivakar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response