Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted (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 by shijey

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...