Some tips to become the master of DevExpress
Best way to set the same Look-and-Feel style of the entire application with DXperience for Windows Form
1 2 3 4 5 6 7 8 9 |
static void Main() { DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "skinName"; // <<< this line Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } |
https://www.devexpress.com/Support/Center/Question/Details/K18013 How to remove the column on the left of the first column (GridEdit)
1 |
Setting the GridView.OptionsView.ShowIndicator property to false |
https://www.devexpress.com/Support/Center/Question/Details/CQ55903 Allow only decimal number in TextEdit
1 2 |
Set MaskType = Numeric Set EditMask = "d" |
https://documentation.devexpress.com/#WindowsForms/CustomDocument1498 Add object to item of ComboBoxEdit
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 |
ComboBoxEdit combo = new ComboBoxEdit(); //You can use comboboxEdit existed on form ComboBoxItemCollection coll = combo.Properties.Items; coll.BeginUpdate(); try { coll.Add(new PersonInfo("Sven", "Petersen")); coll.Add(new PersonInfo("Cheryl", "Saylor")); coll.Add(new PersonInfo("Dirk", "Luchte")); } finally { coll.EndUpdate(); } combo.SelectedIndex = -1; Controls.Add(combo); //... public class PersonInfo { private string _firstName; private string _lastName; public PersonInfo(string firstName, string lastName) { _firstName = firstName; _lastName = lastName; } public override string ToString() { return _firstName + " " + _lastName; } } |
https://documentation.devexpress.com/#windowsforms/clsDevExpressXtraEditorsComboBoxEdittopic Updating….