CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    151

    Using a default value in a cell in the datagridview

    I have a datagridview in which the user can add freely new rows.
    But in the row there is one hidden cel which holds the ID of an installation.
    That cell should automatically have the ID filled in and the user shouldn't have to worry about it.
    But how do I automatically fill in the ID in that cell when the user adds a new row?


    edit : solved my problem thx to this link :

    http://forums.microsoft.com/MSDN/Sho...52467&SiteID=1


    I hope it will help some1 else with their problem with the datagridview.
    Last edited by da_cobra; November 24th, 2007 at 05:05 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: Using a default value in a cell in the datagridview

    Checkout DataGridView UserAddedRow event.

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