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

How Do I Make a Column In My Bound DataGrid Invisible?

Sorry for the newbie question.

....Hopefully, it is an easy one

Ben
Nov 20 '05 #1
3 3563
it is ;-)

<asp:BoundColumn Visible="False" DataField="IDTest"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Name" HeaderText="Name"></asp:BoundColumn>

the first coloum will be invisible while the second will be shown.

"Ben Pursley" <bp******@chromasource.com> schrieb im Newsbeitrag
news:OG**************@TK2MSFTNGP12.phx.gbl...
Sorry for the newbie question.

...Hopefully, it is an easy one

Ben

Nov 20 '05 #2
Daniel,

Can you do the same thing on a Windows Form with a
DataSet? Is the syntax similiar enough? I just posted a
few questions that havn't shown up yet, one of them dealt
with this type of thing.

thanks a ton
-----Original Message-----
it is ;-)

<asp:BoundColumn Visible="False" DataField="IDTest"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Name" HeaderText="Name"></asp:BoundColumn>
the first coloum will be invisible while the second will be shown.
"Ben Pursley" <bp******@chromasource.com> schrieb im Newsbeitragnews:OG**************@TK2MSFTNGP12.phx.gbl...
Sorry for the newbie question.

...Hopefully, it is an easy one

Ben

.

Nov 20 '05 #3
Sorry Jason,

I don't know :-(

Greetings

Daniel

"Jason" <ja**********@praxis.com> schrieb im Newsbeitrag
news:55****************************@phx.gbl...
Daniel,

Can you do the same thing on a Windows Form with a
DataSet? Is the syntax similiar enough? I just posted a
few questions that havn't shown up yet, one of them dealt
with this type of thing.

thanks a ton
-----Original Message-----
it is ;-)

<asp:BoundColumn Visible="False" DataField="IDTest"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Name"

HeaderText="Name"></asp:BoundColumn>

the first coloum will be invisible while the second will

be shown.

"Ben Pursley" <bp******@chromasource.com> schrieb im

Newsbeitrag
news:OG**************@TK2MSFTNGP12.phx.gbl...
Sorry for the newbie question.

...Hopefully, it is an easy one

Ben

.

Nov 20 '05 #4

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

Similar topics

2
by: Todd | last post by:
Hello, I'm curious if anyone knows of a way (if one exists) to tell a form (in Access 2002 VBA) to sort on an unbound column of a combo box on the form. Here's what I want to do: A combo box...
2
by: Iain | last post by:
I'd like to have a repeater (like) control which may have 1, 2, 3 or more columns to be decided either at run time or design time (each with a potentially complex layout). As far as I can see, I...
15
by: John Blair | last post by:
Hi, Code attached but the line that gives me an error is MyDataGrid.Columns(2).Visible = False It actually gives me an error for any value instead of 2 even when 9 bound columns of data exist....
7
by: spidur1 | last post by:
I have a datagrid with template comlumns that have textboxes which are populated via the ItemDataBound command. However, when I set a column to be invisible, I can no longer retreive the value of...
4
by: Raed Sawalha | last post by:
i have datagrid , I added a bound column and I need to map it with two data fields ...is this possible? <asp:datagrid id=dgInbox runat="server" EnableViewState="False"...
9
by: Roy | last post by:
Hey all, On my html page I have a datagrid with the column: <boundColumn datafield="xyz" visible = false> </boundColumn> In my code behind, within item data bound event, I dynamically set the...
4
by: Grace | last post by:
I use a datagrid included in a repeater. as following: (.aspx) <asp:repeater id="rp_perform" Runat="server"> <HeaderTemplate> <table border="0" bgcolor="gray" cellspacing="0" cellpadding="0">...
3
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I...
4
by: gane | last post by:
Hi, I am creating datagrid bound column dynamically and need to check if a datagrid column already exists?Is there a way to check this? thanks gane
2
by: Sharon | last post by:
I want put into my DataGrid different control types in the same column. For example: Column 1, row 0 ==> TextBox Column 1, row 2 ==> CheckBox Column 1, row 2 ==> ComboBox etc... As I see, I...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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...

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.