sql - ASP.NET Error: 'System.Data.DataRowView' does not contain a property with the name 'ID' -
this question exact duplicate of:
i'm getting weird error after completed steps listed in website below previous problem.
'system.data.datarowview' not contain property name 'id'
this error linked gridview after put in datakeynames="id"
previous problem: databinding: 'system.data.datarowview' not contain property name
the error message telling column called 'id' not present in results set returned select query in sqldatasource assigned gridview.
you either need add 'id' column select query (if exists)...
select id, <column name>, ..., <column name> <table> etc
or alternatively assign datakeynames name of primary key column results set returned sqldatasource assigned gridview.
Comments
Post a Comment