I have three flexgrids on my form and want to programmitically loop through them.

I tried

Code:
Dim cntrl as MSHFlexGrid


For Each cntrl in Me.Controls
      'process info
next cntrl
What am I doing wrong?