Hi you need a datatable for that,
for example:
Dim dt As New DataTable("MyTa ble")
dt.Columns.Add( "Name")
dt.Columns.Add( "Country")
Datagrid1.DataS ource = dt.DefaultView
you then can add rows with a datarow object or with
dt.LoadDataRow( New Object() _
{"Peter", "Belgium"}, True)
dt.LoadDataRow( New Object() _
{"Cor", "The Netherlands"}, True)
dt.LoadDataRow( New Object() _
{"Ken", "USA"}, True)
dt.LoadDataRow( New Object() _
{"You", Textbox1.Text}, True)
Hope this helps
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)
<mh******@gmail .com> schreef in bericht
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
Hi,
How can I insert an entry to datagrid without using db components? For
example, I have a textbox and I would like to press OK button and
insert the text in textbox to datagrid.
Regards.