I know I am being picky here, but if one were to follow the vb.net structure, wouldn't
clm = cv.Columns.Add() be clm = cv.NewColumn or cv.CreateColumn (much like the
XMLDoc.CreateElement)? This .Add() with nothing in the brackets is just confusing.
Oh BTW, this is from one of their examples.
Dim clm As Columns.GridColumn
For i = 0 To s1.Length - 1
clm = cv.Columns.Add()
clm.FieldName = s1(i)
clm.VisibleIndex = i
Next
This is how I would have structured it.
Dim clm As Columns.GridColumn
For i = 0 To s1.Length - 1
clm = new Columns.GridColumn(s1(i))
clm.VisibleIndex = i
cv.Columns.Add(clm)
Next
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.