Re: Displaying Select columns(windows forms app)
- From: "Phuff" <pc.huff@xxxxxxxxx>
- Date: 29 Sep 2005 09:24:09 -0700
Okay, I figured out how to filter out columns. I can't use ADO to do
it as it doesn't support such procedures with columns. What I do is
grab each value out of my dataset (of course skipping the ones I don't
want) and fill a 2-dimensional array. For anyone who's interested here
is the code.
Dim Ccount As Integer = dset1.Tables(0).Columns.Count
Dim Rcount As Integer = dset1.Tables(0).Rows.Count
'this is the number of columns I appened to end; its the
same every time
Const addr As Integer = 6
Dim notneed As Integer = Ccount - addr
Dim darray(Rcount, addr) As String
For i As Integer = 0 To 5
For x As Integer = 0 To (Rcount - 1)
For j As Integer = (notneed + 1) To (Ccount - 1)
darray(x, i) =
dset1.Tables(0).Rows.Item(x).Item(j)
Next
Next
Next
.
- References:
- Displaying Select columns(windows forms app)
- From: Phuff
- Re: Displaying Select columns(windows forms app)
- From: rviray
- Re: Displaying Select columns(windows forms app)
- From: Phuff
- Displaying Select columns(windows forms app)
- Prev by Date: Re: update call not working
- Next by Date: Re: Cint(null)
- Previous by thread: Re: Displaying Select columns(windows forms app)
- Next by thread: can a menu on a base form be inherited and shown on another form?
- Index(es):
Relevant Pages
|