百度空间 | 百度首页 
               
 
查看文章
 
Selecting a record from a Datagrid
2008-03-22 21:33

The only good way is to keep paging through your data, and check every page for the value you are looking for.

To speed things up a little, build this capability into your paging system, so that when it is searching for a particular record, it doesnt pull back the entire field set, but only the fields you are searching on (e.g. the id field). Then once you have found which page the data is in, you can re-run the query to get the entire result set for that page.


Tigran.Hayrapetyan Richard Judson todd schilling instegator Kileran Linak nate.sammons Clarke Scott Philosophil St Robel Cof139 anina Pär Hedberg CelsoJP Adam Rogas SydneyGentleman Daniel Miller Akwest serimc MitkoB mattyo markybark Nikolaus Brennig JohnEwing Tom ODonnell synthkid Chrisww2 Flaxen gmcnickle Stephane GOUDEAU toecutter t341 Franji REM7600 Pelle Alpesh555 Karp2005 MikeeSiow George Hughen Tech_Exceptional kulykr limssd John Gossman Justinsfddsfsfd Marsenne AlexanderP Redking jcseth jimcason Heather Grantham koknc DaveSmith Ken Smith Blaze111111 Bellam_Chandru Vamsee Krishna G Lee J. Weingart Philip Hutchinson Yara184108 Jon Vincent Steve - new to VPF9 DevOrDie HiTech2k AvanadeBill Kronuz Fatt goku_simon PoloDude Manivenkit Ger Teunis Sydonn Absolute Beginner Compound_G cr4sh3d.r00t JWBrouillette Arulvel cobra99sc Jason Li PoulErik yza suklan Jeff Owens XGamerX Patrick Oliveros Shawn Levendusky etiennemartin JDevitt Evan Winslow IsabellaTsoglin NatashaKarlsson aydinserkan ABOH

Hi all

Have this problem I have been working on for a while now and cant seem to find a solution. I am sure its easy to solve. I have a datagrid bound to a dataset bringing back a list of products in our database. The Datagrid has been setup with paging to display one product at a time on the page. Sometimes I may need to jump straight to another record in the datagrid (say Product 5 out of 100). I am passing the product code to the page which renders the datagrid. How can I take this product number and jump straight to that product in the datagrid


类别:默认分类 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu