Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > <selectedItemTemplate>

Reply
Thread Tools

<selectedItemTemplate>

 
 
Steve Klett
Guest
Posts: n/a
 
      11-17-2003
I can't find how to implement a selectedItemTemplate using a datagrid.

I'm using Columns->asp:templateColumn->ItemTemplate

There is not SelectedItemTemplate. How do you format the data for the
selected row of a datagrid?

Thanks,
Steve


 
Reply With Quote
 
 
 
 
Mike Moore [MSFT]
Guest
Posts: n/a
 
      11-18-2003
Hi,

To format the selected row, use SelectedItemStyle. In the following HTML
snippet, I've changed the ForeColor of all four template types.

<aspataGrid id="DataGrid1" runat="server">
<SelectedItemStyle ForeColor="Red"></SelectedItemStyle>
<EditItemStyle ForeColor="Black"></EditItemStyle>
<AlternatingItemStyle ForeColor="Blue"></AlternatingItemStyle>
<ItemStyle ForeColor="Aqua"></ItemStyle>
</aspataGrid>


Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computerís security.

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
> From: "Steve Klett" <(E-Mail Removed)>
> Subject: <selectedItemTemplate>
> Date: Mon, 17 Nov 2003 13:20:59 -0800
> Lines: 11
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <#(E-Mail Removed)>
> Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
> NNTP-Posting-Host: 190.muaa.sttl.sttwa01r1.dsl.att.net 12.102.48.190
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
> Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet.datagridc ontrol:7472
> X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
>
> I can't find how to implement a selectedItemTemplate using a datagrid.
>
> I'm using Columns->asp:templateColumn->ItemTemplate
>
> There is not SelectedItemTemplate. How do you format the data for the
> selected row of a datagrid?
>
> Thanks,
> Steve
>
>
>


 
Reply With Quote
 
 
 
 
Steve Klett
Guest
Posts: n/a
 
      11-19-2003
Thanks Mike,

Not quite a solution though for my needs thgouh... Looking forward to this
being added, I hope.

-SK


""Mike Moore [MSFT]"" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> To format the selected row, use SelectedItemStyle. In the following HTML
> snippet, I've changed the ForeColor of all four template types.
>
> <aspataGrid id="DataGrid1" runat="server">
> <SelectedItemStyle ForeColor="Red"></SelectedItemStyle>
> <EditItemStyle ForeColor="Black"></EditItemStyle>
> <AlternatingItemStyle ForeColor="Blue"></AlternatingItemStyle>
> <ItemStyle ForeColor="Aqua"></ItemStyle>
> </aspataGrid>
>
>
> Thank you, Mike
> Microsoft, ASP.NET Support Professional
>
> Microsoft highly recommends to all of our customers that they visit the
> http://www.microsoft.com/protect site and perform the three

straightforward
> steps listed to improve your computer's security.
>
> This posting is provided "AS IS", with no warranties, and confers no

rights.
>
>
> --------------------
> > From: "Steve Klett" <(E-Mail Removed)>
> > Subject: <selectedItemTemplate>
> > Date: Mon, 17 Nov 2003 13:20:59 -0800
> > Lines: 11
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> > Message-ID: <#(E-Mail Removed)>
> > Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
> > NNTP-Posting-Host: 190.muaa.sttl.sttwa01r1.dsl.att.net 12.102.48.190
> > Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
> > Xref: cpmsftngxa06.phx.gbl

> microsoft.public.dotnet.framework.aspnet.datagridc ontrol:7472
> > X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
> >
> > I can't find how to implement a selectedItemTemplate using a datagrid.
> >
> > I'm using Columns->asp:templateColumn->ItemTemplate
> >
> > There is not SelectedItemTemplate. How do you format the data for the
> > selected row of a datagrid?
> >
> > Thanks,
> > Steve
> >
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments