CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    177

    DataGridView Auto Number

    I had the following code :

    Dim row As Integer = 0
    For row = 0 To pdgvDataGridView.RowCount - 1
    pdgvDataGridView.Rows(row).Cells(0).Value = row + 1
    Next

    it's to add auto number into first column of each row. The codes running well, but after the codes completed, the first column of each row remain empty. Is there any settings or codes I miss out?

  2. #2
    Join Date
    Aug 2009
    Location
    NW USA
    Posts
    173

    Re: DataGridView Auto Number

    Works for me. What other code ya got?

  3. #3
    Join Date
    Jun 2012
    Posts
    2

    Smile Re: DataGridView Auto Number

    http://forums.codeguru.com/images/smilies/wave.gif
    Hello... i'm kinda have questions about datagridview....
    i want to know how can i suppress the automatic entering or jump into another or the next row of datagridview while i was not totally complete to fill all the rows...... hope someone can answe or give me a hint in manipulating the datagridview... thanks...may Gad bless you all




  4. #4
    Join Date
    Jun 2012
    Posts
    2

    Re: DataGridView Auto Number

    ...i would like to ask too
    how can i put formulas to the datagridview where i want to input in row1 and row2 a value then the answer will be visible in the row3.....
    can someone answer this..?
    thans
    GOd Bless po

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