Hello,
I have a Radgrid with columns added at runtime. 2 columns of these columns are editable by the user.
It's necessary to have the whole grid in Edit mode (Inline updatable) and that's done with following code:
| for (int i = 0; i < RadGridArtiTree1.PageSize; i++) |
| { |
| RadGridArtiTree1.EditIndexes.Add(i); |
| } |
The user can confirm the data in the grid with one button and that's where I'm having troubles.
I can retrieve the updated values with this code:
| int numberTrays = 0; |
| int numberPallets = 0; |
| foreach (GridEditableItem editedItem in RadGridArtiTree1.EditItems) |
| { |
| Hashtable newValues = new Hashtable(); |
| RadGridArtiTree1.MasterTableView.ExtractValuesFromItem(newValues, editedItem); |
| numberTrays = Convert.ToInt16(newValues[OrdasRefs.dTRAYS]); |
| numberPallets = Convert.ToInt16(newValues[OrdasRefs.dPALLETS]); |
| } |
But I also need to get other values for the editeditem.
editedItem["ARTNR"].Text returns " " so can anyone give me an solution how to get the value of a certain readonly column in the edited row?
Thank you.