Hi I have the following problem
I have a hierarchical whit a master detail row structure...When i click on Add new row in a Detail row i want get in the parent Row some values that are the primary key ...
But the Master row is always nothing
i try also to do get the parent cell value in this way
but i got a null reference exception!
How can i do this_?
Thx
I have a hierarchical whit a master detail row structure...When i click on Add new row in a Detail row i want get in the parent Row some values that are the primary key ...
I'm trying to do so but does not work
Private Sub radGridView1_DefaultValuesNeeded(ByVal sender As Object, ByVal e As GridViewRowEventArgs) 'here i get the parent row Dim row As GridViewRowInfo = TryCast(e.Row.ParentRow, GridViewRowInfo) If row IsNot Nothing AndAlso row.ParentRow IsNot Nothing Then e.Row.Cells("ID").Value = row.ViewInfo.ParentRow.Cells("Ms_ProgRow").Value End If End Subi try also to do get the parent cell value in this way
e.Row.Cells("ID").Value= e.Row.ParentRow.Cells("Ms_ProgRow").Valuebut i got a null reference exception!
How can i do this_?
Thx