Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
AnswerRe: Seperate conversion functions or 1 overloaded function? Pin
PIEBALDconsult10-Oct-10 4:18
mvePIEBALDconsult10-Oct-10 4:18 
AnswerRe: Seperate conversion functions or 1 overloaded function? Pin
Abhinav S10-Oct-10 6:04
Abhinav S10-Oct-10 6:04 
GeneralRe: Seperate conversion functions or 1 overloaded function? Pin
stephen.darling10-Oct-10 7:22
stephen.darling10-Oct-10 7:22 
GeneralRe: Seperate conversion functions or 1 overloaded function? [modified] Pin
Not Active10-Oct-10 9:28
mentorNot Active10-Oct-10 9:28 
AnswerRe: Seperate conversion functions or 1 overloaded function? Pin
Eddy Vluggen10-Oct-10 11:34
professionalEddy Vluggen10-Oct-10 11:34 
GeneralRe: Seperate conversion functions or 1 overloaded function? Pin
PIEBALDconsult10-Oct-10 14:14
mvePIEBALDconsult10-Oct-10 14:14 
GeneralRe: Seperate conversion functions or 1 overloaded function? Pin
Eddy Vluggen10-Oct-10 20:37
professionalEddy Vluggen10-Oct-10 20:37 
QuestionRetrieving a DataTable from a Collection by name Pin
boreland10-Oct-10 1:02
boreland10-Oct-10 1:02 
Is there a direct way to access a datatable in a collection directly by its name?

Currently, the only way I know how access a datatable is by using a foreach statement to find the table I wish to update/modify:


DataTableCollection tables = collection.Tables;<br />
                 <br />
                foreach (DataTable tbl in tables)<br />
                {<br />
                    string name = tbl.TableName;<br />
                    <br />
                    if (name == "name")<br />
                    {<br />
                        //Update datatable with new row<br />
                        DataRow myNewRow;<br />
                        myNewRow = tbl.NewRow();<br />
<br />
                        code.....<br />
<br />
                        tbl.Rows.Add(myNewRow);   <br />
                         <br />
                    }<br />
}


Thanks for any help
AnswerRe: Retrieving a DataTable from a Collection by name Pin
OriginalGriff10-Oct-10 1:12
mveOriginalGriff10-Oct-10 1:12 
GeneralRe: Retrieving a DataTable from a Collection by name Pin
boreland10-Oct-10 1:20
boreland10-Oct-10 1:20 
GeneralRe: Retrieving a DataTable from a Collection by name Pin
OriginalGriff10-Oct-10 1:23
mveOriginalGriff10-Oct-10 1:23 
AnswerRe: Retrieving a DataTable from a Collection by name Pin
MasttsaM13-Oct-10 21:27
MasttsaM13-Oct-10 21:27 
QuestionControlling a Parallel Port Pin
TowerTurtle9-Oct-10 11:30
TowerTurtle9-Oct-10 11:30 
AnswerRe: Controlling a Parallel Port Pin
PIEBALDconsult9-Oct-10 14:52
mvePIEBALDconsult9-Oct-10 14:52 
QuestionHighscore Pin
SRJ929-Oct-10 9:35
SRJ929-Oct-10 9:35 
AnswerRe: Highscore Pin
PIEBALDconsult9-Oct-10 9:40
mvePIEBALDconsult9-Oct-10 9:40 
JokeRe: Highscore Pin
dan!sh 9-Oct-10 10:32
professional dan!sh 9-Oct-10 10:32 
GeneralRe: Highscore Pin
PIEBALDconsult9-Oct-10 15:53
mvePIEBALDconsult9-Oct-10 15:53 
AnswerRe: Highscore Pin
Abhinav S9-Oct-10 17:44
Abhinav S9-Oct-10 17:44 
AnswerRe: Highscore Pin
Richard MacCutchan9-Oct-10 21:49
mveRichard MacCutchan9-Oct-10 21:49 
QuestionMarshalling a structure to contain an array whose length is an earlier struct member? Pin
o m n i9-Oct-10 9:33
o m n i9-Oct-10 9:33 
AnswerRe: Marshalling a structure to contain an array whose length is an earlier struct member? Pin
OriginalGriff10-Oct-10 0:19
mveOriginalGriff10-Oct-10 0:19 
QuestionAn attempt was made to access the socket in a way forbidden by its access permissions Pin
ars.029-Oct-10 8:02
ars.029-Oct-10 8:02 
AnswerRe: An attempt was made to access the socket in a way forbidden by its access permissions Pin
Richard MacCutchan9-Oct-10 21:47
mveRichard MacCutchan9-Oct-10 21:47 
AnswerRe: An attempt was made to access the socket in a way forbidden by its access permissions Pin
Dave Kreskowiak10-Oct-10 3:19
mveDave Kreskowiak10-Oct-10 3:19 

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.