473,624 Members | 2,478 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 1777
<columns>
<asp:TemplateCo lumn HeaderText="My Panel">
<itemtemplate >
<asp:panel id="myPanel" runat="server">
Panel Stuff
</asp:panel>
</itemtemplate>
</asp:TemplateCol umn>
</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******** ************@he stia.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 nullreferenceEx ception 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@localh ost> schreef in bericht
news:eG******** ******@TK2MSFTN GP11.phx.gbl...
<columns>
<asp:TemplateCo lumn HeaderText="My Panel">
<itemtemplate >
<asp:panel id="myPanel" runat="server">
Panel Stuff
</asp:panel>
</itemtemplate>
</asp:TemplateCol umn>
</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 nullreferenceEx ception 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@localh ost> schreef in berich
news:eG******** ******@TK2MSFTN GP11.phx.gbl..
<columns><asp:T emplateColumn HeaderText="My Panel"><itemtem plate><asp:pane l id="myPanel" runat="server"
Panel Stuf
</asp:panel></itemtemplate></asp:TemplateCol umn></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
1001
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 and datagrids and is very lengthy. has anyone experienced this?
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
1057
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 when the DataGrid extends past the width of the web browser the top boarder ends at the edge of the browser window. How can I get to boarder to completely surround the DataGrid and make it look nicer? TIA...
3
4147
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 on the data being displayed. I tried setting the panel style width to the datagrid width after the datagrid is bound. But the panel is being set to the datagrid width I set at design time, not the actual datagrid width once it has been rendered....
1
1574
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> <asp:Panel id="pnlDocumentDetailsGrid" runat="server" Visible="False"> <TABLE id="Table112" cellSpacing="0" cellPadding="0" width="100%" border="0">
2
8338
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%" CssClass="scroll"> <asp:Label id="Label1" runat="server">Label</asp:Label></asp:Panel> </td> </tr> <tr height="50%">
2
1926
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 page load the panel works as expected but when I load the datagrid the panel expands off the side of the page to accomidate the new grid size. Does anyone know how to prevent this without using an absolute size. The panel basically takes up the...
4
6868
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 is during compilation (build). My code is: <TABLE id="Table1" style="WIDTH: 864px; HEIGHT: 177px" cellSpacing="1" cellPadding="1" width="864" border="0">
0
1038
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 position reset. the same with panel. got the solution to use an updatepanel. which works great. i dont loose focus on the grid. but now i cant get my postback to work like it used to. the setup is as follows: i have the datagrid inside the update...
0
8233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8675
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8619
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8334
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8474
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6108
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.