Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 802301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:34:46+00:00 2026-05-14T23:34:46+00:00

I have splitted comma separated values in an string array, something like this str[0]

  • 0

I have splitted comma separated values in an string array, something like this

str[0] ="210"
str[1] ="abc.pdf"
str[2] = "211"
str[3] = "xyz.docx"

and so on. Please note 0,2,4,6,8 [even positions] are having number and odd positions are having string.

I am having a class Attachmodel

Public Class AttachmentModel

Private _attachmentID As Integer = 0
Private _attachmentPath As String = ""

''' <summary>
''' Get Set Attachment ID
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>

Public Property AttachmentID() As Integer
    Get
        Return _attachmentID
    End Get
    Set(ByVal value As Integer)
        _attachmentID = value
    End Set
End Property

''' <summary>
''' Get Set Attachment Path
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>

Public Property AttachmentPath() As String
    Get
        Return _attachmentPath
    End Get
    Set(ByVal value As String)
        _attachmentPath = value
    End Set
End Property

End Class

In the above i want to set the values and bind it to the grid, using List

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:34:46+00:00Added an answer on May 14, 2026 at 11:34 pm

    I want to bind CSV string with listbox programmatically

    Private Sub BindAttachmentsToListBox(ByVal collectionData As String)
            Dim arrayString As String()
            Dim separator As String() = {",", "\n", " "}
            Dim attachmentList As New List(Of AttachmentModel)
            arrayString = collectionData.ToString().Split(separator, StringSplitOptions.RemoveEmptyEntries)
    
            For i As Integer = 0 To arrayString.Length - 1
                Dim attachments As New AttachmentModel()
    
                attachments.AttachmentID = Integer.Parse(arrayString(i).ToString().Trim())
                attachments.AttachmentPath = arrayString(i + 1).ToString.Trim()
    
                attachmentList.Add(attachments)
                i = i + 1
            Next
    
            lbAttachments.DataSource = attachmentList
            lbAttachments.DisplayMember = "AttachmentPath"
            lbAttachments.ValueMember = "AttachmentID"
    
    
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 545k
  • Answers 545k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For info on customising the TFS2010 workflow build templates have… May 17, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer Not ideal, but you can call the .submit() for the… May 17, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer Sure. You don't say so, but I am assuming you… May 17, 2026 at 8:58 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

i have a String Array which comes from a splitted String string[] newName= oldName.Split('\\');
I have a table with values in one column which have to be splitted
I have some random string, let's say : s = This string has some
In my app have a window splitted by a QSplitter, and I need to
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have an NSString which is splitted into set of characters. I need to
For example, I have an article should be splitted according to sentence boundary such
I have a map displaying multiple annotations. I'd like to mimic the behavior of
I have this: <Grid.ColumnDefinitions> <ColumnDefinition Width=50* /> <ColumnDefinition Width=5 /> <ColumnDefinition Width=50* /> </Grid.ColumnDefinitions>
I have an MFC sdi app that uses a splitter window to contain a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.