How to set the datagridview item with addnew

The code I found for setting a particular cell value is as follows -
Private Sub SetCellValue(ByVal myGrid As DataGrid)
Dim myCell As New DataGridCell()
' Use an arbitrary cell.
myCell.RowNumber = 1
myCell.ColumnNumber = 1
' Change the cell's value using the CurrentCell.
myGrid(myCell)= "New Value"
End Sub

Here's my problem. I have a keywordset as master using textboxes and a checkbox. After I add a new keywordset I capture the new ID.

I have two child tables in grids. I want to add a new row, then set the first cell with the ID, the second cell in the add row with the keywordset text, and check the third cell.

The user can add further rows from there.

How do I do this?

dennist

[744 byte] By [dennist] at [2007-12-16]

.NET Development

Site Classified