Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: exe not executed Pin
prithaa2-Jun-10 20:52
prithaa2-Jun-10 20:52 
GeneralRe: exe not executed Pin
Luc Pattyn3-Jun-10 1:36
sitebuilderLuc Pattyn3-Jun-10 1:36 
GeneralRe: exe not executed Pin
prithaa3-Jun-10 1:38
prithaa3-Jun-10 1:38 
GeneralRe: exe not executed Pin
Luc Pattyn3-Jun-10 1:40
sitebuilderLuc Pattyn3-Jun-10 1:40 
QuestionCalling COM fails in C# destructor Pin
cmartono1-Jun-10 16:41
cmartono1-Jun-10 16:41 
AnswerRe: Calling COM fails in C# destructor Pin
Abhinav S1-Jun-10 17:43
Abhinav S1-Jun-10 17:43 
QuestionClick on WindowPattern Pin
mayraglez1-Jun-10 7:41
mayraglez1-Jun-10 7:41 
QuestionDataTable row column lookup possiblity? Pin
Blubbo1-Jun-10 7:11
Blubbo1-Jun-10 7:11 
I'm trying to determine if its possible to get the row index of the data combination while avoiding the interation for-loop?

Here's an example below

DataTable may look like this (with variable named "datTab":

Name Number1 Number2 Number3 Number4
Ron 60 43 33 40
Sco 83 43 33 42
Alb 60 43 32 40
Hei 34 32 45 55
Ant 23 43 33 23


Now, the question is... is it possible to get the row index number if I would find the number combination with 4 numbers? Such as I would say to find 60, 43, 33, 42 and it would find the row index = 1. I understand it can do for one column, such as

int indexTab = datTab.Rows["Number1"].IndexOf("00");

but with multiple columns? I just thought of it as I use it in my code and the software is really sluggish with muliple columns using For-loop and if-statement inside the loop.

I hope someone can answer this. I'm hoping this will provide better performance.

Thanks!
AnswerRe: DataTable row column lookup possiblity? Pin
T M Gray1-Jun-10 10:16
T M Gray1-Jun-10 10:16 
GeneralRe: DataTable row column lookup possiblity? Pin
Blubbo2-Jun-10 2:07
Blubbo2-Jun-10 2:07 
AnswerRe: DataTable row column lookup possiblity? Pin
PIEBALDconsult1-Jun-10 13:31
mvePIEBALDconsult1-Jun-10 13:31 
AnswerRe: DataTable row column lookup possiblity? Pin
AspDotNetDev1-Jun-10 17:58
protectorAspDotNetDev1-Jun-10 17:58 
GeneralRe: DataTable row column lookup possiblity? Pin
Blubbo2-Jun-10 2:08
Blubbo2-Jun-10 2:08 
QuestionSend mail through SMTP server Pin
loyal ginger1-Jun-10 7:02
loyal ginger1-Jun-10 7:02 
AnswerRe: Send mail through SMTP server Pin
Abhinav S1-Jun-10 7:52
Abhinav S1-Jun-10 7:52 
GeneralRe: Send mail through SMTP server Pin
loyal ginger1-Jun-10 8:51
loyal ginger1-Jun-10 8:51 
AnswerRe: Send mail through SMTP server Pin
OriginalGriff1-Jun-10 8:22
mveOriginalGriff1-Jun-10 8:22 
GeneralRe: Send mail through SMTP server Pin
loyal ginger1-Jun-10 8:33
loyal ginger1-Jun-10 8:33 
GeneralRe: Send mail through SMTP server Pin
OriginalGriff1-Jun-10 8:41
mveOriginalGriff1-Jun-10 8:41 
GeneralRe: Send mail through SMTP server Pin
Luc Pattyn1-Jun-10 9:11
sitebuilderLuc Pattyn1-Jun-10 9:11 
GeneralRe: Send mail through SMTP server Pin
loyal ginger1-Jun-10 8:48
loyal ginger1-Jun-10 8:48 
GeneralRe: Send mail through SMTP server Pin
OriginalGriff1-Jun-10 8:54
mveOriginalGriff1-Jun-10 8:54 
GeneralRe: Send mail through SMTP server Pin
loyal ginger1-Jun-10 9:14
loyal ginger1-Jun-10 9:14 
GeneralRe: Send mail through SMTP server Pin
Luc Pattyn1-Jun-10 9:59
sitebuilderLuc Pattyn1-Jun-10 9:59 
QuestionFile.Open strange behaviour Pin
ds411-Jun-10 6:46
ds411-Jun-10 6:46 

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.