473,396 Members | 1,599 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 vs DataGridView

I realize now one of my problems seems to be I was working with
DataGrids which come from .NET 1.x. I am now adding a DataGridView
which will do what I need, however, there is one weird difference I
cannot figure out.

The old DataGrid has a caption property. It is a blue strip above the
column headings. It is blue because the caption properties were set
as such. Problem is, the DataGridView object does not have the same
caption properties.

Does anyone know what i'm talking about or how to find properties to
have a caption at the top and adjust it's colour?

Thanks!

Oct 4 '07 #1
2 4916
AFAIK, I don't believe that you can do this with the DataGridView.
However, there is nothing to stop you from slapping a label above the data
grid view to do the same thing.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Soulless" <dg*******@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
>I realize now one of my problems seems to be I was working with
DataGrids which come from .NET 1.x. I am now adding a DataGridView
which will do what I need, however, there is one weird difference I
cannot figure out.

The old DataGrid has a caption property. It is a blue strip above the
column headings. It is blue because the caption properties were set
as such. Problem is, the DataGridView object does not have the same
caption properties.

Does anyone know what i'm talking about or how to find properties to
have a caption at the top and adjust it's colour?

Thanks!

Oct 4 '07 #2
On Oct 4, 1:06 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
AFAIK, I don't believe that you can do this with the DataGridView.
However, there is nothing to stop you from slapping a label above the data
grid view to do the same thing.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"Soulless" <dgmsal...@gmail.comwrote in message

news:11**********************@r29g2000hsg.googlegr oups.com...
I realize now one of my problems seems to be I was working with
DataGrids which come from .NET 1.x. I am now adding a DataGridView
which will do what I need, however, there is one weird difference I
cannot figure out.
The old DataGrid has a caption property. It is a blue strip above the
column headings. It is blue because the caption properties were set
as such. Problem is, the DataGridView object does not have the same
caption properties.
Does anyone know what i'm talking about or how to find properties to
have a caption at the top and adjust it's colour?
Thanks!- Hide quoted text -

- Show quoted text -
True enough, thanks!

Oct 4 '07 #3

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

Similar topics

2
by: JochenZ | last post by:
Hello, I have a DataGrid(View) and a DataTable. The DataTable is displayed in the DataGridView: dataGridView.DataSource = theTable; The user is allowed to select some rows and then the...
1
by: Irfan | last post by:
hi, all In VB 2005 Beta i cant find dataGrid control in the toolbox, instead DataGridView is available. What is the differance between the two ? How can i get dataGrid Control? Thanks
5
by: ComputerStop | last post by:
I am attempting to print a datagridview. I have not found any method that works successfully. Has any one been successful with this?
3
by: reidarT | last post by:
I have a datagrid with columns. One of the columns are a textbox. I want the text in this column shown in a textbox outside the datagrid. How can I do that when clicking the actual row in the...
0
by: Brett Romero | last post by:
I've written a DataGrid class that inhertis from DataGrid. There's a lot of code in this class specific to the DataGrid's functionality. I mainly want to use the DataGridView for drop down combo...
2
by: Warex | last post by:
Hello I am having a problem with using the datagrid. I am attaching my data through a dataset via code to a datagridview.datasource. All if fine except if I make any changes to the datagrid the...
1
by: seanmle | last post by:
I want to build a windows application that has a datagrid filled with data. When a person modifies information on a single cell, it updates the database without the user having to click on a save...
2
by: cj | last post by:
I was looking over some of my 2003 code today (see below) that loads a foxpro table via oledb connection. I used a sub "autosizecolumns" I found on the web but I never quite understood why they...
2
by: Rob | last post by:
After I type my DataGrid name in the code, I am expecting to have a couple options (methods ?) available... I see them in sample code, but they are not available for me to select. ...
3
by: frostbb | last post by:
Greetings, We're starting to transition our legacy C# apps from earlier versions to VS2008 versions. Many of our apps allow the user to select a row from a DataGrid into a 'Data Edit' area...
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: 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
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.