使用MS SQL表对gridview进行分组?

时间:2022-08-12 18:04:21

How do I group my items from a table in MS SQL ?

如何从MS SQL中的表中对项目进行分组?

I had been looking on this guide here there is some issues with

我一直在看这个指南这里有一些问题

 DataManager.RetrieveProductsbySubCat().Tables[0].DefaultView

The name 'DataManager' does not exist in the current context

“DataManager”名称在当前上下文中不存在

and

 string connString =  ConfigurationManager.AppSettings["Sql"];

The name 'ConfigurationManager' does not exist in the current context

“ConfigurationManager”名称在当前上下文中不存在

1 个解决方案

#1


0  

The name 'ConfigurationManager' does not exist in the current context

“ConfigurationManager”名称在当前上下文中不存在

You should add using System.Configuration;

您应该使用System.Configuration添加;

DataManager should be in Microsoft.CommerceServer.Marketing, so add using for that one as well.

DataManager应该在Microsoft.CommerceServer.Marketing中,因此也要添加到那个。

#1


0  

The name 'ConfigurationManager' does not exist in the current context

“ConfigurationManager”名称在当前上下文中不存在

You should add using System.Configuration;

您应该使用System.Configuration添加;

DataManager should be in Microsoft.CommerceServer.Marketing, so add using for that one as well.

DataManager应该在Microsoft.CommerceServer.Marketing中,因此也要添加到那个。