Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Help loading a DataGrid?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Terry Olsen  
View profile  
 More options Mar 26 2004, 12:31 am
Newsgroups: microsoft.public.dotnet.languages.vb
From: "Terry Olsen" <tolse...@hotmail.com>
Date: Thu, 25 Mar 2004 22:30:18 -0700
Local: Fri, Mar 26 2004 12:30 am
Subject: Help loading a DataGrid?
I'm working on converting a VB6 App with a MSFlexGrid to .NET.

I need to load a DataGrid from a 3-field CSV file.  Actually, several
3-field CSV files, but I want each file to be collapsable into a header bar
with the name of the CSV file.

Is this possible?  Is there example code available?  Or any hints?

Thanks!
Terry


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cor  
View profile  
 More options Mar 26 2004, 3:05 am
Newsgroups: microsoft.public.dotnet.languages.vb
From: "Cor" <n...@non.com>
Date: Fri, 26 Mar 2004 09:01:43 +0100
Local: Fri, Mar 26 2004 3:01 am
Subject: Re: Help loading a DataGrid?
Hi Terry,

Do you only want to show it or also want to update it?
(Because I can give you a simple method, but that makes it in my opinion
more difficult when you want to do updates).

Cor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayaz Ahmed  
View profile  
 More options Mar 26 2004, 4:39 am
Newsgroups: microsoft.public.dotnet.languages.vb
From: Ayaz Ahmed <a...@csquareonline.com>
Date: Fri, 26 Mar 2004 01:37:14 -0800
Local: Fri, Mar 26 2004 4:37 am
Subject: Re: Help loading a DataGrid?
Hello,

which type of csv record you want , because in this case update and
display both are possible , what u want

Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile      +92 300 2280950
Office      +92 21 455 2414

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Terry Olsen  
View profile  
 More options Mar 26 2004, 8:48 am
Newsgroups: microsoft.public.dotnet.languages.vb
From: "Terry Olsen" <tolse...@hotmail.com>
Date: Fri, 26 Mar 2004 06:47:33 -0700
Local: Fri, Mar 26 2004 8:47 am
Subject: Re: Help loading a DataGrid?
I only want to display the information.  I also will want to be able to
click on a particular row and respond to the click...

"Cor" <n...@non.com> wrote in message

news:OOdQGkwEEHA.2408@TK2MSFTNGP10.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cor  
View profile  
 More options Mar 26 2004, 9:11 am
Newsgroups: microsoft.public.dotnet.languages.vb
From: "Cor" <n...@non.com>
Date: Fri, 26 Mar 2004 15:05:48 +0100
Local: Fri, Mar 26 2004 9:05 am
Subject: Re: Help loading a DataGrid?
Hi Terry,

I think a complete sample but partialy typed in here, so try it. Keep in
mind that your CSV file has to be in your  global setting style from the
computer you use.

I hope this helps?

Cor

\\\\
Private Sub Form1_Load(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles MyBase.Load
        Dim file As String = "Test2.txt"
        Dim path As String = "C:\Test1\"
        Dim ds As New DataSet
        Try
            Dim f As System.IO.File
           If f.Exists(path & file) Then
              Dim ConStr As String = _
              "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
              path & ";Extended Properties=""Text;HDR=No;FMT=Delimited\"""
              Dim conn As New OleDb.OleDbConnection(ConStr)
              Dim da As New OleDb.OleDbDataAdapter("Select * from " & _
              file, conn)
              da.Fill(ds, "TextFile")
          End If
     Catch ex As Exception
            MessageBox.Show(ex.ToString)
     End Try
   dim dv as new dataview(ds.Tables(0)
   dv.AllowNew = False ' this is to prevent the last row in the grid
   DataGrid1.DataSource = dv
  DataGrid1.ReadOnly = True
End Sub
///


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google