Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: DataKeyField question


Message #1 by anguyen@f... on Wed, 6 Mar 2002 17:37:25
Hello! all the expert out there... 


I have a datagrid as follow 

	<asp:DataGrid id="dg" 
		DataKeyField="Empl_code"
		AutoGenerateColumns="false"
		AlternatingItemStyle-BackColor="#EFEFEF"
		OnEditCommand="dg_Edit"
		OnCancelCommand="dg_Cancel"
		OnUpdateCommand="dg_Update"
 		OnDeleteCommand="dg_Delete"
		OnItemCreated="dg_ItemCreated"
		OnItemCommand="dg_ItemCommand"
		width="700"
           runat="server">


the datakeyfield is of single field, my queston is how can I represent 
datakeyfield with a key of mutiple fields  let say (empl_code, dept_code)? 
or is it posible to do this?


Thanks in advance for your help.

  Return to Index