473,563 Members | 2,895 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 1772
<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
999
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
1054
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...
3
4145
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...
1
1573
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%"...
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
1924
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...
4
6867
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"...
0
1034
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...
0
7665
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...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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...
1
7642
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...
0
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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

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.