Cor,
Thank you for the suggestion. Unfortunately I cannot convert to Visual
Studio 2005 and Ver 2.0 at this time. I am currently stuck in VS2003 ver
1.1, so I'm not aware how to make the Dataview help me at this time.
What I have tried unsuccessfully so far is with an error:
System.NullRefe renceException: Object reference not set to an instance of an
object
Line 104: Dim aNewRow As DataRow =
DsMain.Tables(" ToImport").NewR ow
'DocList is a Datagrid containing one column of Data seperated by a period.
Dim DsMain As New DataSet
DsMain.Tables.A dd("ToImport")
DsMain.Tables(" ToImport").Colu mns.Add("Col1")
DsMain.Tables(" ToImport").Colu mns.Add("Col2")
DsMain.Tables(" ToImport").Colu mns.Add("Col3")
DsMain.Tables(" ToImport").Colu mns.Add("Col4")
DsMain.Tables(" ToImport").Colu mns.Add("Col5")
DsMain.Tables(" ToImport").Colu mns.Add("Col6")
DsMain.Tables(" ToImport").Colu mns.Add("Col7")
DsMain.Tables(" ToImport").Colu mns.Add("Col8")
DsMain.Tables(" ToImport").Colu mns.Add("Col9")
DsMain.Tables(" ToImport").Colu mns.Add("Col10" )
DsMain.Tables(" ToImport").Colu mns.Add("Col11" )
Dim dt As DataTable
Dim dr As DataRow
Dim txt As String
Dim token As String
Dim DocListGridItem As DataGridItem
Dim tempint As Integer
For Each DocListGridItem In DocList.Items
Dim aNewRow As DataRow = DsMain.Tables(" ToImport").NewR ow
tempint = 0
aNewRow.Item(te mpint) =
GetToken(DocLis tGridItem.Cells (0).Text(), ".") & vbCrLf
Do
If tempint = 10 Then
tempint = 0
DsMain.Tables(" ToImport").Rows .Add(aNewRow)
Else
tempint = tempint + 1
End If
token = GetToken("", ".")
If token = "" Then Exit Do
txt = txt & token & vbCrLf
' create new row in the Main DataSet
aNewRow.Item(te mpint) = token
Loop
Next
' assigning the dataset object into the datagrid to accept the csv
data broken down into multiple columns
DataGrid1.DataS ource = DsMain
DataGrid1.DataB ind()
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:u7******** ******@TK2MSFTN GP10.phx.gbl...
Rob,
In my opinion is than to set an extra boolean column in your datatable
You can than use this column in the second dataview as a filter that shows
than the selected results in another datagrid/datagridview.
I made for you a sample on our website, can you try that?
http://www.vb-tips.com/default.aspx?...1-ac8b53818af6
I hope this helps,
Cor