jack niekerk
asked on
RETRIEVING TEXT FROM 1st COLUMN IN DATAGRID EVEN IF CLICKING IN OTHER COLUMN
In a ADO connected Datagrid I use first column as Keyvalue to database,
by saying: KEYVAL= datashow.text, problem comes when user clicks on 2 or 3 or higher column in grid then it returns .text from that column. I always need to know at the event
rowcolchange what is in first column of grid. How to extract from grid ????
by saying: KEYVAL= datashow.text, problem comes when user clicks on 2 or 3 or higher column in grid then it returns .text from that column. I always need to know at the event
rowcolchange what is in first column of grid. How to extract from grid ????
Err, make that:
DataGrid.SelectedItem.Cell s.Item(1). Text
I think it's a base 1 array rather than base zero...
DataGrid.SelectedItem.Cell
I think it's a base 1 array rather than base zero...
ASKER
i am using VB6
in vb6
Dim txt As String = Me.MSDataGrid1.Col(1).Text
~b
Dim txt As String = Me.MSDataGrid1.Col(1).Text
~b
ASKER
did 2 ways to try Dim txt As String = Me.brokersgrid.Col(1).Text gives error
and in 2 lines
Dim txt As String
txt = Me.brokersgrid.Col(1).Text
also error,
brokersgrid is my grid, e.g. txt = brokersgrid.text will give info on choosen columnn
is my syntax wrong for vb6 ?
and in 2 lines
Dim txt As String
txt = Me.brokersgrid.Col(1).Text
also error,
brokersgrid is my grid, e.g. txt = brokersgrid.text will give info on choosen columnn
is my syntax wrong for vb6 ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes !!!!!!!!
thanks
thanks
In asp.net it would be something similar to:
DataGrid.SelectedItem.Cell