iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I want to work in the webgrid a table with a composite primary key (id_user,id_role) and we only can define a key for the webgrid, what can i do?
what you mean with"specify a composite primary key for the datatable with those two columns" ????
Just quoting from my response in Multiple Datakey Fields thread
Inorder to support multiple key field scenario you don't need toset the DataKeyField property in the WebGrid table. We already have a sample of this scenario in HierarchicalGrid.aspx. The OrderDetails has multiply key, OrderID and ProductID, so in the OrderDetails WebGrid definition no DataKeyField property is assigned <ISWebGrid:WebGridTable Caption="Order Details" DataMember="Order Details"> On the other hand, the Order table which has the primary key OrderID will have to be assigned the DataKeyField property<ISWebGrid:WebGridTable Caption="Orders" DataKeyField="OrderID" DataMember="Orders">
Inorder to support multiple key field scenario you don't need toset the DataKeyField property in the WebGrid table. We already have a sample of this scenario in HierarchicalGrid.aspx. The OrderDetails has multiply key, OrderID and ProductID, so in the OrderDetails WebGrid definition no DataKeyField property is assigned
<ISWebGrid:WebGridTable Caption="Order Details" DataMember="Order Details">
On the other hand, the Order table which has the primary key OrderID will have to be assigned the DataKeyField property
<ISWebGrid:WebGridTable Caption="Orders" DataKeyField="OrderID" DataMember="Orders">
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname