![]() Protected void grid_RowUpdating( object sender, e)ĪSPxGridView gridView = (ASPxGridView)sender Void cmbCity_OnCallback( object source, CallbackEventArgsBase e) Protected void FillCit圜ombo(ASPxComboBox cmb)Ĭmb.DataSource= .SelectAllProjectManagers() Īnd these are callback and rowupdating functions Object val = grid.GetRowValuesByKeyValue(e.KeyValue, " ProjectID") ĪSPxComboBox combo = e.Editor as ASPxComboBox Ĭombo.Callback += new CallbackEventHandlerBase(cmbCity_OnCallback) ![]() If (e.KeyValue = DBNull.Value || e.KeyValue = null) return ![]() If (!grid.IsEditing || e.Column.FieldName != " User.DomainName") return Upon edit comboboxes are populated protected void grid_CellEditorInitialize( object sender, ASPxGridViewEditorEventArgs e) Entity framework query Project.Include("User").ToList() User has fields UserID and DomainName and Project has ProjectManagerID(FK on USERID) ProjectInfo and ProjectName I have the aspx file above to display data from joined tables User and Project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |