.net 4.6 and webGrid

3 replies. Last post: December 15, 2016 9:04 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
John BoninMember

Using the latest version of webGrid.

I have a page which uses a grid and has code behind to get some values from the selected row:

Dim keyValue As String = WebGrid4.SelectedRowKeyValue
x = keyValue
name = WebGrid4.RootTable.GetUngrouppedRows().GetRowByKeyValue(keyValue).Cells.GetNamedItem("Name").Text

When running it using ASP .NET Framework 4.0 all is fine and the keyValue returned is the value that I am expecting, so no problem.  But if I go to Framework 4.6 and change the <httpRuntime tag in web.config to use the targetFramework=4.6, the SelectedRowKey value (listed above) returns a null value. Removing the targetFramework=46 from <httpRuntime gets the proper value for keyValue.

Any ideas?

thanks

Any help would be appreciated.

john

All times are GMT -5. The time now is 12:36 AM.
Previous Next