MickeD
Programmer
- Feb 20, 2000
- 54
Hi all!
How can I add/modify/delete data in datagrid if it's not connected to any database?
This is a code:
How can I add/modify/delete data in datagrid if it's not connected to any database?
This is a code:
Code:
myDataSet = New DataSet("myDataSet")
Dim tMap As DataTable
tMap = New DataTable("Map")
' Create two columns
Dim cSource As DataColumn
cSource = New DataColumn("Source")
Dim cDest As DataColumn
cDest = New DataColumn("Dest")
tMap.Columns.Add(cSource)
tMap.Columns.Add(cDest)
' Add the tables to the DataSet.
myDataSet.Tables.Add(tMap)
grdMapping.SetDataBinding(myDataSet, "Map")