473,398 Members | 2,368 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,398 software developers and data experts.

Simple datagrid question ???

Dear all,

When I place a datagrid server control on a webform by default it shows 3
columns
My application makes runtime data binding to a table in database. So far it
works well all my column present on my bind dataset gets displayed properly.

Then I try to use template on Column 0 abut when I run my application again,
the fact of adding a template to column 0 has add an extra column before the
column 0..
Is that normal ?
How can I say to my template that it as to be aplied on the first field of
my dataset ?

IN fact what I am trying to do is to define the content of each records of
the first column to be an Hyperlink text, then when I clik on any records of
first column, it will pass click field content to a second querry as
parameter..

how to perform that ?

thnaks for your help
regards
serge

Nov 19 '05 #1
1 1078
Serge,

To customize columns you should create template columns for each column of
data you want to display and set the autogeneratecolumns property of the
grid to false.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:DA**********************************@microsof t.com...
Dear all,

When I place a datagrid server control on a webform by default it shows 3
columns
My application makes runtime data binding to a table in database. So far
it
works well all my column present on my bind dataset gets displayed
properly.

Then I try to use template on Column 0 abut when I run my application
again,
the fact of adding a template to column 0 has add an extra column before
the
column 0..
Is that normal ?
How can I say to my template that it as to be aplied on the first field of
my dataset ?

IN fact what I am trying to do is to define the content of each records of
the first column to be an Hyperlink text, then when I clik on any records
of
first column, it will pass click field content to a second querry as
parameter..

how to perform that ?

thnaks for your help
regards
serge

Nov 19 '05 #2

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

Similar topics

1
by: serge calderara | last post by:
Dear all, I have a simple datagrid binding to a datasource dataset object that collect a simple table from a database. When I get data from that table, my datagrid appeard with a tree node...
0
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and...
3
by: Elliot Rodriguez | last post by:
Hi: I am writing a WinForm app that contains a DataGrid control and a StatusBar control. My goal is to update the status bar using events from a separate class, as well as some other simple...
0
by: Chris Gardner | last post by:
I have a datagrid that prints a large number of records from a SQL database. Because it is a large table, when printed the table "bleeds" from one page to the next. Ideally, I would like to have...
1
by: Amit | last post by:
Hi All, In one of my web form we are using datagrid server control. There are 5 columns (Sr.No,ProductID,ProductName,Quantity,Rate) in the gird. In footer or edit template I used textbox and...
1
by: Roy | last post by:
I'm assuming this is amazingly simple and I'm just missing the boat. On the html side of an asp.net page I have a datagrid, a "search" button, and 8 text boxes for search criteria. A user enters...
2
by: Rich Wallace | last post by:
I know datasets have been beaten to death in here, I have what is hopefully a simple question about the integrity of a dataset when used in an application. Scenario: User A and User B are...
13
by: Saber | last post by:
I did a lot of searches and read something about datagrids. But I couldn't find the answer of my simple question, how can I show only my desired columns of a table? for example I wrote this sql...
2
by: Greg | last post by:
I'm using the Framework 1.1, so I don't have access to the new DataGridView object. What I'm wondering is, is there a really simple way to bind a plain datagrid to a database in such a way that...
3
by: cowznofsky | last post by:
I'm getting data in a generic list class, which I'm not going to change. I would like to use it as a datasource for a datagrid or a gridview, but it doesn't implement IEnumerable. I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
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...
0
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...
0
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,...

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.