Thread View: borland.public.delphi.aspdotnet.components.using
2 messages
2 total messages
Started by Scott Gast
Fri, 09 Jun 2006 20:19
How do I figure out what column was clicked in the Datagrid component
Author: Scott Gast
Date: Fri, 09 Jun 2006 20:19
Date: Fri, 09 Jun 2006 20:19
9 lines
1323 bytes
1323 bytes
OMG. Does anyone know how to get the column clicked on a datagrid? SelectedIndex gives me the row, but I need the column. Each column contains a PDF filename and I need to fetch that file when they click. TIA. Scott Gast
Re: How do I figure out what column was clicked in the Datagrid component
Author: Bob Swart
Date: Sat, 10 Jun 2006 07:29
Date: Sat, 10 Jun 2006 07:29
24 lines
1823 bytes
1823 bytes
Hi Scott,
> Does anyone know how to get the column clicked on a datagrid? SelectedIndex
> gives me the row, but I need the column.
I would turn the column into a hyperlink column, using the URL field to
pass on the information you want, and in the URL formatting string use
that information (so a click would result in a link to a page with the
URL field's information).
See http://www.bitwisemag.com/copy/delphi/swart/blog2b.html for an
example where I use the HyperLink column to pass an ECO ExternalId field
to another ASP.NET page (so it starts with that Id). The same way, you
can pass your PDF filename.
> TIA.
> Scott Gast
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads