Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
AnswerRe: Finding controls Pin
JOAT-MON11-Mar-11 12:28
JOAT-MON11-Mar-11 12:28 
AnswerRe: Finding controls Pin
Dalek Dave11-Mar-11 14:13
professionalDalek Dave11-Mar-11 14:13 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:16
sitebuilderLuc Pattyn11-Mar-11 18:16 
Questionstring.split question Pin
jashimu11-Mar-11 4:59
jashimu11-Mar-11 4:59 
AnswerRe: string.split question Pin
Luc Pattyn11-Mar-11 5:12
sitebuilderLuc Pattyn11-Mar-11 5:12 
AnswerRe: string.split question Pin
Dan Mos11-Mar-11 5:18
Dan Mos11-Mar-11 5:18 
AnswerRe: string.split question Pin
Dalek Dave11-Mar-11 5:19
professionalDalek Dave11-Mar-11 5:19 
AnswerRe: string.split question Pin
#realJSOP12-Mar-11 3:41
professional#realJSOP12-Mar-11 3:41 
C#
string[] parts = strMessage.Split(",");
for (int i = 0; i < parts.Length; i++)
{
    parts[i] = parts[i].Trim();
}
dataGridView.Rows.Insert(0, parts);


But don't you need to ensure that the number of parts matches the number of columns you have in the row?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


QuestionXML File user output [modified] Pin
Pierre besquent10-Mar-11 23:27
Pierre besquent10-Mar-11 23:27 
AnswerRe: XML File user output Pin
Tarun.K.S10-Mar-11 23:55
Tarun.K.S10-Mar-11 23:55 
GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 0:05
Pierre besquent11-Mar-11 0:05 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 0:08
Tarun.K.S11-Mar-11 0:08 
GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 4:28
Pierre besquent11-Mar-11 4:28 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 6:46
Tarun.K.S11-Mar-11 6:46 
GeneralRe: XML File user output Pin
Pierre besquent13-Mar-11 22:12
Pierre besquent13-Mar-11 22:12 
GeneralRe: XML File user output Pin
Pierre besquent14-Mar-11 0:59
Pierre besquent14-Mar-11 0:59 
GeneralRe: XML File user output Pin
Tarun.K.S6-Apr-11 20:25
Tarun.K.S6-Apr-11 20:25 
AnswerRe: XML File user output Pin
musefan11-Mar-11 0:11
musefan11-Mar-11 0:11 
QuestionRead Remote server Directories Pin
vishnukamath10-Mar-11 22:59
vishnukamath10-Mar-11 22:59 
AnswerRe: Read Remote server Directories Pin
musefan10-Mar-11 23:23
musefan10-Mar-11 23:23 
GeneralRe: Read Remote server Directories Pin
vishnukamath10-Mar-11 23:42
vishnukamath10-Mar-11 23:42 
GeneralRe: Read Remote server Directories Pin
musefan10-Mar-11 23:49
musefan10-Mar-11 23:49 
GeneralRe: Read Remote server Directories Pin
vishnukamath13-Mar-11 18:51
vishnukamath13-Mar-11 18:51 
QuestionBackgroundworker Pin
arkiboys10-Mar-11 22:43
arkiboys10-Mar-11 22:43 
AnswerRe: Backgroundworker Pin
musefan10-Mar-11 23:22
musefan10-Mar-11 23:22 

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.