This sounds like something very trivial and should be simple to do, but I cannot seem to get it to work.
I have a DTO in some library:
public class ActivityLevelDTO
{
public ActivityLevelDTO() {}
private int _id;
private string _description;
public int Id
{
get { return _id; }
}
public string Description
{
get { return _description; }
}
}
Very simple. In my code I have an array of this DTO and I want to bind the collection to a column in each row of data. I am populating the grid with a DataTable of data that I build from information returned from a web service. The DataTabel column that goes into the column where I want my DropDownList contains an Id that would exist in the array of ActivityLevelDTO.
This is my declaration of the FlyGrid column:
ClientActivityLevelDTO[] _levels = !! web service call !!
this.colActivityLevel = new NineRays.Windows.Forms.Grids.LookupListColumn();
this.colActivityLevel.Caption = \"Activity\";
this.colActivityLevel.DropDownStyle = NineRays.Windows.Forms.Grids.DropDownStyle.DropDownList;
this.colActivityLevel.FieldName = \"ActivityLevel\";
this.colActivityLevel.LookupBoundField = \"Id\";
this.colActivityLevel.LookupDataMember = \"Id\";
this.colActivityLevel.LookupDisplayField = \"Description\";
this.colActivityLevel.LookupSource = _levels
I then bind my DataTable to the grid rows DataSource and all that is displayed in the column is the int value of the DataTable value. The DropDownList does not fill. Any help would be greatly appreciated.