Multiple primary keys with a datagrid?

From: Dave (Dave_at_discussions.microsoft.com)
Date: 12/13/04


Date: Mon, 13 Dec 2004 14:07:05 -0800

Hi,

Maybe I'm missing something with the DataKeyField attribute of a datagrid
but it seems that it's somewhat limiting since this only allows you to
specify one field as the key.

I have a table that has two keys and it seems you need this value to find
the corresponding record in the DataSet in order to update the data from the
Datagrid.

Thanks for any ideas on this. Dave.



Relevant Pages

  • RE: How to Fix Columns width?
    ... you do databinding paging for your DataGrid ... this is because some the Text in the DataGrid table cell has ... to do with DataGrid server control. ... you may specify a column width value that is ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: how to set datagrid column width ?
    ... For DataGrid control, it will render as html element at client ... you specify all the items' width to ... So it will render a "width" attribute for each td(Except the first row, ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: Databind DataGrid
    ... DataKeyField property is used to specify the primary key field for the data ... I am still unable to populate the datagrid with relevant data ... based upon the selections made by the user. ...
    (microsoft.public.sharepoint.portalserver.development)
  • RE: vb6 - Another DataGrid question
    ... I think we can specify the row and then the column to get the value in the ... But the Row property of datagrid means the current visible rows. ... Private Sub Command1_Click ...
    (microsoft.public.vb.controls)
  • Re: Umstieg von ACCESS auf SQL Server 2000
    ... Die Zuordnung des Spaltennamen an DataKeyField passiert im DataBinding Event des DataGrid. ... Dingen solltest du nicht für alles eine neue Connection aufbauen. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)