473,396 Members | 1,771 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.

DataGrid Format Issue

Hello, I have a datagrid which is bound to a datatable. I created the
"DataGridTableStyle" object and defined all of the columns that I wanted to
display. There was one column, however that I did not want to have
displayed and as such, I did not reference in the DataGridTableStyle.

When the Grid is displayed each row shows up with at "+" in the far left
side and if you press it, it displays the field name that I did not
reference.

How do I get rid of the "+" and ensure that that value is not displayed?

Thanks in advance for your assistance!!!!!!!!!
Nov 15 '05 #1
2 1164
Jim:

I'm not an expert on the base grid (it's often quite brutal to use ;-)), but
in the past, if I wanted something not to be displayed, attach it to the
tablestyle, but set its column width to 0. That effectively makes it
invisible, but if you need to manipulate it for whatever reason you can so
that the underlying datatable/dataview is changed for instance, you still
can.

HTH,

Bill
"Jim Heavey" <JH*****@nospam.com> wrote in message
news:Xn*************************@207.46.248.16...
Hello, I have a datagrid which is bound to a datatable. I created the
"DataGridTableStyle" object and defined all of the columns that I wanted to display. There was one column, however that I did not want to have
displayed and as such, I did not reference in the DataGridTableStyle.

When the Grid is displayed each row shows up with at "+" in the far left
side and if you press it, it displays the field name that I did not
reference.

How do I get rid of the "+" and ensure that that value is not displayed?

Thanks in advance for your assistance!!!!!!!!!

Nov 15 '05 #2
Hello Jim,

Bind the grid to the DataTable to be displayed, not to the whole DataSet.
There's also a property on the grid called EnableNavigation or something
like that. Set this to false and the "+" signs will go away.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Jim Heavey" <JH*****@nospam.com> wrote in message
news:Xn*************************@207.46.248.16...
Hello, I have a datagrid which is bound to a datatable. I created the
"DataGridTableStyle" object and defined all of the columns that I wanted to display. There was one column, however that I did not want to have
displayed and as such, I did not reference in the DataGridTableStyle.

When the Grid is displayed each row shows up with at "+" in the far left
side and if you press it, it displays the field name that I did not
reference.

How do I get rid of the "+" and ensure that that value is not displayed?

Thanks in advance for your assistance!!!!!!!!!


Nov 15 '05 #3

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

Similar topics

0
by: Rudolph Araujo | last post by:
Hi, I needed to build a data grid in which the first column has hyperlinks rather than simple text. I found the following code on this newsgroup and it works fine except for one problem. When I...
3
by: Andrew S. Giles | last post by:
Hello, I am importing a flat text file, and putting it into a datagrid for display on a form. Currently the users have their dates and times seperated. I have two fields, therefore in the...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
3
by: Raghuvansh | last post by:
I am databinding a grid to an XML source (given below). I am displaying the grid contents inside an TemplateColumn/ItemTemplate using regular <%# DataBinder.Eval(Container.DataItem,...
3
by: Joey Powell | last post by:
Is it possible to specify a format string for one or more auto-generated datagrid columns? If so, could someone post an example? More specifically, I am interested in taking output like 27.0800000...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
7
by: Dave | last post by:
Are there any add-on products or samples available that can do the following in an vb.net datagrid I want to compare 2 rows in a datagrid - one row from one database and another row for another...
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
2
by: Earl | last post by:
Still trying to clean up some datagrid formatting issues from the past. When I bring in money values from a stored procedure, I'm getting 4 decimal places in the grid ( which of course I only...
2
by: Javier | last post by:
Hi Everyone, I have a dynamic checkbox in a datagrid that uses the ITemplate interface and has the checkchanged event wired up. When the checkbox is checked, the event event handler that...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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.