If I want to set both gridview.datasource and gridview.datamember, which one I should set first? Is there any standard order about this? Thank you!
I would prefer to set gridview.datasource
first and then only gridview.datamember
because you do not need to set gridview.datamember
property when binding to a data source that contains a single list or table.