Do something Like this: you can modify this according to your need
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
ListAttachment.Add(New Attachment With {.FileName = "YOr File Name"})
ListView1.DataSource = ListAttachment
ListView1.DataBind()
End Sub
Private _listAttachments As List(Of Attachment)
Public Property ListAttachment() As List(Of Attachment)
Get
Return _listAttachments
End Get
Set(ByVal value As List(Of Attachment))
_listAttachments = value
End Set
End Property
Public Class Attachment
Private _fileName As String
Public Property FileName() As String
Get
Return _fileName
End Get
Set(ByVal value As String)
_fileName = value
End Set
End Property
End Class