473,883 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set Column Header Height in DataGrid

2 New Member
Does anyone know how to set up a height in the Microsoft DataGrid (Windows forms)?
DataGridColumnS tyle and TableStyle just let you to set HeaderText, Font and Fore and Back colors.

Thanks!
Lana
Sep 6 '07 #1
3 28207
vanc
211 Recognized Expert New Member
Does anyone know how to set up a height in the Microsoft DataGrid (Windows forms)?
DataGridColumnS tyle and TableStyle just let you to set HeaderText, Font and Fore and Back colors.

Thanks!
Lana
It should be very straightforward :
1. Set the datagridview.Co lumnHeadersHeig htSizeMode to EnableResizing
2. Set the datagridview.Co lumnHeadersHeig ht to any size you like

cheers.
Sep 7 '07 #2
Lana69
2 New Member
It should be very straightforward :
1. Set the datagridview.Co lumnHeadersHeig htSizeMode to EnableResizing
2. Set the datagridview.Co lumnHeadersHeig ht to any size you like

cheers.
Thanks for the reply but...
I forgot to mention that my project is in .NET Framework 1.0 and DataGrid control (Not DataGridView) does not have properties specified above.
Any other ideas?

Thanks!
Sep 7 '07 #3
vanc
211 Recognized Expert New Member
Thanks for the reply but...
I forgot to mention that my project is in .NET Framework 1.0 and DataGrid control (Not DataGridView) does not have properties specified above.
Any other ideas?

Thanks!
Sorry about this late, I have no idea about time with the current project.
E hemh..... in this case I will recommend you to upgrade to .Net 2.0 hehe, because I don't have version 1.0 to test this for you. So sorry about this, hope you can figure it out soon.

cheers.
Sep 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1472
by: Will | last post by:
In a Windows form: I need the code to manually set the header name of a column in a datagrid to anything i want. Everytime i retieve records from a database, the coloum header of the datagrid defaults to the column header of the coloumn in the table in the database. so if the column header in the table is Cust_Name, i want
3
3373
by: Shravan Kumar | last post by:
Hi, I am using my code to set column widths of datagrid columns dynamically, but when I am setting the column widths to zero, the header text of the column whose width is made to zero is appearing on the existing column headers, and the text gets blurred with the painting of the column text along with the adjacent width 0 column. Anybody, can you please give me a solution for it
1
1702
by: pcadchem | last post by:
how do i add two or more header lines for each column in a datagrid without having to redraw everything with OnPaint? Also, is there a way to increase height of the header without increasing size of font? thanks for help!!
0
1714
by: VMI | last post by:
My Windows datagrid has two columns: one with the data that the user will see (col_X) and the other one (a hidden one: col_sort) that'll be used to sort data. When a user clicks on col_X's column header, I'm intercepting the header click and "telling" it to sort the dataview using col_sort. But for some reason, the "return" is not being executed. When I press the mouse key, it'll sort correctly (by col_sort), but as soon as I release the...
5
8803
by: Alex K. | last post by:
How do I define multiline column header in DataGrid control? I need two-line headers for some columns. Thank you
0
1280
by: Demetri | last post by:
I have a web form with a datagrid. The datagrid has 5 columns. In design mode each column has header text. I defined the header text, data source, etc in property builder (visible is checked in property builder). I have also verified my settings in html mode. Everything looks great. When I run the app one of the headers are not there but the column is there since the data gets rendered. I'm just missing my column header - column number...
0
1583
by: Tejpal Garhwal | last post by:
I have datagrid in the the windows form in the VB.net project. I want to increase the height of the columns header. For ex. Product Number should display as Product Number in the column header of the datagrid. Any kind of help is much appreciated. Thanks
1
3653
by: nate axtell | last post by:
I'm trying to extend the Height of Windows.Forms Datagrid's column headers. Is it possible to allow wrapping of text in the header column cells along with making the height larger?
10
4964
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than the column order of the datatable). I also allow the user to click on a column header to sort the datagrid by that column. I need to identify the row and column in the datatable when the user clicks on a cell in the datagrid. Using the...
0
9944
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11153
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10757
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10860
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10420
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7975
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6002
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3239
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.