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

[Solved] Cell value not persistence after editing

1 Answer 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
saurabh
Top achievements
Rank 1
saurabh asked on 08 Nov 2010, 09:54 AM
Hi,

I have grid view dynamic columns - adding columns to grid at run time & providing values to columns in rowloaded event of telerik grid.

column adding

                     for (int k = 0; k < columns.Count; k++)
                        {
                            GridViewDataColumn column1 = new GridViewDataColumn();

                            column1.Header = columns[k];

                            column1.UniqueName = columns[k];
                            grvDataValues.Columns.Add(column1);
                        }

In rowloaded event, i am assigning content to all cells in row.

Whenever i tried to edit these dynamically added column cells but after edit those get blank as those cell does not have any property assign. Is there in event such that i can attach content to cell after edit?

Thanks & Regards,
Saurabh

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Nov 2010, 03:05 PM
Hello saurabh,

Basically, you may use the the AutoGeneratingColumns or DataLoading events of the RadGridView. Considering the empty values after editing a particular cell, I would need more details about your application. 
How do you set the ItemsSource of the grid ? What is its type ?
As for the event after editing the cell, you may use CellEditEnded event.
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
saurabh
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or