Objectmix
Tags Register Mark Forums Read

Editing Single Cell on GridView : DOTNET

This is a discussion on Editing Single Cell on GridView within the DOTNET forums in Framework and Interface Programming category; 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......


Object Mix > Framework and Interface Programming > DOTNET > Editing Single Cell on GridView

DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items

Reply

 

LinkBack Thread Tools
  #1  
Old 09-12-2007, 06:32 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default 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...

Reply With Quote
  #2  
Old 09-13-2007, 01:40 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Editing Single Cell on GridView

Please help

Reply With Quote
  #3  
Old 09-13-2007, 01:57 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Editing Single Cell on GridView

On Sep 12, 1:32 pm, jack <gautams.m...@gmail.com> wrote:
> 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


Reply With Quote
  #4  
Old 09-14-2007, 12:38 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Editing Single Cell on GridView

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.


Reply With Quote
  #5  
Old 09-14-2007, 01:54 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Editing Single Cell on GridView

On Sep 14, 7:37 am, jack <gautams.m...@gmail.com> wrote:
> 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

Reply With Quote
  #6  
Old 09-14-2007, 07:25 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Editing Single Cell on GridView

Right It worked.. :-)

Reply With Quote
Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
Getting value of a GridView cell usenet CSharp 4 11-16-2007 05:11 PM
Is there a way to format a cell in a GridView? usenet DOTNET 3 10-23-2007 05:25 PM
get cell value within gridview usenet DOTNET 14 10-18-2007 01:18 PM
Selected cell in Gridview usenet DOTNET 2 08-08-2007 06:46 PM
Gridview - Pull value from one cell in one row usenet DOTNET 4 08-05-2007 01:47 PM


All times are GMT -5. The time now is 08:45 AM.