Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enabling Transparent Backgrounds in custom components Pin
Tristan Rhodes30-Mar-04 12:02
Tristan Rhodes30-Mar-04 12:02 
QuestionHow to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize29-Mar-04 21:58
znize29-Mar-04 21:58 
AnswerRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
Heath Stewart30-Mar-04 4:17
protectorHeath Stewart30-Mar-04 4:17 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize31-Mar-04 3:51
znize31-Mar-04 3:51 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize7-Apr-04 7:49
znize7-Apr-04 7:49 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
Heath Stewart7-Apr-04 8:37
protectorHeath Stewart7-Apr-04 8:37 
GeneralXml Pin
Appelz29-Mar-04 20:42
Appelz29-Mar-04 20:42 
GeneralRe: Xml Pin
Heath Stewart30-Mar-04 3:52
protectorHeath Stewart30-Mar-04 3:52 
That's not a valid format for a DataSet, so you won't be able to bind to the elements you want. DataSets have either 2 or 3 levels. In the case of 1 level below the root (which is required by XML) a generic table name is used, IIRC, like "Table1", but you can always just use dataSet1.Tables[0]. In the case of 2 levels below the root each parent element is the table name and each child (leaf) element is a field. Each instance of the parent elements counts as a row, like so:
<DataSet>
  <Table1>
    <ID />
    <Name />
  </Table1>
  <Table1>
    <ID />
    <Name />
  </Table1>
  <Table2>
    <Stuff />
  </Table2>
</DataSet>
So this DataSet would have to two tables named "Table1" and "Table2". Table1 would have two rows and Table2 would have one. There's really not any other ways you can represent such a simple structure.

My suggestion is to extract the <databases< element(s) and put those into a separate DataSet (see the XmlDataDocument for some help with that) and bind against that.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Xml Pin
Jesse Squire30-Mar-04 7:07
Jesse Squire30-Mar-04 7:07 
GeneralRe: Xml Pin
bertcox30-Mar-04 19:48
bertcox30-Mar-04 19:48 
GeneralClient-Server in .NET Pin
Prasad Anand29-Mar-04 20:18
Prasad Anand29-Mar-04 20:18 
GeneralRe: Client-Server in .NET Pin
CWIZO30-Mar-04 2:25
CWIZO30-Mar-04 2:25 
General.NET Remoting Using C# Pin
Prasad.A29-Mar-04 18:48
Prasad.A29-Mar-04 18:48 
GeneralRe: .NET Remoting Using C# Pin
LongRange.Shooter30-Mar-04 7:36
LongRange.Shooter30-Mar-04 7:36 
GeneralTreeview Problem Pin
Prasad Anand29-Mar-04 18:42
Prasad Anand29-Mar-04 18:42 
General.NET Remoting Using C# Pin
Prasad Anand29-Mar-04 18:36
Prasad Anand29-Mar-04 18:36 
GeneralRe: .NET Remoting Using C# Pin
Heath Stewart29-Mar-04 18:52
protectorHeath Stewart29-Mar-04 18:52 
QuestionCircular dependency solution? Pin
Alex Korchemniy29-Mar-04 17:52
Alex Korchemniy29-Mar-04 17:52 
AnswerRe: Circular dependency solution? Pin
Heath Stewart29-Mar-04 18:29
protectorHeath Stewart29-Mar-04 18:29 
GeneralRe: Circular dependency solution? Pin
Alex Korchemniy30-Mar-04 6:06
Alex Korchemniy30-Mar-04 6:06 
GeneralRe: Circular dependency solution? Pin
Andy Wieberneit30-Mar-04 11:20
Andy Wieberneit30-Mar-04 11:20 
Generalwindows media player custom control Pin
Marveyles29-Mar-04 17:00
Marveyles29-Mar-04 17:00 
GeneralRe: windows media player custom control Pin
Heath Stewart29-Mar-04 18:23
protectorHeath Stewart29-Mar-04 18:23 
GeneralRe: windows media player custom control Pin
Marveyles29-Mar-04 18:39
Marveyles29-Mar-04 18:39 
GeneralRe: windows media player custom control Pin
Heath Stewart29-Mar-04 18:45
protectorHeath Stewart29-Mar-04 18:45 

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.