Re: dataset from tab separated



Hi,

What you need to do is to create empty DataTable first that will have
required structure. Then you read the string and use Split method of String.
It allows to split delimited data into array. Now you need to add new row to
the dataTable and populate it from array

--
Val Mazur
Microsoft MVP

http://xport.mvps.org



"news.microsoft.com" <v-hshah@xxxxxxxxxxxxx> wrote in message
news:uUZdKx4XFHA.3356@xxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> I want to create a asp.net / winform application, which has a text box.
>
> In the text box, the user will paste data (copied from another source), in
> tab separated format.
>
> Supposedly, all the columns are always in a predetermined order, how can I
> put this into a dataset and bind to it ..
>
> Any input would be appreciated.
>
> Thanks
>
> Hemang
>


.



Relevant Pages

  • Re: problem with split method
    ... each string and I used split method to sort the array. ... If you want to recreate the string from the sorted array, use the array's join method and pass the character you want as parameter: ...
    (microsoft.public.scripting.jscript)
  • Re: Bug in Strings split method???
    ... > the javadoc for the split method on String. ... > returns an array with 1 element, I was expecting an array with no ... The array returned by this method contains each substring of this string ...
    (comp.lang.java.programmer)
  • Re: Bug in Strings split method???
    ... > javadoc for the split method on String. ... > returns an array with 1 element, I was expecting an array with no ... the regex expression is not found in your string, so it cant be split, ...
    (comp.lang.java.programmer)
  • Re: problem with split method
    ... string and I used split method to sort the array. ...
    (microsoft.public.scripting.jscript)
  • Re: Find a String in VB.NET
    ... i gave a split method example too...look in this thread. ... op is trying to acheive...one being a delimited string search returning ... | "steve" schreef in bericht ... |> dim regExp as new regEx ...
    (microsoft.public.dotnet.languages.vb)