For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2005 > DataGrid column









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DataGrid column
Rick

2005-04-29, 8:55 pm

Is there a way when you click on a cell of a datagrid that you can tell
which column that cell is in?

Thanks in advance for any help you can give!!!


Veign

2005-04-30, 3:55 am

Try the Col property

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"Rick" <rick@di-wave.com> wrote in message
news:uDjprHRTFHA.3176@TK2MSFTNGP09.phx.gbl...
> Is there a way when you click on a cell of a datagrid that you can tell
> which column that cell is in?
>
> Thanks in advance for any help you can give!!!
>
>



Rick

2005-04-30, 3:55 am

That worked so perfect.

Thanks sooooooo much!!!

Here is the line I used incase anyone needs something similar.

I want to get the database field of that column I have a popup menu from a
right-click and I obtain the column with this code.

DataGrid3.Columns(DataGrid3.Col).DataField


"Veign" <NOSPAMinveign@veign.com> wrote in message
news:uqawZiRTFHA.2096@TK2MSFTNGP14.phx.gbl...
> Try the Col property
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Rick" <rick@di-wave.com> wrote in message
> news:uDjprHRTFHA.3176@TK2MSFTNGP09.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com