Click here to Skip to main content
15,913,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: 0=48?? Pin
Manfr3d4-Jul-07 1:11
Manfr3d4-Jul-07 1:11 
GeneralRe: 0=48?? [modified] Pin
Martin#4-Jul-07 1:30
Martin#4-Jul-07 1:30 
GeneralRe: 0=48?? Pin
Vikram A Punathambekar4-Jul-07 1:54
Vikram A Punathambekar4-Jul-07 1:54 
Questionusing serial port with vista??? Pin
Mir_As3-Jul-07 21:38
Mir_As3-Jul-07 21:38 
Questionpassing data Pin
Bong M.3-Jul-07 21:27
Bong M.3-Jul-07 21:27 
AnswerRe: passing data Pin
JacquesDP3-Jul-07 22:18
JacquesDP3-Jul-07 22:18 
AnswerRe: passing data Pin
wasife4-Jul-07 0:04
wasife4-Jul-07 0:04 
AnswerRe: passing data Pin
JeffPClark4-Jul-07 8:33
JeffPClark4-Jul-07 8:33 
Just have the MultiplesFound form expose a public property indicating the row that was selected by the user.

<br />
if (ds.Tables[0].Rows.Count > 0)<br />
{<br />
//Used if there is only one Row returned.<br />
int SelectedRow = 0;<br />
if (ds.Tables[0].Rows.Count > 1)<br />
{<br />
cardNumber = txtCardNumber.Text;<br />
MultiplesFound myMF = new MultiplesFound(cardNumber);<br />
myMF.myCardNumber = cardNumber;<br />
myMF.ShowDialog();<br />
//Retrieve the row selection<br />
SelectedRow = myMF.SelectedRow;<br />
}<br />
//Display the selected Row (or first row when only one has been returned<br />
txtProductCode.DataBindings.Add("text", ds.Tables[SelectedRow], "prod_code");<br />
txtDescription.DataBindings.Add("text", ds.Tables[SelectedRow], "prod_desc");<br />
txtModelNumber.DataBindings.Add("text", ds.Tables[SelectedRow], "model_no");<br />
<br />
}<br />






Jeff Clark
Systems Architect
JP Clark, INC.
Columbus, Ohio

QuestionGridview error Pin
kankeyan3-Jul-07 21:18
kankeyan3-Jul-07 21:18 
AnswerRe: Gridview error Pin
Vikram A Punathambekar3-Jul-07 22:09
Vikram A Punathambekar3-Jul-07 22:09 
GeneralHere is the code Pin
kankeyan3-Jul-07 22:19
kankeyan3-Jul-07 22:19 
GeneralRe: Here is the code Pin
Vikram A Punathambekar3-Jul-07 23:23
Vikram A Punathambekar3-Jul-07 23:23 
AnswerRe: Gridview error Pin
_AK_3-Jul-07 23:09
_AK_3-Jul-07 23:09 
QuestionDelete a string from a string array. Pin
Praveen0293-Jul-07 21:14
Praveen0293-Jul-07 21:14 
AnswerRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:26
mentorGiorgi Dalakishvili3-Jul-07 21:26 
AnswerRe: Delete a string from a string array. Pin
V.3-Jul-07 21:27
professionalV.3-Jul-07 21:27 
AnswerRe: Delete a string from a string array. Pin
Martin#3-Jul-07 21:36
Martin#3-Jul-07 21:36 
GeneralRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:51
mentorGiorgi Dalakishvili3-Jul-07 21:51 
GeneralRe: Delete a string from a string array. Pin
Martin#3-Jul-07 22:01
Martin#3-Jul-07 22:01 
GeneralRe: Delete a string from a string array. Pin
Praveen0293-Jul-07 22:01
Praveen0293-Jul-07 22:01 
GeneralRe: Delete a string from a string array. Pin
Martin#4-Jul-07 5:47
Martin#4-Jul-07 5:47 
AnswerRe: Delete a string from a string array. Pin
mav.northwind3-Jul-07 22:03
mav.northwind3-Jul-07 22:03 
QuestionProblem with Creating a New Project of Compact FrameWrok Pin
MehmetFurkan3-Jul-07 20:49
MehmetFurkan3-Jul-07 20:49 
Questionresize 2d array Pin
Sapan Roy3-Jul-07 20:41
Sapan Roy3-Jul-07 20:41 
AnswerRe: resize 2d array Pin
Martin#3-Jul-07 20:51
Martin#3-Jul-07 20:51 

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.