Click or drag to resize
ListViewExtrasGetColumnNumber Method
get the index of a column name

Namespace: ANDREICSLIB.ClassExtras
Assembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int GetColumnNumber(
	ListView lv,
	string columnName,
	string LVIField = "Text"
)

Parameters

lv
Type: System.Windows.FormsListView
columnName
Type: SystemString
the column name
LVIField (Optional)
Type: SystemString

Return Value

Type: Int32
the index of the column, -1 if not found
See Also