Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid paging-- OnItemCommand not respecting page number?

Reply
Thread Tools

DataGrid paging-- OnItemCommand not respecting page number?

 
 
Steve Hershoff
Guest
Posts: n/a
 
      08-09-2006
Hi everyone,

I'm using the paging feature in the DataGrid class for the first time, and
am having some trouble.

I have an asp button column in the DataGrid, and when I click on it my
OnItemCommand function fires just fine-- but for some reason the
DataGridCommandEventArgs parameter always thinks it's on the first page.

Say, for instance, I'm on page 33 of my DataGrid and I click the button
column in one of the records. The DataGridCommandEventArgs parameter, which
I call "e", should a value of 222 in cell[0]. Instead, I get a value of
111, which is the value from the corresponding record on page #1.

What am I doing wrong here? I'm letting the DataGrid handle the gritty
details itself--no custom paging from me-- yet the value of
e.Item.Cells[0].Text comes from page #1 no matter what page I'm on. As you
might guess, I'm a newbie when it comes to DataGrid paging so any advice you
have I'd be grateful for. Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
split string at commas respecting quotes when string not in csv format R. David Murray Python 8 03-27-2009 02:19 PM
Re: split string at commas respecting quotes when string not in csvformat Terry Reedy Python 1 03-26-2009 10:20 PM
DataGrid paging-- OnItemCommand not respecting page number? Steve Hershoff ASP .Net Datagrid Control 0 08-09-2006 09:06 PM
datagrid onitemcommand not firing Sonal ASP .Net Datagrid Control 1 10-30-2004 03:27 PM
datagrid OnItemCommand handler not executing Rick White ASP .Net 1 01-13-2004 05:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57