When specified causes each row to be rendered with an id expression that includes the evaluated expression. This can be useful for client side script code to pass state information to the server for data that needs updating.

The id is generated as follows:


For example, assuming a table has an PK field you might have:

<ww:wwWebDataGrid ID="gdDeveloperList" runat="server" DataKeyField="Pk">

Which renders each row as:

<tr id="gdDeveloperList_474"  valign="top" >

You can then use client code from a cell to determine the value via JavaScript:

<ww:wwWebDataGridColumn ID="wwWebDataGridColumn1" runat="server" 
	Expression="Href([BasicDataBinding.wcsx?id=] + TRANS(pk),Company,[ target='_ShowDev' ] )"
	<<b>>onclick="alert( 'Row Pk: ' + this.parentNode.id.split('_' )[1]);"<</b>>

See also:

Class wwWebDataGrid

© West Wind Technologies, 1996-2024 • Updated: 03/02/2008
Comment or report problem with topic