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

C#

 
AnswerRe: ToolstripLabel annoyance Pin
Vasudevan Deepak Kumar22-Nov-07 18:49
Vasudevan Deepak Kumar22-Nov-07 18:49 
AnswerRe: ToolstripLabel annoyance Pin
Ravi Bhavnani23-Nov-07 3:26
professionalRavi Bhavnani23-Nov-07 3:26 
Questioncode for dropdowlist required Pin
RamMajeti22-Nov-07 15:35
RamMajeti22-Nov-07 15:35 
AnswerRe: code for dropdowlist required Pin
Michael Sync22-Nov-07 16:11
Michael Sync22-Nov-07 16:11 
AnswerRe: code for dropdowlist required Pin
Vasudevan Deepak Kumar22-Nov-07 18:51
Vasudevan Deepak Kumar22-Nov-07 18:51 
Question[Message Deleted] Pin
MAW3022-Nov-07 15:02
MAW3022-Nov-07 15:02 
AnswerRe: Cannot read DataSet Pin
Anthony Mushrow22-Nov-07 15:18
professionalAnthony Mushrow22-Nov-07 15:18 
GeneralRe: Cannot read DataSet [modified] Pin
MAW3022-Nov-07 15:50
MAW3022-Nov-07 15:50 
I just checked to see if the data is there with the following:

//****************all fields below do not show data ***********************
//****************this is from another class ******************************

DataSet dsI = new DataSet("BSD");
DataSet1.BSDDataTable BSD = new DataSet1.BSDDataTable();

int nRecord = BSD[2].nRecNumID;
string strName = BSD[2].strName;
int nSIC = BSD[2].nSIC;


********* Below is the code for loading and is marked where I checked it after loading*******

nUseRecNumID = 0;
//BSD.BeginInit();
//BSD.BeginLoadData();
//BSD.Clear();
Rowset.MoveFirst();
while (!Rowset.IsEOF)
{
if (nUseRecNumID < (Int32)Rowset.GetData(1))
{
// These lines ensure all records are incremented by one and
// RecNumID equals record number.
DataSet1.BSDRow dr = BSD.NewBSDRow();
dr.nRecNumID = nUseRecNumID;
BSD.AddBSDRow(dr);
}
else
{
if (Rowset.GetData(1) != null) nUseRecNumID = (Int32)Rowset.GetData(1);
DataSet1.BSDRow dr = BSD.NewBSDRow();
if (Rowset.GetData(1) != null) dr.nRecNumID = (Int32)Rowset.GetData(1);
if (Rowset.GetData(2) != null) dr.strName = (String)Rowset.GetData(2);
if (Rowset.GetData(3) != null) dr.nSIC = (Int32)Rowset.GetData(3);
BSD.AddBSDRow(dr);
dr.AcceptChanges();
Rowset.MoveNext();
}
nUseRecNumID = nUseRecNumID + 1;
}
//BSD.EndLoadData();
BSD.AcceptChanges();
//dsI.Tables.Add(BSD); //add the table BSD into dataset

//***********************Reads data here****************************
//****************all fields below show data ***********************

int nRecord = BSD[2].nRecNumID;
string strName = BSD[2].strName;
int nSIC = BSD[2].nSIC;

//******************************************************************

-- modified at 0:41 Friday 23rd November, 2007
AnswerRe: Cannot read DataSet Pin
Vasudevan Deepak Kumar22-Nov-07 18:52
Vasudevan Deepak Kumar22-Nov-07 18:52 
GeneralRe: Cannot read DataSet Pin
MAW3022-Nov-07 19:50
MAW3022-Nov-07 19:50 
AnswerRe: Cannot read DataSet Pin
Pankaj - Joshi22-Nov-07 19:24
Pankaj - Joshi22-Nov-07 19:24 
GeneralRe: Cannot read DataSet Pin
MAW3022-Nov-07 19:31
MAW3022-Nov-07 19:31 
GeneralRe: Cannot read DataSet Pin
Pankaj - Joshi22-Nov-07 19:55
Pankaj - Joshi22-Nov-07 19:55 
GeneralRe: Cannot read DataSet [modified] Pin
MAW3022-Nov-07 20:06
MAW3022-Nov-07 20:06 
QuestionCatching an Exception Pin
Jeffrey Walton22-Nov-07 14:30
Jeffrey Walton22-Nov-07 14:30 
AnswerRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 14:30
Jeffrey Walton22-Nov-07 14:30 
GeneralRe: Catching an Exception [modified] Pin
Luc Pattyn22-Nov-07 15:13
sitebuilderLuc Pattyn22-Nov-07 15:13 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 15:46
Jeffrey Walton22-Nov-07 15:46 
GeneralRe: Catching an Exception Pin
Luc Pattyn22-Nov-07 22:42
sitebuilderLuc Pattyn22-Nov-07 22:42 
AnswerRe: Catching an Exception Pin
Luc Pattyn22-Nov-07 14:52
sitebuilderLuc Pattyn22-Nov-07 14:52 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 15:12
Jeffrey Walton22-Nov-07 15:12 
AnswerRe: Catching an Exception Pin
Michael Sync22-Nov-07 15:19
Michael Sync22-Nov-07 15:19 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 16:01
Jeffrey Walton22-Nov-07 16:01 
GeneralRe: Catching an Exception Pin
Michael Sync22-Nov-07 16:19
Michael Sync22-Nov-07 16:19 
AnswerRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 16:05
Jeffrey Walton22-Nov-07 16:05 

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.