or
private void VerbindungForm1_ValidatingItem(object sender, System.ComponentModel.CancelEventArgs e){ var employer = this.VerbindungForm1.CurrentItem as Verbindungen; if (employer.Name.Count() < 1) { RadWindow.Alert("You have to enter a " + employer.Name); }}
<telerik:RadGridView x:Name="RadGridView1" GroupRenderMode="Flat" IsSynchronizedWithCurrentItem="True" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" CanUserResizeColumns="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="#Case" DataMemberBinding="{Binding caseId}" Width="Auto"></telerik:GridViewDataColumn>> <telerik:GridViewDataColumn Name="CategoriesGridViewDataColumn" Header="Categories" Width="Auto"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <Grid Margin="0" Name="categoriesGird"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Background="Red"></TextBlock> <TextBlock Grid.Row="0" Grid.Column="1" Background="Blue"></TextBlock> </Grid> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn> </telerik:RadContextMenu.ContextMenu></telerik:RadGridView>public class EmailTest{ public EmailTest() { } public EmailTest(string caseId, List<TextBlock> categories) { this.caseId = caseId; this.categories= categories; } public string caseId{ get; set; } public List<TextBlock>categories{ get; set; } }Hello,
Is it possible to bind two comboboxes to one table with composite primary key?
Suppose one has a table MyTable with two fields (int Level, varchar2 Code) which forms composite primary key.
The corresponding entity is
public class MyTable{ public MyEnum Level {get; set;} public string Code {get; set;}}where MyEnum is some enum.
I would like to bind two comboboxes to the list of such entities so that one combobox shows list of available items of MyEnum,
and the other one list of codes corresponding to the selected Level. Is it possible?
Thanks in advance.
Yours faithfully,
Mikhail.