Edit button not available for query that does a Select
Hello, I have LinqPad Premium, and if I do a query e.g.
Is it possible to edit a grid with only the selected columns in it?
Thanks,
David
Jobs
, then the Edit button appears and I can edit in the data grid. However, if I change the query so that only certain columns come back (because all columns cannot fit on my screen, making editing tedious), e.g. Jobs.Select(j => j.VendorName)
, then the Edit button does not appear.Is it possible to edit a grid with only the selected columns in it?
Thanks,
David
Comments
Even if you included the primary key, other metadata is lost in the anonymous type, such as the original table name and column mappings.
The only way I can think right now that LINQPad could support this is to provide an option on the grid itself, e.g., on the context menu, "Choose columns to display". Or another Dump overload that accepts a list of columns.