use of panel inside datagrid

F

Fre

Hi,

Someone who can give me a tip how i can use a panel inside a datagrid?

Thx in advance!

Frederik
 
R

Raterus

<columns>
<asp:TemplateColumn HeaderText="My Panel">
<itemtemplate>
<asp:panel id="myPanel" runat="server">
Panel Stuff
</asp:panel>
</itemtemplate>
</asp:TemplateColumn>
</columns>

Since I don't know what you are after, here is how you can put a panel in an itemtemplate.
 
F

Fre

This don't work when i place a panel in an itemtemplate. It works when i
place the panel outside my datagrid.
I get everytime a nullreferenceException when i change the visible property
of my panel (in the page_load event).
I don't understand this because it works well when i place my panel outside
my datagrid

thx for reaction

Frederik

"Raterus" <raterus@localhost> schreef in bericht
<columns>
<asp:TemplateColumn HeaderText="My Panel">
<itemtemplate>
<asp:panel id="myPanel" runat="server">
Panel Stuff
</asp:panel>
</itemtemplate>
</asp:TemplateColumn>
</columns>

Since I don't know what you are after, here is how you can put a panel in an
itemtemplate.
 
G

Guest

Hi

As far as I understand, Panel is a container, datagrid is a control. I don't think that You can place a container in a control

Bin Song, MC

----- Fre wrote: ----

This don't work when i place a panel in an itemtemplate. It works when
place the panel outside my datagrid
I get everytime a nullreferenceException when i change the visible propert
of my panel (in the page_load event)
I don't understand this because it works well when i place my panel outsid
my datagri

thx for reactio

Frederi

"Raterus" <raterus@localhost> schreef in berich
<columns><asp:TemplateColumn HeaderText="My Panel"><itemtemplate><asp:panel id="myPanel" runat="server"
Panel Stuf
</asp:panel></itemtemplate></asp:TemplateColumn></columns

Since I don't know what you are after, here is how you can put a panel in a
itemtemplate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top