Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: Tree View Control Expand Problem Pin
sreejith ss nair15-Feb-05 2:26
sreejith ss nair15-Feb-05 2:26 
GeneralText To Spech Control Pin
Shady Aly15-Feb-05 0:04
Shady Aly15-Feb-05 0:04 
GeneralRe: Text To Spech Control Pin
chriswalshie15-Feb-05 0:50
chriswalshie15-Feb-05 0:50 
GeneralRe: Text To Spech Control Pin
Shady Aly15-Feb-05 1:24
Shady Aly15-Feb-05 1:24 
GeneralCapture working of mouse outside my application Pin
Anonymous14-Feb-05 23:36
Anonymous14-Feb-05 23:36 
GeneralRe: Capture working of mouse outside my application Pin
Stefan Troschuetz15-Feb-05 1:11
Stefan Troschuetz15-Feb-05 1:11 
Generalmobile application with ssl Pin
ppp00114-Feb-05 21:53
ppp00114-Feb-05 21:53 
GeneralAccessing DataSet Columns Pin
StrayGrey14-Feb-05 21:43
StrayGrey14-Feb-05 21:43 
I have the following code in a C#.net program I need to maintain:-
_PMdb = new PMDataAccess(ConnectionString.PM);
ClearFields();
/*
* spGetActivePromotions
* @Today datetime 8
*/
DataParameter[] p = new DataParameter[1];
string sdate = Settings.String(ConfigString.SimulationDate);
if (sdate!="")
p[0] = new DataParameter("@Today", DateTime.Parse(sdate));
else
p[0] = new DataParameter("@Today", DateTime.Now);
DataSet ds = _PMdb.GetDataSet("spGetActivePromotions", p);

all of which works fine but now I need to access the 9th column, called ManualTicketIssue, in this data.
My thought was that

_ManualTicketIssue =
System.Convert.ToInt32(ds.Tables[0].Rows[0]["ManualTicketIssue"]);

would do it but unfortunately not.
BTW Tables[0] is the correct table and as there is only one row Rows[0] should also, in my mind, be correct. _ManualTicketIssue is defined as an int and the column in the database is also defined as an int.



Please make suggestions on how I should proceed.

Regards,
Alf
GeneralRe: Accessing DataSet Columns Pin
Luis Alonso Ramos15-Feb-05 19:07
Luis Alonso Ramos15-Feb-05 19:07 
Generaldatagrid Scroll Pin
sevan14-Feb-05 21:40
sevan14-Feb-05 21:40 
GeneralRe: datagrid Scroll Pin
sreejith ss nair15-Feb-05 2:46
sreejith ss nair15-Feb-05 2:46 
GeneralDrag & Drop Pin
Anonymous14-Feb-05 21:11
Anonymous14-Feb-05 21:11 
Generalcheckbox in DataGrid Pin
ppp00114-Feb-05 15:38
ppp00114-Feb-05 15:38 
Questionhow to select a line on DataGrid Pin
yu-yu14-Feb-05 14:48
yu-yu14-Feb-05 14:48 
Questionhow to debug exchange store event sink Pin
muh22m14-Feb-05 14:30
muh22m14-Feb-05 14:30 
Questioncan you convert this? Pin
jedskie_a14-Feb-05 13:47
jedskie_a14-Feb-05 13:47 
AnswerRe: can you convert this? Pin
Christian Graus14-Feb-05 14:08
protectorChristian Graus14-Feb-05 14:08 
GeneralRe: can you convert this? Pin
jedskie_a14-Feb-05 22:41
jedskie_a14-Feb-05 22:41 
GeneralRe: can you convert this? Pin
Christian Graus15-Feb-05 9:22
protectorChristian Graus15-Feb-05 9:22 
QuestionHow to delete or Remove Item with image from ListView in C#? Pin
SudhaMakki14-Feb-05 11:52
SudhaMakki14-Feb-05 11:52 
Generalalmost custom control Pin
Sasuko14-Feb-05 11:47
Sasuko14-Feb-05 11:47 
GeneralRe: almost custom control Pin
Dave Kreskowiak14-Feb-05 17:55
mveDave Kreskowiak14-Feb-05 17:55 
Generalcan't add reference for hash tables in C#.net Pin
kowplunk14-Feb-05 11:45
kowplunk14-Feb-05 11:45 
GeneralRe: can't add reference for hash tables in C#.net Pin
Christian Graus14-Feb-05 12:05
protectorChristian Graus14-Feb-05 12:05 
GeneralRe: can't add reference for hash tables in C#.net Pin
kowplunk14-Feb-05 18:12
kowplunk14-Feb-05 18:12 

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.