-
Notifications
You must be signed in to change notification settings - Fork 18
Static methods of SelectItemForm
SelectItemForm is a dialogue form which is using for select an item from lists such as IEnumerable or DataTable. Also, the SelectItemForm has ability to sort items by clicking on the column's headers and filtering items by criteria from TextBox control which exists on the dialogue.
This page describes how to select an item on the SelectItemForm. For showing items, please see the SelectItemForm page.
The main static method for selecting an item from IEnumerable:
public static T GetSelectedRow<T>(
string Text, string HeaderText,
IEnumerable<T> DataSource, T SelectedRow,
params SelectItemForm.ColumnDefinition[] Columns)
The main static method for selecting DataRow from typed or untyped DataTable:
public static T GetSelectedRow<T>(
DataTable DataSource, T SelectedRow,
params SelectItemForm.ColumnDefinition[] Columns)
where T : DataRow
The main static method for selecting untyped DataRow from any DataSource:
public static DataRow GetSelectedRow(
object DataSource,
string ValueMember = null,
string DisplayMember = null,
object SelectedValue = null,
bool AutoGenerateColumns = false)
Extenders:
DataGridView
DataGridViewColumn
FlowLayoutPanel
TableLayoutPanel
Features:
SelectItemForm
Settings
Components:
BitMaskCheckedListBox
HeaderTableLayoutPanel
SelectItemForm