Lee Thomas

Lee Thomas

  • NA
  • 1
  • 2.4k

Combobox Find Itmem using uniqueidentifier

Jan 10 2011 8:39 PM

I have a combobox databound to a table, Regions. The DataTextField is set to region name and the DataValueField is set to RegionID which is a unique identifier GUID.
Region.SelectedIndex = Region.FindItemIndexByText(rowView[
"RegionKey"].ToString());
Region.SelectedIndex = Region.FindItemIndexByValue(rowView["RegionKey"].ToString());
Neither of the above statements work with the GUID. How do you FindItemIndex with GUID`s
Regards, Lee

Answers (1)