473,789 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8920
Please help

Sep 13 '07 #2
On Sep 12, 1:32 pm, jack <gautams.m...@g mail.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...@g mail.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
6652
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
4317
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 Analyzer's grid does.
1
1586
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 new set of data, all is okay showing the new rows of data. But when I go back to the first set of data, I get the correct data except for ONLY the second column of the first row contains the data from the second set of data. If I cause it to...
4
4270
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 source. How can I accomplish this? Thanks, --
1
9084
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 OleDb.OleDbConnection oleDbCN.ConnectionString = strCN oleDbCN.Open() oleDbCMD = New OleDb.OleDbCommand oleDbCMD.Connection = oleDbCN oleDbCMD.CommandType = CommandType.Text
13
2780
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 query shown in a single cell on a report? (They should be separated with commas and limited to a cell in a report)”. If somebody knows the answer to this or knows the article about it, please , be so kind to reply an answer or direct me to some...
1
1339
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
1083
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
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.