Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
AnswerRe: Space as string in user settings file [modified] Pin
PIEBALDconsult12-Oct-10 17:09
mvePIEBALDconsult12-Oct-10 17:09 
QuestionDataGridView Search [modified] Pin
boreland12-Oct-10 3:55
boreland12-Oct-10 3:55 
AnswerRe: DataGridView Search Pin
Luc Pattyn12-Oct-10 4:14
sitebuilderLuc Pattyn12-Oct-10 4:14 
GeneralRe: DataGridView Search Pin
boreland12-Oct-10 4:19
boreland12-Oct-10 4:19 
GeneralRe: DataGridView Search Pin
Luc Pattyn12-Oct-10 4:43
sitebuilderLuc Pattyn12-Oct-10 4:43 
GeneralRe: DataGridView Search Pin
boreland12-Oct-10 4:50
boreland12-Oct-10 4:50 
GeneralRe: DataGridView Search Pin
Luc Pattyn12-Oct-10 4:56
sitebuilderLuc Pattyn12-Oct-10 4:56 
AnswerRe: DataGridView Search Pin
boreland12-Oct-10 16:04
boreland12-Oct-10 16:04 
For anybody else with this question, I settled on this approach:

int rowIndex = -1;
try
{
    DataGridViewRow row = dataGridView1.Rows
        .Cast<DataGridViewRow>()
        .Where(r => r.Cells[0].Value.ToString().Equals(symbol to be found))
        .First();

    rowIndex = row.Index;
}
catch
{
}


Perhaps somebody with more knowledge could say which of the two approaches (the other given in my original post) is the most efficient.
QuestionHow to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
PravinSingh12-Oct-10 2:14
PravinSingh12-Oct-10 2:14 
AnswerRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
OriginalGriff12-Oct-10 2:23
mveOriginalGriff12-Oct-10 2:23 
GeneralRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
PravinSingh12-Oct-10 3:57
PravinSingh12-Oct-10 3:57 
GeneralRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
MKAdeel12-Oct-10 23:48
MKAdeel12-Oct-10 23:48 
GeneralRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
Pete O'Hanlon13-Oct-10 0:59
mvePete O'Hanlon13-Oct-10 0:59 
QuestionRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
PravinSingh13-Oct-10 7:20
PravinSingh13-Oct-10 7:20 
AnswerRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
fjdiewornncalwe12-Oct-10 2:48
professionalfjdiewornncalwe12-Oct-10 2:48 
AnswerRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
PIEBALDconsult12-Oct-10 3:34
mvePIEBALDconsult12-Oct-10 3:34 
AnswerRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
T M Gray12-Oct-10 8:16
T M Gray12-Oct-10 8:16 
GeneralRe: How to create a DataSet with two tables having a 'JOIN' in ADO.NET? Pin
PIEBALDconsult12-Oct-10 17:15
mvePIEBALDconsult12-Oct-10 17:15 
Questionhow to findout which drive is a cool disk? Pin
Fred 3412-Oct-10 1:40
Fred 3412-Oct-10 1:40 
AnswerRe: how to findout which drive is a cool disk? Pin
Luc Pattyn12-Oct-10 1:52
sitebuilderLuc Pattyn12-Oct-10 1:52 
QuestionBlock Desktop to prevent user interaction Pin
teknolog12311-Oct-10 23:03
teknolog12311-Oct-10 23:03 
AnswerRe: Block Desktop to prevent user interaction Pin
Luc Pattyn11-Oct-10 23:41
sitebuilderLuc Pattyn11-Oct-10 23:41 
GeneralRe: Block Desktop to prevent user interaction Pin
teknolog12312-Oct-10 0:37
teknolog12312-Oct-10 0:37 
GeneralRe: Block Desktop to prevent user interaction Pin
Luc Pattyn12-Oct-10 0:53
sitebuilderLuc Pattyn12-Oct-10 0:53 
GeneralRe: Block Desktop to prevent user interaction Pin
fjdiewornncalwe12-Oct-10 2:53
professionalfjdiewornncalwe12-Oct-10 2:53 

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.