Hello GESSI,
To retrieve the values of a column in the current
row, you may use the following code.
Me.C1List1.Columns(0).Value ' this retrieves the value of the 0th column in
the current row.
Similary, you can retrieve the same for all the columns,
changing the column index.
If multiselection is concerned, you may use the following
code to loop through the selected Rows
to retrieve the value.
Dim
i As Integer
Dim value As Integer
For i = 0 To Me.C1List1.SelectedIndices.Count - 1
value =
Me.C1List1.SelectedIndices.Item(i)
MsgBox(
Me.C1List1.Columns(0).CellText(value))
Next
SelectedIndices return the SelectedRows
collection object. Please go
through attached
sample application for exact
implementation.
I hope this will help.
Regards,
Allen Smith
Hello
I've a simple task. There is a c1ListBox with 100 rows. Each row has
5 columns.
1. When the user selects the 18th row. I need the values of all columns of
this row.
2. If multiselection is allowed, how do I retrieve the information of the
selected rows?
Thanks for your help
beste regards
GESSI
http://helpcentral.componentone.com/cs/forums/p/74220/201677.aspx#201677