Desktop Listbox Error

I am unsure why this

Me.ColumnTypeAt(2) = DesktopListBox.CellTypes.CheckBox

For Each row As DesktopListBoxRow In Me.Rows
  If  row.CellTextAt(2) = "Required" Then
    row.CellCheckBoxStateAt(2) = DesktopCheckBox.VisualStates.Indeterminate
    
  End If
Next row

Gives me this error: Line 5 This method cannot accept an assigned value (it lacks an Assigns parameter).
row.CellCheckBoxStateAt(2) = DesktopCheckBox.VisualStates.Indeterminate

Any direction would be great

The DesktopListBoxRow class can only read some parameters of a row. Use this instead:

Var iRowCount As Integer = Me.LastRowIndex

For row As Integer = 0 To iRowCount  
  If Me.CellTextAt(row, 2) = "Required" Then
    Me.CellCheckBoxStateAt(row, 2) = DesktopCheckBox.VisualStates.Indeterminate
  End If
Next row
2 Likes