ADD ROW to a Datagrid ?

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

I have a VB.NET program that read a table form a Database to a Datagrind, is
works fine, when I want to add a record a just type in the cell and I get
the * so it is in a edit mode or add mode, now my problem is that I want to
be able as soon I type a new value to add a new row, I have some code in the
"CurrentCellChanged" so I want to be able to get a value form the previous
row without the user typing anithin any ideas how I can do this ?

So how do I add a row in code with out typing in the grid ?

Thanks
Carlos
 
Best way is to bind this to a Dataset or Table, you can programitically add
new rows to the table with the

Dim nr as DataRow = Table.NewRow()
'
Add stuff to row

Table.rows.add( nr )
 
Back
Top