No, it can't be that hard! ;-)
---
Dim count As Integer = myDGV.ColumnCount - 1
Dim headers(count) As String
For i As Integer = 0 To count
  headers(i) = myDGV.Columns(i).HeaderText
Next
---

On Jun 26, 6:59 pm, Chris <[email protected]> wrote:
> Hi all,
>
> Very new to all this still, but im really struggling to retun the
> column titles of a spreadsheet i have in my DataGridView.
>
> The DataGridView is based in one form, and i want to populate and
> array, which will then populated the entries in a combo box in Form2.
>
> For all my searching, i cant work it out! It cant be that hard cant
> it?
>
> Thanks in advance.
>
> Chris

Reply via email to