sql - ASP.NET Error: 'System.Data.DataRowView' does not contain a property with the name 'ID' -


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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -