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

C#

 
Questionremoving items from row.ItemArray Pin
Sean_B9-Aug-07 22:44
Sean_B9-Aug-07 22:44 
AnswerRe: removing items from row.ItemArray Pin
Sean_B9-Aug-07 23:02
Sean_B9-Aug-07 23:02 
GeneralRe: removing items from row.ItemArray Pin
Talal Sultan9-Aug-07 23:23
Talal Sultan9-Aug-07 23:23 
From MSDN of VS 2005:

String.Split (String[], Int32, StringSplitOptions)

Returns a String array containing the substrings in this string that are delimited by elements of a specified String array. Parameters specify the maximum number of substrings to return and whether to return empty array elements.

What happens if you put in the number of columns of the table? That would be:

char[] charSeparators = new char[] {','};

row.ItemArray = finalLine.Split(charSeparators,dt.Columns.Count,StringSplitOptions.None);




-- If this is a post that has been helpful to you, please vote for it. Thank you!

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

AnswerRe: removing items from row.ItemArray Pin
Guffa9-Aug-07 23:31
Guffa9-Aug-07 23:31 
QuestionRe: removing items from row.ItemArray Pin
Talal Sultan9-Aug-07 23:56
Talal Sultan9-Aug-07 23:56 
AnswerRe: removing items from row.ItemArray Pin
Guffa10-Aug-07 1:14
Guffa10-Aug-07 1:14 
GeneralRe: removing items from row.ItemArray Pin
Sean_B9-Aug-07 23:51
Sean_B9-Aug-07 23:51 
AnswerRe: removing items from row.ItemArray Pin
Guffa10-Aug-07 1:26
Guffa10-Aug-07 1:26 
GeneralRe: removing items from row.ItemArray Pin
Guffa9-Aug-07 23:44
Guffa9-Aug-07 23:44 
GeneralRe: removing items from row.ItemArray Pin
Giorgi Dalakishvili10-Aug-07 0:21
mentorGiorgi Dalakishvili10-Aug-07 0:21 
Questionloading com object in appdomain Pin
KrunalC9-Aug-07 22:09
KrunalC9-Aug-07 22:09 
QuestionRe:How to make a transperent window in .net2.0 Pin
RameshwerE9-Aug-07 22:09
RameshwerE9-Aug-07 22:09 
AnswerRe:How to make a transperent window in .net2.0 Pin
KrunalC9-Aug-07 22:13
KrunalC9-Aug-07 22:13 
GeneralRe:How to make a transperent window in .net2.0 Pin
RameshwerE9-Aug-07 22:25
RameshwerE9-Aug-07 22:25 
GeneralRe:How to make a transperent window in .net2.0 Pin
KrunalC9-Aug-07 22:27
KrunalC9-Aug-07 22:27 
AnswerRe:How to make a transperent window in .net2.0 Pin
Martin#9-Aug-07 22:27
Martin#9-Aug-07 22:27 
GeneralRe:How to make a transperent window in .net2.0 Pin
RameshwerE9-Aug-07 22:36
RameshwerE9-Aug-07 22:36 
GeneralRe:How to make a transperent window in .net2.0 Pin
Martin#9-Aug-07 22:41
Martin#9-Aug-07 22:41 
QuestionIs .net the future? Pin
Mri1a9-Aug-07 21:42
Mri1a9-Aug-07 21:42 
AnswerRe: Is .net the future? Pin
Pete O'Hanlon9-Aug-07 22:21
mvePete O'Hanlon9-Aug-07 22:21 
AnswerRe: Is .net the future? Pin
Talal Sultan9-Aug-07 22:31
Talal Sultan9-Aug-07 22:31 
GeneralRe: Is .net the future? Pin
J4amieC9-Aug-07 23:14
J4amieC9-Aug-07 23:14 
AnswerRe: Is .net the future? Pin
mav.northwind10-Aug-07 1:18
mav.northwind10-Aug-07 1:18 
GeneralRe: Is .net the future? Pin
Harkamal Singh12-Aug-07 6:45
Harkamal Singh12-Aug-07 6:45 
QuestionHow to store the retrieved values from a coulmn of a table in an array?? Pin
rameshbhojan9-Aug-07 21:41
rameshbhojan9-Aug-07 21:41 

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.