I would like to know the best way to create a non binded field in the UltraGrid based on the value of a binded field.
For example. I have a field that is type text but I want to add a checkbox field and base its status on the text value of anotehr field in the grid.
Status: Finished Checkbox Checked
Status: 'not-started' 'not finished' etc. all unchecked.
My database doesnt use a boolean field for this value because there are more than 2 options. But I want a checkbox in my grid that shows checked if one of the values in Status = Finished.
Thanks.
Hi,
I'm not sure I am following what you want here. Are you talking about having a checkbox column in which only one checkbox is checked at a time?
You can add unbound columns to the grid using the band.Columns.Add method. The InitializeLayout event is usually a good place to do this. In this case you just add the column and set it's DataType to Boolean and it will display a checkbox in the grid.
I'm not sure what you mean about basing the value on some other value, though. Can you explain in more detail exactly what you want?