Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

how to get id of selected row or clicked cell's row in datagrid in vb6.0?

Thanks
Posted

1 solution

Hi,

VB
'First to get the selected row : 

Dim row As GridViewRow = GridView1.SelectedRow 'works almost every where

'Next to select a Cell value :

lbl_Id.Text = row.Cells(1).Text

'1 is the number of the column 
 
Share this answer
 
Comments
kk2014 21-Feb-14 4:44am    
Hi Ziee-M,
I am talking about vb6.0.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900