Skip to main content
Participant
May 13, 2006
Question

Datagrid OnSelectedIndexChanged Event

  • May 13, 2006
  • 1 reply
  • 283 views
This is dead easy to do in Visual Studio but in Dreamweaver I haven't yet discovered how to do it...

I have a page that contains a datagrid. I can populate it easily enough but I want to be able to click on a line and use the values in that line to perform an SQL select statement (probably via a datareader) that will then populate text fields on the page with the values returned.

My problem is that I can't find out what sort of column type in the datagrid that will generate the OnSelectedIndexChanged event. I've used the Events section of the Tag Editor to enter a command name and then I have tried using buttons and hyperlinks in the Column properties but haven't been able to generate the event. I've also tried using Free Form columns but with no luck!

Could someone please point me in the right direction? Am I using the wrong approach?

Thanks in advance for your help.
This topic has been closed for replies.

1 reply

Inspiring
May 15, 2006
Basically the DW interpretation of ASP.Net is only designed to handle simple
displays, inserts and updates. I suggest that you code this is VS if you
have it available.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"GavinHF" <webforumsuser@macromedia.com> wrote in message
news:e43djq$b25$1@forums.macromedia.com...
> This is dead easy to do in Visual Studio but in Dreamweaver I haven't yet
> discovered how to do it...
>
> I have a page that contains a datagrid. I can populate it easily enough
> but I
> want to be able to click on a line and use the values in that line to
> perform
> an SQL select statement (probably via a datareader) that will then
> populate
> text fields on the page with the values returned.
>
> My problem is that I can't find out what sort of column type in the
> datagrid
> that will generate the OnSelectedIndexChanged event. I've used the Events
> section of the Tag Editor to enter a command name and then I have tried
> using
> buttons and hyperlinks in the Column properties but haven't been able to
> generate the event. I've also tried using Free Form columns but with no
> luck!
>
> Could someone please point me in the right direction? Am I using the wrong
> approach?
>
> Thanks in advance for your help.
>