AD
Administrator
Syncfusion Team
November 20, 2004 06:40 PM UTC
Below is some code that work for me in a buttonhandler. As far as your colde goes, column 0 in a GridControl is the row header column (which is hidden in the embedded grid in a GridListCOntrol). So, you should try using column 1 instead of column 0.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles Button1.Click
Dim txt As String = ""
Dim rangeList As GridRangeInfoList = Me.ListBox1.Grid.Selections.GetSelectedRows(True, False)
Dim range As GridRangeInfo
Dim row As Integer
For Each range In rangeList
For row = range.Top To range.Bottom
If txt.Length > 0 Then
txt = txt & ","
End If
txt = txt & Me.ListBox1.Grid(row, 1).Text
Next
Next
Console.WriteLine(txt)
End Sub
KH
Kenton Hensley
November 21, 2004 02:16 AM UTC
Thank you Clay,
I missed the Selections collection. My excuse? -too little sleep.