Aggiungere una riga ad una tabella di un dataset

by enrico 23. November 2008 13:07

Alle volte può essere utile utilizzare un dataset ed aggiungere a questo una riga vuota ad una delle tabelle esistenti. Nell'esempio corrente dbPubs è il nostro dataset.

   1:  Dim dsPubs As New DataSet()
   2:  Dim r As DataRow
   3:  r = dsPubs.Tables(0).NewRow
   4:  dsPubs.Tables(0).Rows.Add(r)

Ciao a tutti!

Currently rated 3.5 by 2 people

  • Currently 3.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by Esia Software 1.4.0.0

Informazioni sull'autore

Sono un cittadini di Trieste, ho 33 anni e faccio lo sviluppatore nella mia azienda che si chiama Esia Software.

Commenti recenti

Comment RSS

Post recenti

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Info legali

Le opinioni espresse in questo blog sono strettamente personali e ogni persona è responsabile dei commenti che inserisce.

RecentComments

Comment RSS