Click here to Skip to main content
15,902,903 members
Home / Discussions / C#
   

C#

 
Questionalgorithm A* on C# Pin
AnhTin5-Nov-07 19:57
AnhTin5-Nov-07 19:57 
AnswerRe: algorithm A* on C# Pin
Andrei Ungureanu5-Nov-07 20:09
Andrei Ungureanu5-Nov-07 20:09 
QuestionWeb Service Updation Pin
AB77715-Nov-07 19:44
AB77715-Nov-07 19:44 
QuestionReading and writing to classes Pin
MAW305-Nov-07 19:23
MAW305-Nov-07 19:23 
AnswerRe: Reading and writing to classes Pin
Guffa5-Nov-07 20:02
Guffa5-Nov-07 20:02 
GeneralRe: Reading and writing to classes Pin
MAW305-Nov-07 22:19
MAW305-Nov-07 22:19 
AnswerRe: Reading and writing to classes Pin
Guffa5-Nov-07 22:41
Guffa5-Nov-07 22:41 
QuestionReading and writing to DataSets Pin
MAW305-Nov-07 19:20
MAW305-Nov-07 19:20 
I loaded up a DataSet from an SQL table and was able to read it within the class in which I loaded the ds. However when I try to call the data from another class there is no data in the ds. I asked this a few days ago and the code was asked for so here it is.

Please help,
Michael

I have 2 pieces of code one for datasets and the other a class in which I have a similar problem, I did not include all of the code but the general idea is there. I will place the second in a different thread. Note that some of the syntax comes from a program called OleDBProNet for loading data from a database though this should not matter see where I can read data in "***".



****** Note this is not all of the code the general idea ************


Class1
{
DataSet_I dsI = new DataSet_I();
DataSet_I.BSecDataDataTable BSD = new DataSet_I.BSecDataDataTable();


public void buttonFillDataTables_Click(object sender, EventArgs e)
{
if (checkBoxOleDBProNet.Checked == true)
{
if (checkBoxFilldsIDataTables.Checked == true) FilldsI_DataTablesOleDBProNet();

string strGroup = BSD[200].strGroup;

******* Data does not show here line above*****
}
}
}

Class2
{
DataSet_I dsI = new DataSet_I();
DataSet_I.BSecDataDataTable BSD = new DataSet_I.BSecDataDataTable();

FilldsI_DataTablesOleDBProNet();
{
ShowRowset();
string strGroup = BSD[200].strGroup; ******* Data shows here *****
}

public void ShowRowset()
{
Rowset.MoveFirst();
while (!Rowset.IsEOF)
{
BSD.NewBSecDataRow();
BSD.Rows.Add(nUseRecNumID);

if (Rowset.GetData(1) != null) BSD[nUseRecNumID].nRecNumID = (Int32)Rowset.GetData(1);

Rowset.MoveNext();
}
}
}
}

QuestionDatabase Problems and microsoft finger print reader Pin
kingletas5-Nov-07 19:17
kingletas5-Nov-07 19:17 
Questionhow to write error in event using Event Log with date and time in c# windows application Pin
l.sabitha5-Nov-07 18:35
l.sabitha5-Nov-07 18:35 
AnswerRe: how to write error in event using Event Log with date and time in c# windows application Pin
Giorgi Dalakishvili5-Nov-07 20:00
mentorGiorgi Dalakishvili5-Nov-07 20:00 
Questioncontext menu in child form Pin
faiznasi5-Nov-07 18:22
faiznasi5-Nov-07 18:22 
AnswerRe: context menu in child form Pin
N a v a n e e t h5-Nov-07 18:46
N a v a n e e t h5-Nov-07 18:46 
GeneralRe: context menu in child form Pin
faiznasi5-Nov-07 19:00
faiznasi5-Nov-07 19:00 
GeneralRe: context menu in child form Pin
netJP12L6-Nov-07 17:16
netJP12L6-Nov-07 17:16 
QuestionHow to write an error in event using Event Log with date and time Pin
mrcsn5-Nov-07 18:06
mrcsn5-Nov-07 18:06 
AnswerRe: How to write an error in event using Event Log with date and time Pin
_tasleem5-Nov-07 19:55
_tasleem5-Nov-07 19:55 
AnswerRe: How to write an error in event using Event Log with date and time Pin
Giorgi Dalakishvili5-Nov-07 19:59
mentorGiorgi Dalakishvili5-Nov-07 19:59 
QuestionWhy use a preprocessor variable instead of a normal one Pin
G.K.M.5-Nov-07 17:38
G.K.M.5-Nov-07 17:38 
AnswerRe: Why use a preprocessor variable instead of a normal one Pin
N a v a n e e t h5-Nov-07 18:42
N a v a n e e t h5-Nov-07 18:42 
AnswerRe: Why use a preprocessor variable instead of a normal one Pin
PIEBALDconsult6-Nov-07 4:02
mvePIEBALDconsult6-Nov-07 4:02 
QuestionHow to Validate an XML Document by Using DTD, XDR in C# window applications Pin
mrcsn5-Nov-07 17:31
mrcsn5-Nov-07 17:31 
AnswerRe: How to Validate an XML Document by Using DTD, XDR in C# window applications Pin
N a v a n e e t h5-Nov-07 18:43
N a v a n e e t h5-Nov-07 18:43 
QuestionWeb service error... Pin
Pankaj - Joshi5-Nov-07 17:27
Pankaj - Joshi5-Nov-07 17:27 
QuestionCopy file from server to local disk...... Pin
P_Elza5-Nov-07 16:20
P_Elza5-Nov-07 16:20 

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.