Datagrid

Thread Solved

Join Date: Mar 2008
Posts: 116
Reputation: november_pooh is an unknown quantity at this point 
Solved Threads: 0
november_pooh november_pooh is offline Offline
Junior Poster

Datagrid

 
0
  #1
Jun 9th, 2008
Get Specific data from datagrid.
i mean when i select row on datagrid, program will return value in that row.

Any Help will appreciated. thx
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 116
Reputation: november_pooh is an unknown quantity at this point 
Solved Threads: 0
november_pooh november_pooh is offline Offline
Junior Poster

Re: Datagrid

 
0
  #2
Jun 9th, 2008
Oh...
i use Vb.net 2003 n MsAccess
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,650
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 249
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Datagrid

 
1
  #3
Jun 9th, 2008
you mean get data on each row?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,650
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 249
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Datagrid

 
1
  #4
Jun 9th, 2008
Well, try this code :
add this code in datagrid click event.
  1. Dim i As Integer
  2. i = dgAuthor.CurrentRowIndex()
  3. MsgBox(Trim(dgAuthor.Item(i, 0)) & " - " & Trim(dgAuthor.Item(i, 1)) & " - " & Trim(dgAuthor.Item(i, 2)))

Modified as u needed.
Last edited by Jx_Man; Jun 9th, 2008 at 1:30 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 116
Reputation: november_pooh is an unknown quantity at this point 
Solved Threads: 0
november_pooh november_pooh is offline Offline
Junior Poster

Re: Datagrid

 
0
  #5
Jun 9th, 2008
yes. that what i needed.
Thank you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,650
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 249
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Datagrid

 
0
  #6
Jun 9th, 2008
you're welcome
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 611 | Replies: 5
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC