Hi.
My question is - when I data bind grid to data source, boolean data will be interpreted as checkbox, i.e. true will cause the checkbox to be checked , and false will cause the checkbox to be unchecked. The question is - is there a data type which corresponds tri-state check box (i.e. checked, unchecked, disabled) and can control all of its states, or do I need to use boolean field and control disabled state via some other variable and AllowEdit property?
I'm not really sure that I understand the question, what state are you referring to? Are you trying to update the status of the row based on this checkbox?
-Matt
Actually, that's what I was trying to avoid (using multi-band grid).
Anyway, another question - the state for "null" value is "selected-disabled".
Is it possible for it to be "not selected-disabled"?
I believe that you need to explicitly set the Style property of the column when using this type, i.e.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.TriStateCheckBox;}
Actually, it's even worse. I haven't tried using nullable bool with any value other than null before.
Now i did, and when using nullable bool it displays "False" and "True" as strings, not as checkbox.
Hi, Matt.
That what I was hoping for, but null in bool? results in empty cell (without a checkbox).