Skip to content Skip to sidebar Skip to footer

C# Visual Studio: How Do I Update A Db From Edit With Datagridview Using Linq?

I have a form WinForms form window with a DataGridView. It pulls data from a SQL Server Express database using Linq and displays it in the DataGridView columns properly. I have it

Solution 1:

You could try with reflection:

var changedColumn = typeof(image).GetProperty(columnName);
changedColumn.SetValue(site,change);

Post a Comment for "C# Visual Studio: How Do I Update A Db From Edit With Datagridview Using Linq?"