I have a function that adds to my collection, but I dont want to add it to my collection if more than one result is returned, how can I check how many records are being returned in the dataset ??
VB Code:
If e.Column.Key = "productRangeCode" Then If _rangeCode.Length > 0 Then Dim _component As New Component _component.Load(_rangeCode) ' This calls my load function in my class 'I need to check here how many are returned before adding to my collection ?????? product.Formulation.Add(_component) GridExFormula.Refetch() End If
Thanks
