Hello, I'm currently using SfDataGrid to display data from multiple tables. The problem is that in some I need editing to be allowed, but even though it is indeed allowed when I run the app and click on the cells nothing happens, it is read only.
Because sfdatapager does not accept datatable, I'm converting it to a ienumerable list as the component requires, and the data displays. Heres some code
// This is where the source is loaded, editing is allowed by default, nothing is changed
var data = ListConverter.DTListConverter(table, TableName);
sfDataPager.DataSource = data;
sfDataPager.PageSize = 100;
tableGrid.DataSource = sfDataPager.PagedSource;
//This is the converter
data = table.AsEnumerable().Select(row =>
new
{
UniqueId = row["UniqueId"].ToString(),
postalCode= row["postalCode"].ToString(),
countryCode= row["countryCode"].ToString(),
stateCode= row["stateCode"].ToString(),
description= row["description"].ToString(),
suc= row["suc"].ToString(),
region= row["region"].ToString(),
frequency= row["frequency"].ToString(),
});
As I mentioned before, the data is displaying correctly in the grid. The only problem is that I cant trigger the edit. Is there a way to solve this or a better way to convert