Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

DataGrid column
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!!!



Report this thread to moderator Post Follow-up to this message
Old Post
Rick
04-30-05 01:55 AM


Re: DataGrid column
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!!!
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Veign
04-30-05 08:55 AM


Re: DataGrid column
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... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Rick
04-30-05 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.