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
If I have a table "login",its primary keys are column "Id" and column "Name",How can I bind the table "login" to webgrid( it must Use add,update,delete by grid's way ).How ever the grid's datakeyfield can not to fill with "Id, Name".Please see the picture below!
what shoud I do?Anyone can Help me?
In order to support multiple-key field scenario you don’t need to set the DataKeyField property in the WebGrid table. A sample, HierarchicalGrid.aspx, in WebGridSamples project shows that the OrderDetails table has multiple-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">
This should helps.
Hello,
It should be no problem when have 2 primary keys in your table. When bind with 2 primary keys/composite keys, WebGrid would automatically detect it. You would not need to specify DataKeyField properties.Please see my attached sample. It should work fine. For Add,Update and Delete scenario, you should use Optimistic Concurency in your SQLDataSource.
Regards,Handy
I am sorry ,I can not use your database.Could you please give a sql2000(or sql2005) database.Please see the picture!
My sql is:sql2005
Unfortunately, I could not downgrade sql in here. You can try to create a simple dummy database such as the structure and run it. It does not cost big effort since it is only a simple table.
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