First off thanks to Rafayali for his code which I am using.
I have a editable datagrid incorporating a dropdownlist pouplated with data from the database. The function in the attached code sippet is part of the edit template which populates the dropdownlist. (thanks again Rafayali). The problem is I cannot manage to select the current cell value in the dropdownlist so that the user sees the currently stored database value selected in the dropdownlist. I have tried many searched solutions but so far not able to find one that works. Can someone please help me out (VB code would be great as my C insn't great) Thank you all.
AutopostBack = "False"
DataTextField = "NameInitial"
DataValueField = "ID"