Alan,
There is no AFields()function or dropdownlist.rowsourcetype ... I suspect you're talking about VFP and this question is in the .NET forum.
~~Bonnie
>Add a property to your form - aFlds[1]
>Set your combobox rowsourcetype to Array, and the rowsource to ThisForm.aFlds, ColumnCount = 1
>In The form load,
>
>AFields(ThisForm.aFlds, "mytable")
>
>Alan
>
>
>>I am trying to populate a a dropdown box with the field names of a Ds to enable a user to select query Fields.
>>
>>so i tried to use and arraylist something like this
>>
>>dim lafldnames As New ArrayList
>> For intColumn = 0 To dsGrid.Tables(0).Columns.Count - 1
>>
>>lafldnames.Add(dsGrid.Tables(0).Columns(intColumn).ColumnName.ToString)
>>
>>next
>>
>> DropDownList1.DataSource = Me.lafldnames
>> DropDownList1.DataBind()
>>
>>
>>however I get an error
>>
>>DataBinder.Eval: 'System.String' does not contain a property with the name dsGrid.Tables(0).Columns(intColumn).ColumnName.ToString