Hi:
I have a checkbox column in a grid bound to a bit value in a SQL Server database. As I understand it, there is no basic checkbox column type that I can bind to the database, so I've created a cell template and a cell edit template as follows:
This works, but visually it looks really weird. When the checkbox cell goes into edit mode, it becomes so small it is hard to see (see attached screenshot). This only happens when the row is in edit mode and I tab into the field from the previous column. Otherwise, I can check or uncheck the checkbox simply by clicking on it and the size stays the same. Can you tell me why this is happening?
Thanks,
Terry
I have a checkbox column in a grid bound to a bit value in a SQL Server database. As I understand it, there is no basic checkbox column type that I can bind to the database, so I've created a cell template and a cell edit template as follows:
<radGridView:GridViewDataColumn Header="Active?" |
Width="Auto" |
TextAlignment="Center" > |
<radGridView:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<CheckBox x:Name="chkActive" |
IsChecked="{Binding ProjActive, Mode=TwoWay}" |
HorizontalAlignment="Center"/> |
</DataTemplate> |
</radGridView:GridViewDataColumn.CellTemplate> |
<radGridView:GridViewDataColumn.CellEditTemplate> |
<DataTemplate> |
<CheckBox x:Name="chkActive" |
IsChecked="{Binding ProjActive, Mode=TwoWay}" |
HorizontalAlignment="Center"/> |
</DataTemplate> |
</radGridView:GridViewDataColumn.CellEditTemplate> |
</radGridView:GridViewDataColumn> |
This works, but visually it looks really weird. When the checkbox cell goes into edit mode, it becomes so small it is hard to see (see attached screenshot). This only happens when the row is in edit mode and I tab into the field from the previous column. Otherwise, I can check or uncheck the checkbox simply by clicking on it and the size stays the same. Can you tell me why this is happening?
Thanks,
Terry