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

Thread: tables

  1. #1
    Join Date
    Feb 2003
    Location
    Israel
    Posts
    102

    tables

    I want to manage data in table's like view, and let the user the ability to change it - table like excel style.
    I think DataGrid is the control i should use, but i'm not sure, and also i don't know how to operate it. looked on it now and didn't see how to make it works. any suggestions?

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    well DataGrid is easiest way to do that. If you are looking for easy solution then you can use ListView and Assign DataSource and bind the database DataSet !!
    well Display member and value should work i suppose.

    For DataGrids therez a bunch of research already done. so if you have problems that can be solved more elegantly and in a concrete way that you expect.

    Paresh
    - Software Architect

  3. #3
    Join Date
    Feb 2003
    Location
    Israel
    Posts
    102
    I want to display information of the form

    Title1 Field1 Field2 ... Field8
    Title2 Field1 Field2 ... Field8
    Title3 Field1 Field2 ... Field8
    Title4 Field1 Field2 ... Field8

    and let the user to change the fields.
    DataGrid is the way?
    If yes, do you know about any tutorial about DataGrid? I'm looking for it now, and finds only tutorials about how to do special things with it, not about its basic use.

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    ok,
    DataGrid can show anything which you like,
    Whether its in format of Database, Dataset, XML , or locally /logically created DataSets and Datatables.

    if you look in MSDN there is a way to assign the datasets and binding its property to datagrids. if you debug i am sure you will find easy. its just that for the first time you will find the code long and hard.

    you will need to use Tablestyles to incorporate some column styles in your datagrid.

    Paresh
    - Software Architect

  5. #5
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    170
    Originally posted by pareshgh
    well DataGrid is easiest way to do that. If you are looking for easy solution then you can use ListView and Assign DataSource and bind the database DataSet !!
    well Display member and value should work i suppose.

    Paresh
    Hi, I can't locate the DateSource property of the ListView. Do you know how to bind a DataSet to a ListView?

    thanks!!!

    Jim
    I am scifi

  6. #6
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    ListView doesn't support datasource,
    use datagrid instead !!

    i would strongly suggest to use datagrid,
    once you make it handy it is very easy to deploy.

    follow the example on step by step creation in datagrid,
    this example can be found on either on MSDN or with your
    frameworksdk directory.

    Paresh
    - Software Architect

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