Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralPress Enter In Data Grid & Trigger Button Outside Pin
mikemilano12-Aug-03 9:34
mikemilano12-Aug-03 9:34 
GeneralRe: Press Enter In Data Grid & Trigger Button Outside Pin
Ista12-Aug-03 11:57
Ista12-Aug-03 11:57 
QuestionAccessing xml help in 3rd party lib..?? Pin
vlusardi12-Aug-03 7:23
vlusardi12-Aug-03 7:23 
AnswerRe: Accessing xml help in 3rd party lib..?? Pin
Heath Stewart12-Aug-03 8:25
protectorHeath Stewart12-Aug-03 8:25 
Generaltrigger button click method from code Pin
mikemilano12-Aug-03 6:38
mikemilano12-Aug-03 6:38 
GeneralRe: trigger button click method from code Pin
Nnamdi Onyeyiri12-Aug-03 7:22
Nnamdi Onyeyiri12-Aug-03 7:22 
GeneralRe: trigger button click method from code Pin
mikemilano12-Aug-03 9:31
mikemilano12-Aug-03 9:31 
GeneralDisplaying XML Files in a Data Grid Pin
soloforce12-Aug-03 5:58
soloforce12-Aug-03 5:58 
As I am new to C# programming I was wondering if you could help me. Attached is a xml file that I am simple trying to display in a grid control on a Windows form program. Unfortunately I keep getting the following error

An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot create a child list for field fegdata.

Here is the code im using when a button is clicked.

DataSet dsFeg = new DataSet("fegdata");
string filepath = "C:\\FegData.xml";
dsFeg.ReadXml(filepath);
dataGrid1.DataSource = dsFeg.Tables[0];
dataGrid1.DataMember = "fegdata";
dataGrid1.CaptionText = dataGrid1.DataMember;

Any help would be greatly appreciated.

Peter
GeneralRe: Displaying XML Files in a Data Grid Pin
Heath Stewart12-Aug-03 9:00
protectorHeath Stewart12-Aug-03 9:00 
GeneralIntPtr to byte array : Safely Pin
Anonymous12-Aug-03 1:31
Anonymous12-Aug-03 1:31 
GeneralRe: IntPtr to byte array : Safely Pin
Nnamdi Onyeyiri12-Aug-03 3:59
Nnamdi Onyeyiri12-Aug-03 3:59 
GeneralRe: IntPtr to byte array : Safely Pin
James T. Johnson12-Aug-03 5:13
James T. Johnson12-Aug-03 5:13 
GeneralRe: IntPtr to byte array : Safely Pin
Nnamdi Onyeyiri12-Aug-03 5:23
Nnamdi Onyeyiri12-Aug-03 5:23 
GeneralRe: IntPtr to byte array : Safely Pin
Heath Stewart12-Aug-03 9:09
protectorHeath Stewart12-Aug-03 9:09 
Generalsyntax highlighting control... Pin
FreJa11-Aug-03 23:50
FreJa11-Aug-03 23:50 
GeneralRe: syntax highlighting control... Pin
Kannan Kalyanaraman12-Aug-03 0:49
Kannan Kalyanaraman12-Aug-03 0:49 
Generalconstant references to non-constant objects Pin
berndg11-Aug-03 22:33
berndg11-Aug-03 22:33 
GeneralRe: constant references to non-constant objects Pin
James T. Johnson12-Aug-03 1:19
James T. Johnson12-Aug-03 1:19 
GeneralRe: constant references to non-constant objects Pin
berndg12-Aug-03 2:43
berndg12-Aug-03 2:43 
GeneralLinkLabel and Context Menu Pin
..Hubert..11-Aug-03 22:31
..Hubert..11-Aug-03 22:31 
GeneralRe: LinkLabel and Context Menu Pin
James T. Johnson12-Aug-03 1:28
James T. Johnson12-Aug-03 1:28 
GeneralRe: LinkLabel and Context Menu Pin
..Hubert..12-Aug-03 2:19
..Hubert..12-Aug-03 2:19 
QuestionHowto send Text to a Word Doc ? Pin
Anonymous11-Aug-03 21:25
Anonymous11-Aug-03 21:25 
AnswerRe: Howto send Text to a Word Doc ? Pin
MeisterBiber12-Aug-03 1:57
MeisterBiber12-Aug-03 1:57 
GeneralRe: Howto send Text to a Word Doc ? Pin
Anonymous17-Aug-03 20:06
Anonymous17-Aug-03 20:06 

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.