shijey Posted May 2, 2004 Posted May 2, 2004 I noticed there is a DataKeyField property in DataGrid when you are building ASP .Net application. How come in Desktop Application, you cannot have DataKeyField option in DataGrid? If there is no DataKeyField property, so how do you store your primary key in DataGrid? And how to retrieve the value back? Thx Quote
Moderators Robby Posted May 2, 2004 Moderators Posted May 2, 2004 You can use the PrimaryKey of your DataTable. Reason is probably that the web version cannot really bind to its source as a desktop grid. Quote Visit...Bassic Software
shijey Posted May 2, 2004 Author Posted May 2, 2004 (edited) How about DataSet1.Tables(0).PrimaryKey ? Can you use that? If not, could you tell me how to do it in code-behind? And how to retrieve back the primary key value? Thx Edited May 2, 2004 by shijey Quote
Moderators Robby Posted May 3, 2004 Moderators Posted May 3, 2004 Yup......... Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.