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

Thread: Which grid?

  1. #1
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Which grid?

    Hello.
    I want to write a program that will have a grid like Listview but I want the user to type in the boxes in a way similar to Excel. Also, I want some cells to limit the user to a list, like a combo box.
    I prefer ListView but I see that there are others like DataGrid, DBGrid, MsFlexGrid...
    I tried with all of them but I can't really type in the cells.
    Visit www.greekroms.net

    Greek translations of roms

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Which grid?

    Up to how many rows and columns are you thinking? Is this a large scale or small scale project. If it is small scale, there are a ton of ways around this.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Re: Which grid?

    The user will enter some records, I don't think more than 40... The columns could be around 10. I also want some to be non-editable by the user.
    At the end, the program will connect to a server and update a database.
    Visit www.greekroms.net

    Greek translations of roms

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Which grid?

    Quote Originally Posted by Vag
    I also want some to be non-editable by the user.
    At the end, the program will connect to a server and update a database.
    First, since you want to be the one in control of the inputs, and second, because it will be uploading, I would suggest that you manually put in combo boxes, text boxes, and list boxes yourself.

    This way, you can regulate all the control names and keep away from an overly large amount of variables.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Apr 2002
    Location
    Greece
    Posts
    42

    Re: Which grid?

    I was thinking of that but I was hoping to take advantage of the Listview functions. Thank you anyway, I will probably use text boxes and combo boxes.
    Visit www.greekroms.net

    Greek translations of roms

  6. #6
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: Which grid?

    Quote Originally Posted by Vag
    I was thinking of that but I was hoping to take advantage of the Listview functions. Thank you anyway, I will probably use text boxes and combo boxes.
    Maybe you want to have a look on this Its an ActiveX with I think what you wanted to have. Its full Basic source so maybe you can get it to what you wanted to have it. I did it as one of my first exercises learning to program ActiveX, so its for free.


    Jonny Poet
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

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