![]() ![]() The fact is that the 10Tec iGrid for WinForms package contains an additional drop-down list control intended for usage with iGrid (the iGDropDownList class), and we can harness it to implement this custom editor scenario. iGrid.NET also provides this functionality, but it is implemented much easier for such widely used editors like drop-down lists. The stock WinForms PropertyGrid allows us to do that by writing custom UI Type Editors (descendants of the class). The first related thing we can think of is the ability to implement custom editors for property values. Let's talk a little bit about customization of the. Sometimes we need to set a predefined column width proportion, or automatically adjust the width of the PropertyGrid value column to display the values without clipping. But in iGrid.NET, the user can sort the grid simply by clicking the required column headers (or this ability can be provided in code by the developer in the case if the column headers are hidden).Īnother problem related to columns is the inability to resize the PropertyGrid columns from code. by the texts in the second column? Or sort in descending order? It seems, there is no solution of this problem for the standard PropertyGrid in C# or VB.NET. But what if the user decides to sort by property values, i.e. However, if we need another sort order, we need to implement a custom solution like in this one. The stock PropertyGrid sorts its rows by property names (by the texts in the first column) in alphabetic ascending order. In this section of the article we are focusing on some benefits of iGrid.NET used in VB or C# PropertyGrid-like solutions. NET Framework PropertyGrid Control Benefits of iGrid.NET used instead of PropertyGrid in C# and VB.NET If you are interested in a list of all available techniques you can use to customize PropertyGrid with examples in C# and VB.NET, read the following fundamental article at MSDN: One of these tasks is implementing a custom editor in PropertyGrid (see this Customizing PropertyGrid example in C# at StackOverflow). NET PropertyGrid control is a tool for a programmer but not an end-user, and to make it user-friendly you may need to write a lot of additional code. However, you can face a series of troubles if you go this way. A well-known approach is to create a specialized object that implements the required properties and attach it to a PropertyGrid control. NET PropertyGrid in C# or VB.NET application. It is relatively easy to start building of such an interface using the. ![]() For instance, it can be a settings interface in which the user can view/change values for a set of properties or parameters of something. When we talk about iGrid in this context, we mean the ability to create PropertyGrid-like interfaces. In fact, iGrid is not a true PropertyGrid control that can display all public members of the specified. This is the main distinctive feature of the PropertyGrid control if we compare it to 10Tec iGrid. NET reflection API and displays them automatically. The PropertyGrid scans all public properties of the object using the. All you need to do is to assign a reference to the required object to the SelectedObject property of a PropertyGrid in C#/VB.NET. NET PropertyGrid control provides a ready-to-use functionality one can use to browse all public properties of. The built-in WinForms PropertyGrid: pros and consĪs we all know, the intrinsic. NET PropertyGrid control and highlight some benefits of using iGrid as a property grid control in C# or VB.NET in the remainder of this article. ![]() ![]() We will compare iGrid.NET to the standard. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |