473,770 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

text below datagrid

how would i write text out below a datagrid, if the datagrid is
dynamic?

i tried putting the datagrid in the 1st row of a table, and the text
in the 2nd, but for some reason when i do that, the onItemDataBound
function for the datagrid stops working. The only way I can get it to
work again, is to take it out of the table, click on the lightning
bolt icon, and double click the function to create it again.
Nov 16 '05 #1
3 1100
Hi Mortar:

When you say you are creating the DataGrid dynamically, do you mean
you create a new DataGrid object and add the control to the page with
Controls.Add? If so, you have to add the DataGrid on every postback
operation also, or you won't get any events from the control.

--
Scott
http://www.OdeToCode.com/

On Mon, 04 Oct 2004 16:10:07 GMT, a@b.com (Mortar) wrote:
how would i write text out below a datagrid, if the datagrid is
dynamic?

i tried putting the datagrid in the 1st row of a table, and the text
in the 2nd, but for some reason when i do that, the onItemDataBound
function for the datagrid stops working. The only way I can get it to
work again, is to take it out of the table, click on the lightning
bolt icon, and double click the function to create it again.


Nov 16 '05 #2
If this is a web application, why not use the FOOTER?

"Mortar" <a@b.com> wrote in message
news:41******** ******@nntp.wlf dle.phub.net.ca ble.rogers.com. ..
how would i write text out below a datagrid, if the datagrid is
dynamic?

i tried putting the datagrid in the 1st row of a table, and the text
in the 2nd, but for some reason when i do that, the onItemDataBound
function for the datagrid stops working. The only way I can get it to
work again, is to take it out of the table, click on the lightning
bolt icon, and double click the function to create it again.

Nov 16 '05 #3

i didn't mean i am creating the control dynamically, i meant the
height of the data on the page will be dynamic based on the query.

anyway, i changed the document from GridLayout to FlowLayout. It seems
to work ok now but the frustrating part is it doesn't give nearly the
control in design mode as with GridLayout.
On Mon, 04 Oct 2004 13:16:56 -0400, Scott Allen
<bitmask@[nospam].fred.net> wrote:
Hi Mortar:

When you say you are creating the DataGrid dynamically, do you mean
you create a new DataGrid object and add the control to the page with
Controls.Add ? If so, you have to add the DataGrid on every postback
operation also, or you won't get any events from the control.

--
Scott
http://www.OdeToCode.com/

On Mon, 04 Oct 2004 16:10:07 GMT, a@b.com (Mortar) wrote:
how would i write text out below a datagrid, if the datagrid is
dynamic?

i tried putting the datagrid in the 1st row of a table, and the text
in the 2nd, but for some reason when i do that, the onItemDataBound
function for the datagrid stops working. The only way I can get it to
work again, is to take it out of the table, click on the lightning
bolt icon, and double click the function to create it again.


Nov 16 '05 #4

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

Similar topics

0
1480
by: Paolo Tardivel via DotNetMonster.com | last post by:
I have a databound datagrid containing template columns which allow editing of the values contained in the datagrid through the use of text boxes. One of the fields in the datagrid displays the time and date. When a row has been selected for editing I want to be able to click a button in the datagrid and update one of the text boxes with the current time and date. All the code for editing rows and getting the current time and date when...
0
1906
by: Rob | last post by:
I doubt this is the best way to do it, but what I came up with was to hide the XML in an HTML Comment then edit the file deleting the HTML stuff and keep the XML results. If anyone has a better solution, I would be interested. Thank you. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cmd As System.Data.SqlClient.SqlCommand cmd = New System.Data.SqlClient.SqlCommand
3
2220
by: moondaddy | last post by:
I have a frame set where I have a hidden frame page used to marshal data back and forth. In another frame who's source page needs to stay fixed and not do round trips. However, at times I want do display a small table and its row count will vary depending on the number of transactions taking place in the client browser. I would like to execute a datagrid on the server and capture the html generated, then pass that html as a string...
2
1595
by: martin | last post by:
Hi, I am iterating through the dataitems in a datagrid and producing and xml document, If a particular cell in the datagrid has a textbox control or a datagrid control in it then I have no problem retrieveing it value by casting with CTYPE however when the datagrid cell contains no control, but does contain text, then I am having great trouble accessing its value.
2
1473
by: footballhead | last post by:
I have a page with a datagrid that I have configured with all the information I need to provide to froogle for listing my products on their site. I am having trouble finding a way to successfully save the data in this datagrid as a text file. I am somewhat limited in that I do _NOT_ have access to code-behind. All code I use must be inline on the ASPX and the ASCX pages. I can create new pages if that would help. Does anyone know of a...
2
1033
by: Saber | last post by:
When I click on a DataGrid item, the text below mouse pointer selects and turns blue. My DataGrid is ReadOnly and I don't need to let users to select items. Is there a way to prevent selecting the text? -- Saber S. http://maghalat.com
1
1277
by: serge calderara | last post by:
Dear all, I have a datagrid which is bind to a databse table. One field of that table contains a filename. What I ma trying to do is to display the content of a cell to be an icon when the database field is not empty. In addition a direct link to the file will be done. Follow is my Datagrid structure for that column:
3
1544
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do that? Here is the ASPX code: <asp:datagrid id="grdTentativeResults" Width="800" Runat="server"
0
2728
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only, cannot serch by combine 3 table) Example I have the query table below, how do I make the code to seach based on the query from this: SELECT Product.ID, Product.Description, Quantity.Quantity, Quantity.SeialNo, Quantity.SupplierID,...
0
9591
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
9425
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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
10057
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...
0
8883
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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
6676
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();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2816
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.