DevExpress

A UserControl inheriting RepositoryItemTextEditor in a DevExpress Grid – Including Events

Having to get a RepositoryItemTextEditor behave as you would expect it to, sometimes can be cumbersome. I wanted a number format with a thousand separator plus two digits – AND I wanted the whole value to be selected once the editor was entered, not matter if this was by tabbing, mouse or programmatically. After reading …

A UserControl inheriting RepositoryItemTextEditor in a DevExpress Grid – Including Events Weiterlesen »

Set A DevExpress RepositoryItemLookupEditor to Display Text From A Referenced Table

That’s what a LookupEditor is intended for: display text from another table that is referenced by an external key. public RepositoryItemLookUpEdit GetRepositoryEditorLookup(T element) { var rep = new RepositoryItemLookUpEdit(); rep.BeginInit(); if (_entities == null) { return null; } var set = _entities.CreateObjectSet(); // create the list of objects of type T rep.DataSource = set; // …

Set A DevExpress RepositoryItemLookupEditor to Display Text From A Referenced Table Weiterlesen »

DevExpress CheckEdit / RepositoryItemCheckEdit does not read database value

It can be a nuissance sometimes, to get DevExpress‘ CheckEdit or RepositoryItemCheckEdit to display what’s in the database record. I searched for quite a while and then found out it was the number format of the field, that prevented it to display the desired on/odff status: public RepositoryItemCheckEdit GetRepositoryEditorCheck() { var rep = new RepositoryItemCheckEdit(); …

DevExpress CheckEdit / RepositoryItemCheckEdit does not read database value Weiterlesen »