Hello, I would like to know how I can get the value of a particular row / column in RadGrdiView of Wpf
like a telerik web gridview (findcontrol)
Actually I can get the value in a DataGrid wpf, that is my function
Private Function GetCellValue(ByRef dataGrid As DataGrid, ByVal row As Integer, ByVal column As Integer) As String
Dim temprow As DataGridRow
Dim rowview As DataRowView
Dim cellValue As String
GetCellValue = ""
Try
temprow = dataGrid.ItemContainerGenerator.ContainerFromIndex(row)
rowview = temprow.Item
cellValue = rowview.Item(column).ToString
Catch ex As Exception
cellValue = ""
End Try
Return cellValue
End Function
But when I do the same with telerik, I cant, that give the next error
Unable to cast object of type 'Telerik.Windows.Controls.GridView.GridViewRow' to type 'System.Windows.Controls.DataGridRow'.
if you can give me a solution, will be grateful
like a telerik web gridview (findcontrol)
Actually I can get the value in a DataGrid wpf, that is my function
Private Function GetCellValue(ByRef dataGrid As DataGrid, ByVal row As Integer, ByVal column As Integer) As String
Dim temprow As DataGridRow
Dim rowview As DataRowView
Dim cellValue As String
GetCellValue = ""
Try
temprow = dataGrid.ItemContainerGenerator.ContainerFromIndex(row)
rowview = temprow.Item
cellValue = rowview.Item(column).ToString
Catch ex As Exception
cellValue = ""
End Try
Return cellValue
End Function
But when I do the same with telerik, I cant, that give the next error
Unable to cast object of type 'Telerik.Windows.Controls.GridView.GridViewRow' to type 'System.Windows.Controls.DataGridRow'.
if you can give me a solution, will be grateful