This is a migrated thread and some comments may be shown as answers.

[Solved] How to edit just a cell on radgrid?

2 Answers 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos Marchi
Top achievements
Rank 1
Carlos Marchi asked on 29 Sep 2009, 07:38 PM
Hi Everybody,

I have been trying to edit just a cell on row of the grid, but i didnt know how do implent it.

There is a radgrid on page where this grid has 4 columns. The type of coluns are the following:
textbox, textbox, textbox and combobox.

the first textbox its type is numeric, the second is a date and third is character.

I show how the grid will be:

price    |    date             |   name    |   city
$1.89      9/10/2009          James      New york

the combobox city there is a list of cities where It gets in database

When the page shows, the grid shows too with all the registers with it.

when the user clicks in some cell the cell show a field for eample a textbox for user types there.

I need to implement it on code behind.

Can anybody help me?

Thank you for attention.

Carlos

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Sep 2009, 04:02 AM
Hi Carlos,

I found a code library submission on "Cell Editing for RadGrid with GridBoundColumn". I hope this would help you to get started.
CellEditing of RadGrid with GridBoundColumn

Hope this helps,
Shinu.
0
Carlos Marchi
Top achievements
Rank 1
answered on 30 Sep 2009, 12:48 PM
Hi Shinu,

Thank you for atrying to help me.  I have analyze the project, unfortunately that example doesnt apply my problem.

There is a javascript code where the javascript code verify what row and cell is clicked... I need to to it in code begind. Is it possible?

Each field must have validation. If a field is numeric there must be a numeric validation, if a filed is date there must be a date validation too.

There two other problems
first: when there is a combobox field where it needs to access data base to fill out the combo.
second: just columns are able to edit. It  depends on criterion  in runtime in codebehind.

Thank you again!

Carlos
Tags
Grid
Asked by
Carlos Marchi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Carlos Marchi
Top achievements
Rank 1
Share this question
or