473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Editing Single Cell on GridView

Now here is the requirement to edit single Cell in the datagrid.

Im an trying to create a arithematic datagrid which will calculate the
area and the cost relating to it.

The functionality when I click on a cell of the grid. That cell only
turn to edit mode.
Im using Ajax.net for the purpose.

I Know that this could be done with edit button and creating
templates. But what if i want to edit only that cell which i clicked
on ...

Please help. Thanks for replying me...

Sep 12 '07 #1
5 8900
Please help

Sep 13 '07 #2
On Sep 12, 1:32 pm, jack <gautams.m...@gmail.comwrote:
The functionality when I click on a cell of the grid. That cell only
turn to edit mode.
Im using Ajax.net for the purpose.
So, what's your problem exactly? A bit of sample code could help
Sep 13 '07 #3
One issue resolved and another has come.

Im able to get the textbox with I click on Template column Label. by
adding onclick in the label attribute.
The value from the textbox is replaced in the label.

Now when I click on the server side button im able to get the initial
value of the label and not the new replaced value.

How to get the new value from the label when i have changed the value
in the client side throught javascript function.
Sep 14 '07 #4
On Sep 14, 7:37 am, jack <gautams.m...@gmail.comwrote:
The value from the textbox is replaced in the label.
How to get the new value from the label
If label has the same value as in the textbox, you can take the one
from the textbox, right?

You also could set a hidden value by js (<input type=hidden....) and
take its value from the code-behind

Sep 14 '07 #5
Right It worked.. :-)

Sep 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Erald Kulk | last post by:
L.S. in a datagrid I would like the forecolor of a single cell. Because it is a negative number. This cannot be done by changing the NumberFormat property. So how can I do this?? Erald
2
by: Beeeeeeeeeeeeves | last post by:
Hi I've managed to make a datagrid so the contents of its cells can't be edited, but is there any way of making the datagrid select one single cell? Similar to the way in which SQL Query...
1
by: Hans | last post by:
I have a Windows.Forms.Form containing a DataGrid where the DataSource is a DataView. Everything refreshes fine after adding, deleting or editing rows. When I close the dialog and reopen it with a...
4
by: TT (Tom Tempelaere) | last post by:
Hi, Suppose there is a DataGrid on a form bound to a DataTable. When a user is editing a cell without leaving the cell, and then closes the form, the value is not updated to the underlying data...
1
by: PCK | last post by:
I am trying to select a single cell from an Excel workbook. I am using the following code. strCN = GetExcelConnection("C:\Test\Excel.xls") strCMD = "select * from " oleDbCN = New...
13
by: kdee | last post by:
Hi to everyone! I'm actually a beginner in access/vba etc. Like many of you, I also have a problem with something. That »something« is called »How to get values from a field in a table or a...
1
by: cristus | last post by:
hi, it's this posible in excel/vba? write all data from web import into single cell (concatenate all data and write to a single cell) Thank you
2
by: jobyjames | last post by:
after editing my cell in the datagrid . i am sorting then i select the next record the selection was do to the 1 cell on the row .i don't know what is the problem
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.