Pretty picky:) I don't think I've seen a collection class that use Add like this. Nearly all allow you to pass in an object of the appropriate type to be added. Perhaps this is their way of ensuring the collection is type-safe; they add the item for you internally then give you a reference to so you can set the properties as needed.
Dan -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of franklin gray Sent: Thursday, April 18, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Devexpress Grid! 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. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.