datagrid find record code - what's wrong??

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 12
Reputation: Steven_C is an unknown quantity at this point 
Solved Threads: 0
Steven_C Steven_C is offline Offline
Newbie Poster

datagrid find record code - what's wrong??

 
0
  #1
Nov 3rd, 2007
hi all, i am trying to find record in datagrid using a textbox (and/or a button) but it is not working. here is the code

DataSet.Tables(0).Rows.Find(txtName)

nothing happens when I type in textbox or when I press the Search button. can u tell me what wrong with it?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: datagrid find record code - what's wrong??

 
0
  #2
Nov 3rd, 2007
What happens if you replace txtName with txtName.text
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 12
Reputation: Steven_C is an unknown quantity at this point 
Solved Threads: 0
Steven_C Steven_C is offline Offline
Newbie Poster

Re: datagrid find record code - what's wrong??

 
0
  #3
Nov 4th, 2007
oops yeah, i made a mistake in the thread, i tried txtName.text. no luck it does not work
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC