PC Review


Reply
Thread Tools Rate Thread

DataKeys null only in RowCommand

 
 
rlm
Guest
Posts: n/a
 
      26th Feb 2008
I have a gridview updating every 5 seconds. There are several DataKeys
declared which I access successfully in the RowDataBound event. However, in
the ROwCommand event the count of the DataKeys array is zero, and the
SelectedDataKey is null.

Shouldn't the DataKeys be available in the RowCommand event? Is anyone else
accessing them there? Can anyone think of any thing I might be doing which
could cause them to be unavailable in RowCommand even though they are
available in RowDataBound?

Any other thoughts how else I might get the database RID for the row that a
button was clicked on, even though the id is not displayed?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DetailsView and DataKeys MRW Microsoft ASP .NET 0 14th Nov 2006 06:30 PM
DataList DataKeys cmay Microsoft ASP .NET 2 10th Oct 2006 04:35 AM
Multiple Datakeys in a datagrid =?Utf-8?B?Sm9obiBTY290dA==?= Microsoft Dot NET 0 29th Jul 2005 04:49 PM
datakeys error =?Utf-8?B?TmV2aWxsZVQ=?= Microsoft ASP .NET 2 27th Apr 2005 09:00 AM
BaseDataList.DataKeys Dave Microsoft ASP .NET 2 19th Nov 2004 09:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 AM.