Hi,
I have a dropdownlist into a datagrid as a template field, which is not connected to the database. I'm using it only for display.
For the dropdownlist I have the following procedure:
{
groups.Add(
...
}
I need to display the selected values from this dropdownlist in EditMode of the datagrid.
for this I have the following function:
grdPersonGroups.EditItemIndex = e.Item.ItemIndex;
grdPersonGroups.DataSource = GetContractPersonGroup();
grdPersonGroups.DataBind();
DetermineGroupSelection(item);
DetermineGroupSelection(item) is a function that contains a Switch Case in wich I take the selectedvalue of the dorpdownlist.
My problem is when I click on Edit link in DataGrid, in edit mode the selected value of dropdownlist is null. I can see only the other values from datagrid.
Can someone help me?
Thank you