C# Class Accord.Controls.Extensions

Extension methods for Windows Forms' controls.
ファイルを表示 Open project: accord-net/framework

Public Methods

Method Description
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

Private Methods

Method Description
BindProperty ( object property, string propertyName, string format, IFormatProvider provider ) : string
dataGridView1_CellFormatting ( object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e ) : void

Method Details

AllowNestedProperties() public static method

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.
return void