473,408 Members | 1,976 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,408 software developers and data experts.

Datagrid column customization

Jon
I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will
alsways need to be a link which uses the value of the first column as part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone point
me in the right direction?

Thanks

--
********************************
Jon
Nov 19 '05 #1
5 1044
Jon,

You can define the first column in design time and add other columns
dynamically in run time. If you want an advice on the type of the other
columns, please provide some details on them.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will
alsways need to be a link which uses the value of the first column as part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone point
me in the right direction?

Thanks

--
********************************
Jon

Nov 19 '05 #2
Jon
The other columns will just be displayed as they are returned from the
database. Can you give me some details on how to define the first column?

Thanks
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can define the first column in design time and add other columns
dynamically in run time. If you want an advice on the type of the other
columns, please provide some details on them.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will
alsways need to be a link which uses the value of the first column as
part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone
point
me in the right direction?

Thanks

--
********************************
Jon


Nov 19 '05 #3
Jon
Thanks. I got it working for the first column. It successfully creates the
link with the data from the database.

I can't find a way to specify it should be the second column in
order...instead of the first. I mistyped before, the second column is
always the one that needs to be hyperlinked....

Thanks
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can define the first column in design time and add other columns
dynamically in run time. If you want an advice on the type of the other
columns, please provide some details on them.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will
alsways need to be a link which uses the value of the first column as
part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone
point
me in the right direction?

Thanks

--
********************************
Jon


Nov 19 '05 #4
What about defining the first column as a bound one in design time and then
setting up data fields etc in run time?

The other columns, from the third on, should be also bound ones.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
Thanks. I got it working for the first column. It successfully creates the link with the data from the database.

I can't find a way to specify it should be the second column in
order...instead of the first. I mistyped before, the second column is
always the one that needs to be hyperlinked....

Thanks
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can define the first column in design time and add other columns
dynamically in run time. If you want an advice on the type of the other
columns, please provide some details on them.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will alsways need to be a link which uses the value of the first column as
part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone
point
me in the right direction?

Thanks

--
********************************
Jon



Nov 19 '05 #5
Jon
Yes, I think that will work. Thanks for your ideas.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
What about defining the first column as a bound one in design time and
then
setting up data fields etc in run time?

The other columns, from the third on, should be also bound ones.

Eliyahu

"Jon" <ru******@msn.com> wrote in message
news:10*************@corp.supernews.com...
Thanks. I got it working for the first column. It successfully creates

the
link with the data from the database.

I can't find a way to specify it should be the second column in
order...instead of the first. I mistyped before, the second column is
always the one that needs to be hyperlinked....

Thanks
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> Jon,
>
> You can define the first column in design time and add other columns
> dynamically in run time. If you want an advice on the type of the other
> columns, please provide some details on them.
>
> Eliyahu
>
> "Jon" <ru******@msn.com> wrote in message
> news:10*************@corp.supernews.com...
>> I have a datagrid that is not bound to a dataset until the user inputs
>> information, so the datasource (and number/name of columns) is not
>> determined until runtime. However, I do know that the first column will >> alsways need to be a link which uses the value of the first column as
>> part
>> of the link.
>>
>> I've looked up some information on column templates, hyperlink
>> columns,
>> etc...but, I'm unsure which is best for my situation. Could someone
>> point
>> me in the right direction?
>>
>> Thanks
>>
>> --
>> ********************************
>> Jon
>>
>>
>
>



Nov 19 '05 #6

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

Similar topics

9
by: Lina | last post by:
Hi, Can anyone tell me if it is possible to add link buttons to a datagrid that has its source set to a datatable that i have created? i.e i want the user to be able to select a room from...
2
by: PatLaf | last post by:
I would like to be able to build a datagrid that has two buttons in each cell similar to the functionality provided by the winforms numericupdown control. I have an app that will require the user to...
0
by: Bob Rosen | last post by:
The description given in "Customizing Items Dynamically in the DataList or DataGrid Web Server Control" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbCode/...
2
by: Simone | last post by:
Hi, i have an application created with Vb.Net 2002 and .Net Framework 1.1; in a Main Form I have a Datagrid populated with a Datawiew. When i populate a Datagrid i receive a Big red X into...
5
by: Dennis | last post by:
I have a class that inherits from DataGrid. I can set the rowheights in a DataGrid by tappig into the "get_Datagridrows" method. However, this does not work for classes that inherit from...
9
by: Rekha | last post by:
The data is filled in datagrid. I want to know how to add a checkbox column in datagrid? In the runtime, checkbox is checked then instead of checkbox value the (caseID )column value is retained....
1
by: Will | last post by:
Hello, I wrote a custom object that Inherits from CollectionBase. This would, my object fits in a datagrid. However, my object (_obj) contains data and references I do NOT want the datagrid...
4
by: Mike | last post by:
Hi, It's selly, but how can I set the width of a column in the datagrid, and to hide a column!!!? thanks -- Regads, Rochdi
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.