C# Класс Accord.Controls.Extensions

Extension methods for Windows Forms' controls.
Показать файл Открыть проект

Открытые методы

Метод Описание
AllowNestedProperties ( this dataGridView, bool value ) : void

Enables the display of recursively nested properties in the Windows.Forms' DataGridView control.

This method will register a custom cell formatting event in the DataGridView and retrieve any nested property specified in the column's DataPropertyName property using reflection. This method is based on th idea by Antonio Bello, originally shared in: http://www.developer-corner.com/2007/07/datagridview-how-to-bind-nested-objects_18.html

Приватные методы

Метод Описание
BindProperty ( object property, string propertyName, string format, IFormatProvider provider ) : string
dataGridView1_CellFormatting ( object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e ) : void

Описание методов

AllowNestedProperties() публичный статический метод

Enables the display of recursively nested properties in the Windows.Forms' DataGridView control.
This method will register a custom cell formatting event in the DataGridView and retrieve any nested property specified in the column's DataPropertyName property using reflection. This method is based on th idea by Antonio Bello, originally shared in: http://www.developer-corner.com/2007/07/datagridview-how-to-bind-nested-objects_18.html
public static AllowNestedProperties ( this dataGridView, bool value ) : void
dataGridView this The to enable nested properties.
value bool True to use nested properties, false otherwise.
Результат void