1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| <dxg:GridControl x:Name="grid" ShowBorder="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AutoGenerateColumns="None"
ItemsSource="{Binding ListCandidatures, NotifyOnSourceUpdated=True}"
SelectedItem="{Binding SelectedCandidatures, Mode=TwoWay}" Grid.Row="1" Uid="GridCandidature"
FilterString="{Binding FilterString, Mode=TwoWay}">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="tbl_candidat.UNom" Header="Nom" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_candidat.UPrenom" Header="Prénom" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_offre.Reference" Header="Référence" SortOrder="Ascending" SortIndex="0" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_offre.tblfonction.LIBELLEFONCTION" Header="Poste" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_offre.tbl_agence.LibelleAgence" Header="Agence" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_statutoffrecandidat.NomStatutOffreCandidat" Header="Statut Candidature" AllowBestFit="True" />
<dxg:GridColumn FieldName="tbl_offre.RespOffre.FullName" Header="Responsable Offre" AllowBestFit="True" />
<dxg:GridColumn FieldName="TypeCandidatureLibelle" Header="Type de candidature" Width="125" FixedWidth="True" />
<dxg:GridColumn FieldName="LastDateAction" Header="Action à faire le" AllowBestFit="True">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings DisplayFormat="g" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn FieldName="Correcteur.FullName" Header="Référent" AllowBestFit="True" />
</dxg:GridControl.Columns>
<!--Cette partie représente la vue et associe le double click à une commande-->
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem FieldName="tbl_candidat.UNom" SummaryType="Count"
DisplayFormat="Nombre de candidatures : {0}" Visible="true" />
</dxg:GridControl.TotalSummary>
<dxg:GridControl.View>
<dxg:TableView ShowTotalSummary="True" ShowAutoFilterRow="false" AllowEditing="False"
NavigationStyle="Row" ShowGroupPanel="False" AutoWidth="True"
ShowVerticalLines="False" ShowIndicator="False"
ShowFilterPanelMode="Never" ShowHorizontalLines="False" Background="Black">
<!--<dxg:TableView.CellStyle>
<Style TargetType="dxg:CellContentPresenter">
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="#3C3C3C" />
</Style>
</dxg:TableView.CellStyle>-->
</dxg:TableView>
</dxg:GridControl.View>
<dxg:GridControl.InputBindings>
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding ActionRowCommand}" />
</dxg:GridControl.InputBindings>
</dxg:GridControl> |
Partager