This question is locked. New answers and comments are not allowed.
I have a requirement to call a WCF Service and ping an IP Address which is equal to the current cell.value that is being loaded. The call to the service is below,
The Ping return value (True or False) is evaluated in a seperate sub routine (Ping Completed Routine). However I need to color the cell background red or white depending on the service call result (True of False). How can I do this if I have to leave the cell loaded routine in order to evaluate the return value of the service call?
Proble: Once I leave the cell loaded event I lose my ability to reference the current cell that was just loaded and this prevents me from painting the cell background.
Please help.
Private Sub CheckListItemssDataGrid_CellLoaded(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridView.CellEventArgs) Handles CheckListItemssDataGrid.CellLoaded If TypeOf e.Cell Is GridViewCell Then Dim Row As GridViewRow = e.Cell.ParentOfType(Of GridViewRow)() Dim Hostname = TryCast(Row.Cells(0), Telerik.Windows.Controls.GridView.GridViewCell) HostnameValue = Hostname.Value.ToString
client.ping(HostnameValue)
The Ping return value (True or False) is evaluated in a seperate sub routine (Ping Completed Routine). However I need to color the cell background red or white depending on the service call result (True of False). How can I do this if I have to leave the cell loaded routine in order to evaluate the return value of the service call?
Proble: Once I leave the cell loaded event I lose my ability to reference the current cell that was just loaded and this prevents me from painting the cell background.
Please help.
