Results 1 to 3 of 3

Thread: is it possible to add a custom control to a datagridview column?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    is it possible to add a custom control to a datagridview column?

    hi,

    is it possible to add a custom control to a datagridview column?

    thanks.

    VB Version: Microsoft Visual Studio 2008 Professional Edition
    .NET Version: Microsoft .NET Framework Version 3.5
    OS: Windows XP SP3

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

    Re: is it possible to add a custom control to a datagridview column?

    Yes it is. You can host any control you want in a DataGridView. Generally you will define your own column, cell and editing control classes. MSDN has an example using a DateTimePicker but that's just an example.

    http://msdn.microsoft.com/en-us/libr...80(VS.80).aspx
    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Re: is it possible to add a custom control to a datagridview column?

    i'll take a look at it... thanks.

    VB Version: Microsoft Visual Studio 2008 Professional Edition
    .NET Version: Microsoft .NET Framework Version 3.5
    OS: Windows XP SP3

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