deleting a row from a dataset

0 views
Skip to first unread message

marzieh sv

unread,
Apr 9, 2005, 5:22:10 AM4/9/05
to CSDesign...@googlegroups.com
I've loaded a xml file to a dataset, and now I want to edit this
dataset(forexample delete a row),
what should I do?
thanks

Tamma

unread,
May 2, 2005, 8:26:12 AM5/2/05
to CSDesign...@googlegroups.com

try this,
Here VTS_VH_STATUS, is my typed dataset, replace u'r dataset

Dim drow As VTS_VH_STATUS.VTS_VH_STATUSRow
drow = LocalDataSet.Tables(0).Rows(0)
drow.BeginEdit()
drow.Delete()
drow.EndEdit()
and use the DataSet ie., LocalDataSet here

This is VB.NET code.
Regards,
Ramsh

Reply all
Reply to author
Forward
0 new messages