I have a column with a value list, when the user clicks the cell it goes into edit mode so I added this code
e.Layout.Bands[0].Columns["Column Format"].CellClickAction = CellClickAction.CellSelect;
after adding that it only goes into edit mode after the user selects an item in the value list, but I don't want the user to be able to edit the text at any point.
here is the code I use for the value list
ValueList vl;
{
vl = e.Layout.ValueLists.Add("Formats");
vl.ValueListItems.Add("#.00");
vl.ValueListItems.Add("#.0000");
}
e.Layout.Bands[0].Columns["Column Format"].ValueList = e.Layout.ValueLists["Formats"];
Thank you, Jamie
Or, if what you're after is to allow the user to choose an option but not edit the text, set the column's Style to DropDownList.
Set the cell's Activation to NoEdit or ActivateOnly to keep it from being edited. Alternately, you can set the CellActivation property on the whole column to apply to all cells in the column.