Hi,
I have added an ultaoptionset to the editor component on my ultra grid
Me.tblAssetReg.DisplayLayout.Bands(0).Columns(4).EditorComponent = rbappdec
I want to set the value of the option set based on information in another column, normally I would use on initialize row but I can't work out how to set the value
Private Sub tblAssetReg_InitializeRow(sender As Object, e As InitializeRowEventArgs) Handles tblAssetReg.InitializeRow
If e.Row.Cells("Status").Value.ToString = "D" Then
e.Row.Cells("Dec/App") ("set the option index to 1" etc?)
End If
can anyone help please
hope this makes sense, I'm not too good at explaining things
Hi David,
Thank you for coming back to me. my column "Dec/APP" has radio buttons approve and decline, the user has the option to change the selection so I need to set the radio buttons based on the last saved information. So if the value in status is D then I need my second option button selected, if it's A I need my first option selected.
What you are suggesting is what I want to do, I don't know how to set the option button to the correct one.
Why can you not just use
e.Row.Cells("Dec/App").Value = yourValue