This is a migrated thread and some comments may be shown as answers.

Set Unbounded colums value based on anther colums value

1 Answer 7 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 21 Nov 2013, 02:07 AM

 I have a radgridview that has a unbounded column that I would like to set the value based on another column's value.
Ex. If column 1 is true set column 2 to "T"

I have  this code so far

Private Sub RadGridView_RowLoaded(sender As Object, e As RowLoadedEventArgs) Handles RadGridView.RowLoaded

Dim currentTrans As Trans

If TypeOf e.Row Is GridViewRow AndAlso Not (TypeOf e.Row Is GridViewNewRow) Then

Dim Trans As Trans = TryCast(e.DataElement, Trans)

If Trans.Transmit = True Then

 ????????????????????

 

 

End If

 

End If


I can go thru each row and check the value of column 1 but I cannot find how to set the value of column 2
Thank you

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Nov 2013, 02:56 PM
Hello,

I would suggest you to directly work with the bound data item. It is the DataContext of the row.
You can access it through e.Row.Item and additionally assign any of its properties.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or