Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Datagrid OnSelectedIndexChanged Event

New Here ,
May 12, 2006 May 12, 2006

Copy link to clipboard

Copied

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.
TOPICS
Server side applications

Views

258
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 15, 2006 May 15, 2006

Copy link to clipboard

Copied

LATEST
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.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines