Results 1 to 2 of 2

Thread: DataGridView Custom Column Panel/Container?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    1

    Question DataGridView Custom Column Panel/Container?

    I was wanting to use the datagridview for a table, but the built in columns do not help. I am wanting to create a column/cell type of panels, or some other container. The reason for this is so that I can house different & multiple elements in one cell. I can't seem to create a custom column like this. I don't know if I am doing something wrong or if panels is not a valid type for a cell/column. Please help if you have any ideas. Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: DataGridView Custom Column Panel/Container?

    Each cell in a grid is supposed to contain a single value. I could be wrong but I very much doubt that you can do what you want. You should create a column for each of the elements rather than placing multiple elements in one column. You may like to check out the DataRepeater in the WFC library in my signature. Maybe that would be more suitable for your purposes. It was created for .NET 1.1 so I'm not sure it will work in 2.0, but some of those comtrols do work so you could give it a try. There is also a 2.0 version on the way, although I'm not sure when it will be available.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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