hello! Its me again. I hope somebody can help me!
I don't know if it is possible but i hope so...
i have a datagrid with 2 Columns:
1 Column is a checkbox (template)
and the last Column is a textbox binding with status
now, i only want to show the checkbox if status = 4... so in row1 = show, row2 = hide etc...
is it possible?
and how can i make an event on the checkbox (to save in db if checkbox is checked)
if i make an event:
I get an error:
Error Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
hope somebody can help me!
Nice Greets,
Mathias
I don't know if it is possible but i hope so...
i have a datagrid with 2 Columns:
1 Column is a checkbox (template)
Code:
<DataGridTemplateColumn Header="geprüft">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox Name="chk" Content="{Binding Path=geprüft}" IsChecked="False" IsThreeState="False"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
Code:
<DataGridTextColumn IsReadOnly="True" Width="auto" Header="status" Binding="{Binding Status}">
is it possible?
and how can i make an event on the checkbox (to save in db if checkbox is checked)
if i make an event:
Code:
Private Sub chk_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles chk.Click End Sub
Error Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
hope somebody can help me!
Nice Greets,
Mathias
Comment