all, I have tried using a ultradropdown and a value list.
Here is the code for the dropdown
// set the drop down list
resolvecodes = GetAllCodes(SessionID);
this.ultraDropDown1.DataSource = resolvecodes;
ultraDropDown1.ValueMember = "ResolveCodeID";
this.ultraWinGrid.DisplayLayout.Bands[0].Columns["Status"].ValueList = this.ultraDropDown1;
this.ultraWinGrid.DataBind();
Does the type you are binding to the UltraGrid have a setter (the type in your 'details' collection')? It need one for the dropdown to be editable.
Do you see the DropDown button in the cell at all? If not, then my guess is that the field is read-only and cannot be edited.
Hi,
Did you try to set DropDownList instead of DropDown in ColumnStyle property ?
Is your datasource "details" on read only mode ?
David, my ultradropdown1 is being populated correctly; but my grid cell isn't reflecting the dropdown style.
It is bound to a field called "Status"; but it's acting as if it is read only and won't allow a dropdown in the field.
I've tried a value list and a dropdown but neither seems to work.
Any other ideas?
You said that you have problem by inserting dropdown in your grid. But what is your problem ?
For example, when I have a dropdown in a cell, I made this :
this.myGrid.DisplayLayout.Bands[0].Columns[0].ValueList = dropDown1;
List<MyTypeObject> _myList = new List<MyTypeObject>();
_myList = GetAllObject();
Datasource1.Rows.Clear();
{
Datasource1.Rows[Datasource1.Rows.Count - 1].Tag = _object;
}
dropDown1.DataSource = Datasource1;
dropDown1.DataBind();
And it works fine.
Hope this helps
David