C# Version of MFC CListCtrl

This is a discussion on C# Version of MFC CListCtrl within the C# Programming forums, part of the General Programming Boards category; In a prior MFC application, I used the CListCtrl to add a table to my UI. I used the CListCtrl ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    35

    C# Version of MFC CListCtrl

    In a prior MFC application, I used the CListCtrl to add a table to my UI. I used the CListCtrl because it gave me the ability to programaticly update the table inserting columns, and then setting the test for each row and or column. I could even resize the column width to accommodate longer strings. Now I need to set up a table and specify how many columns in the table, allow the user to input data into rows of each column, and later extract data from each row/column. What C# control should I use, and where can I find a list of operations for this control. The ListControl object in C# is an abstract class and doesn't provide the same functionality as CListCtrl.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Try the DataGridView.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    35
    Thanks, according to the documentation this may be what I am looking for, but where is this defined. Is this not defined in .Net 2003?

    System.Windows.Forms.DataGridView does not exsist on 2003

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    The best way to go is to upgrade to .Net 2.0. If that's not an option, you can use DataGrid.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    35
    the DataGrid doesn't seem to offer the same options as DataGridView, like songsDataGridView.rows.add delete etc...

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    35
    How would I use the datagrid to say add a row or column put specify a title and allow user input into the table

  7. #7
    Registered User
    Join Date
    May 2006
    Posts
    35
    oh can you set the listctrl object to accept user input into rows/columns from the keyboard?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. MFC: Using CListCtrl as a Check List?
    By Edin in forum Windows Programming
    Replies: 1
    Last Post: 01-15-2007, 01:20 PM
  3. CListCtrl and Arbitrary Data :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 01-25-2003, 01:21 AM
  4. CListCtrl List Style :: MFC
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 11-18-2002, 09:37 AM
  5. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 09:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21