Hi all,
I'm having an issue with a search cursor the I would like some insight into. I've noticed that usually, if a field has a domain, getting the field value of a specific row returns the code of that domain, rather than the description. Recently, however, one field with a domain has started returning the description instead of the code, when it hadn't before.
I'm curious how the row object decides which to use, and how I can fix the domain or my code to grab the code again instead. Here's a simplified example of how I am grabbing the value of the field:
using (RowCursor rowCursor = table.Search(queryFilter, false))
{
while (rowCursor.MoveNext())
{
using (Row row = rowCursor.Current)
{
string code = (string)row["fieldname"]);
}
}
} Thanks for any help!