Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralWindows Service dependency problem Pin
halexic12-Aug-04 4:53
halexic12-Aug-04 4:53 
GeneralRe: Windows Service dependency problem Pin
ChrisAdams12-Aug-04 9:54
ChrisAdams12-Aug-04 9:54 
GeneralRe: Windows Service dependency problem Pin
halexic12-Aug-04 10:13
halexic12-Aug-04 10:13 
Generalsoftware base router implemention. Pin
12-Aug-04 4:48
suss12-Aug-04 4:48 
GeneralRe: software base router implemention. Pin
Dave Kreskowiak12-Aug-04 6:28
mveDave Kreskowiak12-Aug-04 6:28 
GeneralUnhandled exception Pin
Serge Lobko-Lobanovsky12-Aug-04 4:41
Serge Lobko-Lobanovsky12-Aug-04 4:41 
GeneralAdding new record to dataset Pin
C#Coder6712-Aug-04 4:31
C#Coder6712-Aug-04 4:31 
GeneralRe: Adding new record to dataset Pin
DougW4812-Aug-04 8:11
DougW4812-Aug-04 8:11 
There may be a better method, but the way I have been programmatically creating new rows in a dataset is like so:

private void addBtn_Click(object sender, System.EventArgs e)<br />
{<br />
System.Data.DataRow NewRow = new YourDataset.Salesperson.NewRow();<br />
<br />
/* Fill the row as you normally would from your textboxes */<br />
/* Best to use strings as indexes, NOT integers...much safer */<br />
/* Such as NewRow["FirstName"]=textBox999.Text; */<br />
<br />
this.salesDs1.AddSalespersonRow( (Namespace.YourDataset.SalespersonRow)NewRow));<br />
<br />
}


Btw, where I used YourDataset, that's not the same as this.salesDs1, YourDataset would be the the type that this.salesDs1 comes from. It'll probably be an .xsd file in the Solution Explorer.

Hope it works for you! Good luck Big Grin | :-D
GeneralAdding new record to dataset Pin
C#Coder6712-Aug-04 4:30
C#Coder6712-Aug-04 4:30 
Question.Net Spy? Pin
matthias s.12-Aug-04 3:24
matthias s.12-Aug-04 3:24 
AnswerRe: .Net Spy? Pin
Nick Parker12-Aug-04 4:41
protectorNick Parker12-Aug-04 4:41 
GeneralRe: .Net Spy? Pin
matthias s.12-Aug-04 5:00
matthias s.12-Aug-04 5:00 
AnswerRe: .Net Spy? Pin
Stefan Troschuetz12-Aug-04 5:28
Stefan Troschuetz12-Aug-04 5:28 
GeneralRe: .Net Spy? Pin
studioluc15-Aug-04 22:10
studioluc15-Aug-04 22:10 
GeneralRe: .Net Spy? Pin
Stefan Troschuetz16-Aug-04 10:01
Stefan Troschuetz16-Aug-04 10:01 
AnswerRe: .Net Spy? Pin
DRVoodoo12-Aug-04 19:43
DRVoodoo12-Aug-04 19:43 
GeneralDisplay help message Pin
vcorn12-Aug-04 2:37
vcorn12-Aug-04 2:37 
GeneralRe: Display help message Pin
Dave Kreskowiak12-Aug-04 6:21
mveDave Kreskowiak12-Aug-04 6:21 
GeneralSpliting Controls Pin
sreejith ss nair12-Aug-04 2:23
sreejith ss nair12-Aug-04 2:23 
GeneralTapi 3.0 Pin
quocbao12-Aug-04 2:00
quocbao12-Aug-04 2:00 
GeneralRe: Tapi 3.0 Pin
Michael P Butler12-Aug-04 2:37
Michael P Butler12-Aug-04 2:37 
GeneralDraw a bit picture Pin
wk_vigorous12-Aug-04 1:44
wk_vigorous12-Aug-04 1:44 
QuestionOCSP support in MS development technologies? Pin
pelos12-Aug-04 1:18
pelos12-Aug-04 1:18 
GeneralWindows API callsin C# Pin
gaurav_geek12-Aug-04 0:41
gaurav_geek12-Aug-04 0:41 
GeneralRe: Windows API callsin C# Pin
Jay Shankar12-Aug-04 1:14
Jay Shankar12-Aug-04 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.