HighTechTalks DotNet Forums  

DataGrid Column Template

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss DataGrid Column Template in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
RML
 
Posts: n/a

Default DataGrid Column Template - 08-16-2006 , 01:47 PM






Hi, I have an ASP.NET 1.1 application which uses a DataGrid control. I have
a column Template defined in the DataGrid which impliments a DropDownList
control for the EditItemTemplate. I need to be able to catch the
SelectedItemChanged event for this control, but not usre how to do it. Below
is the DataGrid def...

<asp:TemplateColumn HeaderText="Type" FooterText="Type of Characteristic">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"TypeName") %>
</ItemTemplate>
<EditItemTemplate>
<aspropDownList id=ddlTypes runat="server" Width="90px"
SelectedIndex='<%# DataBinder.Eval(Container.DataItem, "CharType") %>'
DataTextField="TypeName" DataSource="<%# dtCharTypes %>
</aspropDownList>
</EditItemTemplate>
</asp:TemplateColumn>

RML

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.