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.

caption in datagrid

Hi,

I have datagrid.I format the datagrid and set caption for datagrid.But it is displayed in the center of the datagrid.i need it in left side and also set background color bold etc.

pls help me.
May 14 '08 #1
2 1460
nateraaaa
663 Expert 512MB
Hi,

I have datagrid.I format the datagrid and set caption for datagrid.But it is displayed in the center of the datagrid.i need it in left side and also set background color bold etc.

pls help me.
The HeaderStyle properties of the datagrid will allow you to set these formats.
HorizontalAlign="left"
BackColor="whatever color you want"
Font-Bold="True" //will make the text displayed in the header of the datagrid bold.

Nathan
May 14 '08 #2
The HeaderStyle properties of the datagrid will allow you to set these formats.
HorizontalAlign="left"
BackColor="whatever color you want"
Font-Bold="True" //will make the text displayed in the header of the datagrid bold.

Nathan

I am not asking header of each column.I give name to datagrid.Header for datagrid.
pls help me.
May 15 '08 #3

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

Similar topics

8
by: Wally | last post by:
I would like to have an image with a caption displayed below it. The size of the image will vary. The caption should not extend beyond the width of the image. How can I cause the text of the...
1
by: altacct | last post by:
I've got a multi-page subform with a tab control on one of the pages. The code that moves you from page three to page four, which is where the tab is, changes the tab captions according to some...
0
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly...
2
by: LL | last post by:
Hi, I'm using DBGrid. Can I add a caption "Page:" in front of the PageNumber: Page: 1.2.... Thanks.
1
by: Adam Knight | last post by:
Thanks to all who responded to my previous post. Can anyone tell me is their a way to add a hyperlink in a datagrid caption? Cheers, Adam
1
by: Tor Inge Rislaa | last post by:
How to get the caption of a column in datagrid? When knowing the ColumnNumber of a column I want to readout the caption of that specific column. Any Ideas? (my datagrid is bund to a...
0
by: Nikolay Petrov | last post by:
I've set the Caption property for a table in DataSet, so when hte DataSet is binded to a Datagrid, the caption is displeyd instead of the column name. But it doesn't work. I get the column name...
2
by: Mrozu | last post by:
Hi How I can set CaptionAlign to Center. I can't find this option in DataGrid Properties... Default align is left... Thx Mrozu
9
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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.