473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

use of panel inside datagrid

Fre
Hi,

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

Thx in advance!

Frederik
Nov 18 '05 #1
3 1759
<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.

"Fre" <fr*****************************@howest.be> wrote in message news:pK********************@hestia.telenet-ops.be...
Hi,

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

Thx in advance!

Frederik

Nov 18 '05 #2
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
news:eG**************@TK2MSFTNGP11.phx.gbl...
<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.
Nov 18 '05 #3
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
news:eG**************@TK2MSFTNGP11.phx.gbl..
<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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
996
by: bob | last post by:
just an update from a previous post.. I have several forms that keep crashing in the designer when I place a panel on a form and then try to put a datagrid inside. the form has several panels...
3
331
by: Fre | last post by:
Hi, Someone who can give me a tip how i can use a panel inside a datagrid? Thx in advance! Frederik
0
1046
by: The Eeediot | last post by:
I've got a silly question for the group. I have an DataGrid that displays its information inside a panel... Well, actually it's a MultiPage object. I have a boader around the MultiPage object but...
3
4141
by: dba56 | last post by:
I have a panel containing textboxes and buttons which I use as a header for a datagrid on a webform. I would like the panel width to match the datagrid width. The datagrid width grows depending...
1
1568
by: Manny Chohan | last post by:
Hi, i have a template column in datagrid. Inside template column i have panel. I want to control the visibility of the panel with checkbox. can this be done? <asp:TemplateColumn> <ItemTemplate>...
2
8334
by: Jason Chu | last post by:
Simple compatibility question, I have this: <table height="100%" width="50%" border="1"> <tr height="50%"> <td> <asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"...
2
1917
by: tjfdownsouth | last post by:
I am using a panel inside an asp.net 2.0 page so that I can have the scrolling capabilities. Inside the panel I have a datagrid that I would like to stay within a certain area. On the initial...
4
6856
by: tshad | last post by:
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"to section of parts of my code in a table. This...
0
1023
by: 23000733 | last post by:
I previously had the problem of getting scrollbars on my datagrid. Got the solution to use <div> tags, which worked fine, but each time i selected a record, the focus on the grid was lost and the...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.