Hi,
I have a RadGrid with a GridTemplateColumn whose EditItemTemplate contains a DropDownList and a label control for displaying error messages. When I insert a new item and change the selection in the drop-down list, I would like to be able to update other drop-down list controls in the other columns of the grid. When editing an item, I am able to do so inside the SelectedIndexChanged event of the drop-down list control using the following code:
editedIndex = grid.EditIndexes[0];
item = grid.EditItems[editedIndex] as GridEditableItem;
list = item.FindControl("txtBox1") as DropDownList;
list.DataSource = listValues;
list.DataBind();
When inserting an item, however, grid.EditItems.Count is 0 and I don't know how to access the newly inserted line in the grid and its controls.
Could anyone point me in the right direction?
I have a RadGrid with a GridTemplateColumn whose EditItemTemplate contains a DropDownList and a label control for displaying error messages. When I insert a new item and change the selection in the drop-down list, I would like to be able to update other drop-down list controls in the other columns of the grid. When editing an item, I am able to do so inside the SelectedIndexChanged event of the drop-down list control using the following code:
editedIndex = grid.EditIndexes[0];
item = grid.EditItems[editedIndex] as GridEditableItem;
list = item.FindControl("txtBox1") as DropDownList;
list.DataSource = listValues;
list.DataBind();
When inserting an item, however, grid.EditItems.Count is 0 and I don't know how to access the newly inserted line in the grid and its controls.
Could anyone point me in the right direction?