CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: using datagrid

  1. #1
    Join Date
    Feb 2012
    Posts
    15

    using datagrid

    hello everyone
    I'm trying to use textgrid
    I'm using that code:
    Code:
     Set rs = New ADODB.Recordset
    
        rs.Fields.Append "LastName", adVarChar, 30
        rs.Fields.Append "FirstName", adVarChar, 15
        
        rs.Open
    
        'bind recordset to Grid
        Set dg1.DataSource = rs
        Set rs = dg1.DataSource
        
        rs.AddNew Array("LastName", "FirstName"), Array(text1.text,text2.text)
    1 How can I change items in specific fields?
    2 how can I change color of selected row?
    4 how can I remove the left fixed column?
    5 how can I add icon/image to specific field?

    I tried to use listview for that but when it lost focus it lost the color in selected rows

  2. #2
    Join Date
    Feb 2012
    Posts
    15

    Re: using datagrid

    ok
    I am using msflexgrig instead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured