<dx:ASPxGridView ID="GridViewTRY" runat="server" DataSourceID="SDSGridViewTRY" KeyFieldName="ID" OnInit="GridViewTRY_Init">
<Columns>
<dx:GridViewDataComboBoxColumn FieldName="PersonalFK" Caption="Personel Adı" ShowInCustomizationForm="True" >
<PropertiesComboBox TextField="PersonelName" ValueField="ID"></PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
</Columns>
</dx:ASPxGridView>
// on CodeBehind //
protected void GridViewTRY_Init(object sender, EventArgs e)
{
ASPxGridView gridView = (ASPxGridView)sender;
((GridViewDataComboBoxColumn)(gridView.Columns["PersonelFK"])).PropertiesComboBox.DataSource = myPersonalList;
}
Hiç yorum yok:
Yorum Gönder