Compartilhar via


WinFormsDataBindingHelper.PreInitializeComboBoxColumnDataSourcesFromBinding Method

Set up the cell type for combobox dropdown lists for the given grid.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
<ExtensionAttribute> _
Public Shared Sub PreInitializeComboBoxColumnDataSourcesFromBinding ( _
    grid As DataGridView _
)
public static void PreInitializeComboBoxColumnDataSourcesFromBinding(
    this DataGridView grid
)
[ExtensionAttribute]
public:
static void PreInitializeComboBoxColumnDataSourcesFromBinding(
    DataGridView^ grid
)
static member PreInitializeComboBoxColumnDataSourcesFromBinding : 
        grid:DataGridView -> unit 
public static function PreInitializeComboBoxColumnDataSourcesFromBinding(
    grid : DataGridView
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataGridView. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

WinFormsDataBindingHelper Class

Microsoft.VisualStudio.Modeling.Design Namespace