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

C#

 
GeneralRe: how to work with an opened text file in list box? Pin
pcsience8-Feb-09 9:42
pcsience8-Feb-09 9:42 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn8-Feb-09 10:04
sitebuilderLuc Pattyn8-Feb-09 10:04 
QuestionRe: how to work with an opened text file in list box? Pin
pcsience9-Feb-09 9:08
pcsience9-Feb-09 9:08 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn9-Feb-09 9:19
sitebuilderLuc Pattyn9-Feb-09 9:19 
QuestionCannot figure out how to get the row I need in a datatable Pin
compninja256-Feb-09 9:49
compninja256-Feb-09 9:49 
AnswerRe: Cannot figure out how to get the row I need in a datatable Pin
Luc Pattyn6-Feb-09 10:03
sitebuilderLuc Pattyn6-Feb-09 10:03 
GeneralRe: Cannot figure out how to get the row I need in a datatable Pin
compninja256-Feb-09 10:19
compninja256-Feb-09 10:19 
GeneralRe: Cannot figure out how to get the row I need in a datatable Pin
compninja259-Feb-09 3:04
compninja259-Feb-09 3:04 
Hi Luc,

I was able to get this to work. Looking at the debugger again, the system see's the column name with double quotes. I was able to get it to find the record by using this search expression:

DataRow[] rows = dt1.Select("[\"I$PN\"] = 'CA-106-77'");


Notice I changed the name to rows! Now I'm going to spend some time writing some try and catches just in the event there are no rows or multiple rows found.

Thanks for all of your help and input!

"You're damned if you do, and you're damned if you dont" - Bart Simpson

AnswerRe: Cannot figure out how to get the row I need in a datatable Pin
Ennis Ray Lynch, Jr.6-Feb-09 10:48
Ennis Ray Lynch, Jr.6-Feb-09 10:48 
GeneralRe: Cannot figure out how to get the row I need in a datatable Pin
compninja259-Feb-09 2:13
compninja259-Feb-09 2:13 
GeneralRe: Cannot figure out how to get the row I need in a datatable Pin
Ennis Ray Lynch, Jr.9-Feb-09 2:42
Ennis Ray Lynch, Jr.9-Feb-09 2:42 
GeneralRe: Cannot figure out how to get the row I need in a datatable [modified] Pin
compninja259-Feb-09 2:52
compninja259-Feb-09 2:52 
QuestionIs using a User Control Embedded Class a good practice? Pin
MacSpudster6-Feb-09 9:05
professionalMacSpudster6-Feb-09 9:05 
AnswerNot really the place for this question Pin
Pete O'Hanlon6-Feb-09 11:26
mvePete O'Hanlon6-Feb-09 11:26 
GeneralRe: Not really the place for this question Pin
MacSpudster9-Feb-09 8:34
professionalMacSpudster9-Feb-09 8:34 
Questiongenerating a class from an xsd at runtime? Pin
orinoco776-Feb-09 5:52
orinoco776-Feb-09 5:52 
AnswerRe: generating a class from an xsd at runtime? Pin
Ennis Ray Lynch, Jr.6-Feb-09 7:17
Ennis Ray Lynch, Jr.6-Feb-09 7:17 
QuestionReading the Caption(Title) of another Window Pin
SimpleData6-Feb-09 5:26
SimpleData6-Feb-09 5:26 
AnswerRe: Reading the Caption(Title) of another Window Pin
0x3c06-Feb-09 5:34
0x3c06-Feb-09 5:34 
AnswerRe: Reading the Caption(Title) of another Window Pin
Giorgi Dalakishvili6-Feb-09 5:48
mentorGiorgi Dalakishvili6-Feb-09 5:48 
QuestionGet SelectedListViewItemCollection threadsafe [modified] Pin
Tobesucht6-Feb-09 4:07
Tobesucht6-Feb-09 4:07 
AnswerRe: Get SelectedListViewItemCollection threadsafe Pin
Tobesucht8-Feb-09 21:11
Tobesucht8-Feb-09 21:11 
QuestionSystem.Data.SqlClient.SqlClientpermission,System, publickey token='......' failed exception Pin
praveenvkumarv6-Feb-09 3:53
praveenvkumarv6-Feb-09 3:53 
AnswerCP: REPOST Pin
EliottA6-Feb-09 4:14
EliottA6-Feb-09 4:14 
GeneralRe: CP: REPOST Pin
musefan6-Feb-09 4:30
musefan6-Feb-09 4:30 

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.