- gcMultiRow.SelectionChanged += (s, e) =>
- {
- Dim selectedRows As var = gcMultiRow.SelectedRows
- If selectedRows.Count > 0 Then
- Dim firstSelectedRowIndex As var = selectedRows.First().Index
- Dim contains As var = False
- Dim i As var
- For i = 0 To gcMultiRow.Columns.Count- 1 Step i + 1
- Dim value As var = gcMultiRow.GetValue(firstSelectedRowIndex,i)
- If value <> Nothing And CType(value = "aa",String) Then
- contains = True
- End If
- Next
- If contains Then
- MessageBox.Show("contains aa")
- Else
- MessageBox.Show("not contains aa")
- End If
- End If
-
- }
复制代码 |