al4629740
asked on
Check if a column name exists in DataGrid
Weird question:
When I pull up a recordset within my datagrid, using vb6, I would like to check to see if the first column is named 'Test'
Initially I pull up the recordset like this
Using DataGrid1 = rec I pull up the records into a DataGrid. How can I test to see if the first column is named 'Test'
How can I accomplish this?
When I pull up a recordset within my datagrid, using vb6, I would like to check to see if the first column is named 'Test'
Initially I pull up the recordset like this
select * from Table1
Using DataGrid1 = rec I pull up the records into a DataGrid. How can I test to see if the first column is named 'Test'
How can I accomplish this?
If DataGrid1.Columns(0).Capti on = "Test" Then...
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Did any of the above help you?
ASKER
Yes I just tried it. Thanks!