It looks like the grid isn't able to map the value from the cell to the correct item in the dropdown's source, so it gives up and shows the first item.
May be you forget to define LookupListColumn.LookupDisplayField?
[c#]
// The Datatable has following data structure:
// FieldName: LandId (Type: int) //unique id of country
// FieldName: LandName (Type: string) //name of the country
// Datatable has following field values:
// LandId | LandName
// ------------------------
// 1 | USA
// 2 | UK
// 3 | Canada
// 4 | France
// 5 | Germany
private void InitFlyGrid(FlyGrid flyGrid, DataSet ds)
{
flyGrid.BeginInit();
try
{
//....initialization code here
//Get a countries dictionary table
DataTable countries = ds[\"Countries\"];
AddLookupColumnForDatatable(countries, \"Country\", \"LandId\", \"LandName\");
}
finally
{
flyGrid.EndInit();
}
}
private void AddLookupColumnForDatatable(DataTable data, string fieldName, string lookupFieldName, string lookupDisplayFieldName)
{
LookupListColumn lookupCol = new LookupListColumn(\"fieldName\");
lookupCol.LookupBoundField = lookupFieldName;
lookupCol.LookupDisplayField = lookupDisplayFieldName;
lookupCol.LookupSource = data;
}