Guys,

I am using a C1TrueGrid (ARGHHHH). I am trying to get the id of the selected row, I have grouping applied so the normal methods are giving me the grouped row ID. Really annoying. In their manual, they give this code, but I can't get this working. I'm getting the error at the bottom of the code.

I know its difficult when I'm using non standard controls, but can anybody see the problem ? C1support are not good at giving fast and concise solutions to these issues.

Thanks in advance,
Bob

VB Code:
  1. Dim dv As System.Data.DataView()
  2.             Dim cm As CurrencyManager
  3.             cm = CType(Me.BindingContext.Item(Me._tgDocLog.DataSource, Me._tgDocLog.DataMember), CurrencyManager)
  4.             dv = cm.List
  5.             Dim dr As System.Data.DataRow = Me._tgDocLog(Me._tgDocLog.Row)
  6.  
  7.             'ERROR - Value of type 'IList' cannot be converted to '1-dimensional array of DataView'.