Accord.Controls.Extensions.AllowNestedProperties C# (CSharp) Метод

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
        public static void AllowNestedProperties(this DataGridView dataGridView, bool value)
        {
            if (value)
                dataGridView.CellFormatting += dataGridView1_CellFormatting;
            else
                dataGridView.CellFormatting -= dataGridView1_CellFormatting;
        }