Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
AnswerRe: I should use what provider? Pin
Heath Stewart4-Jan-04 8:45
protectorHeath Stewart4-Jan-04 8:45 
QuestionHow to get list of Tables, Views and Procedure from Oracle database? Pin
god4k4-Jan-04 7:19
god4k4-Jan-04 7:19 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Nick Parker4-Jan-04 7:52
protectorNick Parker4-Jan-04 7:52 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Guillermo Rivero4-Jan-04 7:57
Guillermo Rivero4-Jan-04 7:57 
GeneralFeed CheckedListBox with data from XML Pin
dophka4-Jan-04 6:37
dophka4-Jan-04 6:37 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:34
protectorHeath Stewart4-Jan-04 8:34 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 8:46
dophka4-Jan-04 8:46 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:52
protectorHeath Stewart4-Jan-04 8:52 
dophka wrote:
I want to show the data in a datagrid, not a checkedlistBox.

Good, a DataGrid is easier to data-bind since you only have to use the DataSource property. You should also consider using the DataMember and TableStyles properties. See the SDK documentation for details or play around with the designer in VS.NET a little. It's not too difficult.

dophka wrote:
I created a new dataset. how can I make dataset.ReadXml() read from a string?

You'll need to read the fragment as a TextReader unfortunately. Let's say your XML fragment is in a string variable named xml:
StringReader reader = null;
DataSet ds = null;
try
{
  reader = new StringReader(xml);
  ds = new DataSet("news");
  ds.ReadXml(reader);
}
finally
{
  if (reader != null) reader.Close();
}


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 9:07
dophka4-Jan-04 9:07 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 9:11
protectorHeath Stewart4-Jan-04 9:11 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 10:25
dophka4-Jan-04 10:25 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart5-Jan-04 6:05
protectorHeath Stewart5-Jan-04 6:05 
Generalhelp me in finding objective and multiple choice questions Pin
imran_rafique4-Jan-04 4:29
imran_rafique4-Jan-04 4:29 
GeneralRe: help me in finding objective and multiple choice questions Pin
Heath Stewart4-Jan-04 8:23
protectorHeath Stewart4-Jan-04 8:23 
GeneralSending mail using SMTP Pin
gr8tushar4-Jan-04 1:47
gr8tushar4-Jan-04 1:47 
GeneralRe: Sending mail using SMTP Pin
Mike Ellison4-Jan-04 3:11
Mike Ellison4-Jan-04 3:11 
GeneralRe: Sending mail using SMTP Pin
gr8tushar4-Jan-04 3:43
gr8tushar4-Jan-04 3:43 
GeneralRe: Sending mail using SMTP Pin
Broken God4-Jan-04 5:59
Broken God4-Jan-04 5:59 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 8:18
protectorHeath Stewart4-Jan-04 8:18 
GeneralRe: Sending mail using SMTP Pin
Mazdak4-Jan-04 5:08
Mazdak4-Jan-04 5:08 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 8:21
protectorHeath Stewart4-Jan-04 8:21 
GeneralPanel + Keypress Pin
Heroz4-Jan-04 0:26
Heroz4-Jan-04 0:26 
GeneralRe: Panel + Keypress Pin
Mike Ellison4-Jan-04 3:14
Mike Ellison4-Jan-04 3:14 
GeneralRe: Panel + Keypress Pin
Heroz4-Jan-04 5:29
Heroz4-Jan-04 5:29 
GeneralRe: Panel + Keypress Pin
Mike Ellison4-Jan-04 6:27
Mike Ellison4-Jan-04 6:27 

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.