Add new Row to DataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lenniekuah
    New Member
    • Oct 2006
    • 126

    #1

    Add new Row to DataGridView

    Hi Friends
    Greetings.

    I need your Help. Please Help me.

    I am having problem trying to add new row onto UnBinding DataSource DataGridView and then to retrieve the RowIndex of the new added row.

    I just don't know how to write the coding. Please help me.

    Not Working Coding:
    this.dataGridVi ew1.Rows.Add();
    DGBRow = this.DataGridVi ew1.RowIndex;


    Thank You
    Have a Good Day.
    Cheers,
    Lennie
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Originally posted by lenniekuah
    Hi Friends
    Greetings.

    I need your Help. Please Help me.

    I am having problem trying to add new row onto UnBinding DataSource DataGridView and then to retrieve the RowIndex of the new added row.

    I just don't know how to write the coding. Please help me.

    Not Working Coding:
    this.dataGridVi ew1.Rows.Add();
    DGBRow = this.DataGridVi ew1.RowIndex;


    Thank You
    Have a Good Day.
    Cheers,
    Lennie
    Show us your code

    Comment

    • lenniekuah
      New Member
      • Oct 2006
      • 126

      #3
      I don't have any coding about that and that's the reason why I posted my problem here for help.

      Comment

      Working...