ListViewExtensionsToDataGridView Method
Converts the source ListView to a DataGridView.
Namespace: DevCase.Extensions.ListViewExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static DataGridView ToDataGridView(
this ListView sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ToDataGridView (
sender As ListView
) As DataGridView
Dim sender As ListView
Dim returnValue As DataGridView
returnValue = sender.ToDataGridView()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static DataGridView^ ToDataGridView(
ListView^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ToDataGridView :
sender : ListView -> DataGridView
No code example is currently available or this language may not be supported.
- sender ListView
-
The source ListView.
DataGridView
The resulting
DataGridView.
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListView. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim lv As New ListView
lv.Columns.Add("column1")
lv.Columns.Add("column2")
lv.Columns.Add("column3")
lv.Items.Add("Item1").SubItems.AddRange({"SubItem1", "SubItem2"})
lv.Items.Add("Item2").SubItems.Add("SubItem1")
lv.Items.Add("Item3").SubItems.Add("SubItem1")
Dim dgv As DataGridView = lv.ToDataGridView()
Me.Controls.Add(dgv)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.