how to use datagrid in form?

db , vba Bahrain
  • 13 years ago

    I m trying to make an applicaion with vb6.I need to see a datagrid in my form.I need to see entering text in the datagrid that loaded in the form.It has to written in the database when clicking save cmd button.I wanna to know where can i get datagrid and how to use it.

     

    anyone will help me.

    thanking

    best regards

  • 13 years ago
    Have a look at this link

  • 13 years ago

    HI SANKAR,

      ME AS A BEGINER OF A PRG DEVELOPER STUDENT ,VERY MUCH THANKFULL TO U FOR KIND DESCRIBED REPLY.I M MY SELF TRYING TO CREATE A SMALL APPLICATION FOR SELF STUDY.EXPECTING UR KIND VALUABLE HELP FURTHER NEEDS AND DOUBTS.ONCE MORE THANKING U.

    WITH BEST REGARDS.

    HASHIF

    BAHRAIN

  • 13 years ago
    Most Welcome :-)

  • 13 years ago

    Hi Sankar,

    I tried to use the some part of code that u used for datagrid generating.But it s not working propperly.My code s as follow.

    Private Sub Form_Load()
    Dim r As ADOR.Recordset
    Set r = New ADOR.Recordset
    r.Fields.Append "date", adVarChar, 10
    Set DataGrid1.DataSource = r
    End Sub




    Will u pls gide me Y it s not working.

    One more help neede.I need to enter a text value to the datagrid that loded on the form.It s purposly for data that  enterd to a textbox and by button click it must be appened to datagrid coloumn..

    I hop ur best helpfull reply.

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila” - Mitch Ratcliffe