473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

dynamic columns and datagrid items

created 4 boundcolumns dynamically or programmatically and bind them
to a datasource, when client click on a button before posting back to
the server, i am trying to extract the data from the datagrid throught
its datagrid.items, but nothing is there(count = 0). Does anyone have
any clues about this? Any help would be greatly appreciated!!!!!!...

Jun 28 '06 #1
3 2633
You have to re-create dynamically created controls on every postback.

Eliyahu

<SM****@gmail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
created 4 boundcolumns dynamically or programmatically and bind them
to a datasource, when client click on a button before posting back to
the server, i am trying to extract the data from the datagrid throught
its datagrid.items, but nothing is there(count = 0). Does anyone have
any clues about this? Any help would be greatly appreciated!!!!!!...

Jun 28 '06 #2
if i cant extract the data before postback, then how am i supposed to
know to find out what the client did to the form? For example, i have
generated checkbox column, when a client clicks on the checkbox, how do
i find that the checkbox is checked?

Eliyahu Goldin wrote:
You have to re-create dynamically created controls on every postback.

Eliyahu

<SM****@gmail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
created 4 boundcolumns dynamically or programmatically and bind them
to a datasource, when client click on a button before posting back to
the server, i am trying to extract the data from the datagrid throught
its datagrid.items, but nothing is there(count = 0). Does anyone have
any clues about this? Any help would be greatly appreciated!!!!!!...


Jun 28 '06 #3
You just need to re-create exactly the same controls as you did for the
first page load. On the postback asp.net will take care of populating the
controls with the correct client data.

Eliyahu

<SM****@gmail.com> wrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
if i cant extract the data before postback, then how am i supposed to
know to find out what the client did to the form? For example, i have
generated checkbox column, when a client clicks on the checkbox, how do
i find that the checkbox is checked?

Eliyahu Goldin wrote:
You have to re-create dynamically created controls on every postback.

Eliyahu

<SM****@gmail.com> wrote in message
news:11**********************@x69g2000cwx.googlegr oups.com...
> created 4 boundcolumns dynamically or programmatically and bind them
> to a datasource, when client click on a button before posting back to
> the server, i am trying to extract the data from the datagrid throught
> its datagrid.items, but nothing is there(count = 0). Does anyone have
> any clues about this? Any help would be greatly appreciated!!!!!!...
>

Jun 28 '06 #4

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

Similar topics

0
by: JP011 | last post by:
Hello I have hit a major road block when it comes to building my dynamic datagrid. To make a long story short I need a dynamic datagrid because my connection string could change and I need the...
0
by: optimizeit | last post by:
What I am attempting to do is import an Excel Workbook and display the worksheets in a datagrid dynamically. I am very close to getting this to work. I have to this point successfully imported a...
0
by: tafpin | last post by:
I have an application with a datagrid. In the IDE I have 2 template columns. The first has an image button and the second contains a link button. According to the results that I get back I must...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
7
by: CanoeGuy | last post by:
I have been trying for the last two weeks to display a dynamic DataGrid. The data that I'm pulling from a SQL Server DB will have whole columns that will be either NULL or 0. I want to display...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
3
by: ER | last post by:
Hi, I would like to create a datagrid or free entry form with dynamic columns based on the user selection, do you have any ideas or samples? Any help would be appreciated! ER
3
by: Bart Van Hemelen | last post by:
Here's what I'm trying to accomplish: I get a number from another page that indicates the number of members. The page I want to build -- actually it's not a page, but a UserControl -- needs to...
0
by: KA NMC | last post by:
I have a dataGrid that is populated by SQL table. The Datagrid has two dynamic columns - that I created to for calculations. I want to sort the grid on frmload by one of the dynamic columns is that...
0
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,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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
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...
0
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...

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.