473,667 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help :datagrid Autogenerate and Template ???

Dear all,

I have a datagrid which bind to a dataset object
Datagrid autogenerate propertie is set to True.

I need to create the first column of my grid to be used as an hyperlink and
sending the content click cell to the next page as a parameter.

I can do that without any trouble if my grid is not set for autogenerate.
How can I do when columns name are issue from the dataset ?

regards
serge
Nov 19 '05 #1
2 1463
If you want to do specific things with specific columns then you should
specify the columns.
Otherwise you will have to wrap an IF/THEN check on every columns
databinding event.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"serge calderara" wrote:
Dear all,

I have a datagrid which bind to a dataset object
Datagrid autogenerate propertie is set to True.

I need to create the first column of my grid to be used as an hyperlink and
sending the content click cell to the next page as a parameter.

I can do that without any trouble if my grid is not set for autogenerate.
How can I do when columns name are issue from the dataset ?

regards
serge

Nov 19 '05 #2
Does it means that I need to use only with AUtogenerate=fa sle for doing this ?

"Curt_C [MVP]" wrote:
If you want to do specific things with specific columns then you should
specify the columns.
Otherwise you will have to wrap an IF/THEN check on every columns
databinding event.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"serge calderara" wrote:
Dear all,

I have a datagrid which bind to a dataset object
Datagrid autogenerate propertie is set to True.

I need to create the first column of my grid to be used as an hyperlink and
sending the content click cell to the next page as a parameter.

I can do that without any trouble if my grid is not set for autogenerate.
How can I do when columns name are issue from the dataset ?

regards
serge

Nov 19 '05 #3

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

Similar topics

0
1705
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray that has the information, but we as developers have no way to access this information. I have come up with a solution for the problem, (as I am sure many others have) using reflection. Here is some sample code that will print out the auto...
2
864
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray that has the information, but we as developers have no way to access this information. I have come up with a solution for the problem, (as I am sure many others have) using reflection. Here is some sample code that will print out the auto...
2
2621
by: damonf | last post by:
I'm currently trying to add an ASP hyperlink to a template column in a datagrid. The normal hyperlink column doesn't give me the ability to add attributes to the item. In my grid there are four columns. Three are databound to a dataset and one is a template column. I need to be able to access each item in the template column (getting access to the hyperlink) then adding an attribute to call some client side code. Does anyone know...
2
1526
by: CW | last post by:
In an earlier thread, I was asking for help on "Invalid attempt to FieldCount when reader is closed" error when I was using a dataset rather than a datareader to bind to a datagrid. After playing around with it, I found out that the error was caused by template columns. Once I remove template columns, everything worked fine. Here are my scenarios and I would appreciate input on it. My datagrid is bound to a orderlines table. In the...
2
1148
by: SKG | last post by:
i have a datagrid which has to display values like <Main> and <SubMain> But then they appear to be blank. I found when these values are placed in datagrid cells <td></td> they do not show. how can i display them. Thank!!!
0
1031
by: Vishal | last post by:
Hello, I have extended the normal datagrid, with some of the properties I need and created a web server control called AA:AADataGrid. This datagrid has autogenerate columns set to false and I am adding manually columns to it. That works so far. Now I would like to add an image button to the first column of the datagrid via the designer - in the webform where I am using the control.
1
955
by: Phil396 | last post by:
I am using autogenerate to bind a string array to a datagrid however it displays the column name as "Item" is there a way to change this without setting the autogenerate function to false. Also when I print the web report part of one row is on one page and the other part on the next page. Is there any way to stop this on the printout.
1
1736
by: ypul | last post by:
Hi , Getting to the point directly, my query output doesnt have fixed columns , so I choosed "autogenerate columns" datagrid. I assign this dataset to my datagrid, but now I want my data should be hyperlinks, so that I can navigate from that page to another, depending on the link clicked. how can I do in autogenerate columns
0
922
by: CharlesA | last post by:
Hi folks, I'm using ASP.net with Framework vs 1.1 and C# I'm not by any means a complete novice, but there does seem to be an endless array of ways to actually assemble a datagrid I don't want to autogenerate the columns, I want to handcraft each column and each template, does anyone know of a great website link that talks you through the options
0
8365
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
8788
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
8646
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...
0
7390
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
6203
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
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
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
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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.