List Info

Thread: Mono for WinForms




Mono for WinForms
user name
2006-10-12 15:07:21
Hi all.  I've added a DataRow to a DataSet.  I want to
change just a few
field values and add another identical row.

Is it possible to do this w/o reassigning all the fields?
Mono for WinForms
user name
2006-10-12 15:07:51
create the new row like this...

Dim rw as datarow = dataset.mytable.newrow

rw.itemarry = rowYouWantToCopyValuesFrom.itemarray

'now manipulate values in the 'new' row.

rw("fieldname") = "some string"

dataset.mytable.rows.add(rw)


-----Original Message-----
From: Discussion forum for developers using Windows Forms to
build apps
and controls [mailtoOTNET-WI
NFORMSDISCUSS.DEVELOP.COM]On Behalf Of
Chris Bordeman
Sent: Thursday, October 12, 2006 11:07 AM
To: DOTNET-WINFORMSDISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WINFORMS] Mono for WinForms


Hi all.  I've added a DataRow to a DataSet.  I want to
change just a few
field values and add another identical row.

Is it possible to do this w/o reassigning all the fields?
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )