在绑定GridView和DataSource之前,我想在EmptyDataTemplate字段中显示"No Records to Display“。在将GridView与数据源绑定之后,如果数据源返回null,它将在网格视图中显示EmptyDataTemplate字段。但我想在将其与数据源绑定之前进行演示。这怎么可能呢?
这让我非常沮丧大陆国家Specified argument was out of the range of valid values.Parameter name: The DataValueField of ValueField was not found in the Columns collection. 附言:这是我在Page_Load事件中拥有的全部内容
我在书中的示例之后创建了一个远程服务,并在本练习中尝试将其绑定到:/** Called whenunbindService(mBrowserRemoteServiceConnection);}
但是mBrowsserRemoteService是空的(在onClickSendLogin方法中)并返回一个