I am able to set the alternate row color using
AlternatingRows DefaultCellStyl e. however, if my grid is not fully
filled, the alternate row color will not apply for blank rows. How can
I fill the blank rows with alternate color as well. Thanks. 2 6177
Hi,
B. wrote:
I am able to set the alternate row color using
AlternatingRows DefaultCellStyl e. however, if my grid is not fully
filled, the alternate row color will not apply for blank rows. How can
I fill the blank rows with alternate color as well. Thanks.
You're not mentioning what grid control you're talking about, so obviously
it's hard to give a correct answer. But in any case I would suspect that
unless there's a specific option for the behaviour you want, it's just the
way they implemented it. Most grid controls that I have seen have some form
of custom drawing functionality and you should be able to draw the
alternating colors in the free space yourself. How easy that is would
depend on the quality of the extensibility API provided.
Oliver Sturm
-- http://www.sturmnet.org/blog - MVP C#
Hi Oliver,
I am using .Net 2.0 DataGridView in C#.
On May 3, 10:20 am, "Oliver Sturm [MVP C#]" <oli...@sturmne t.org>
wrote:
Hi,
B. wrote:
I am able to set the alternate row color using
AlternatingRows DefaultCellStyl e. however, if my grid is not fully
filled, the alternate row color will not apply for blank rows. How can
I fill the blank rows with alternate color as well. Thanks.
You're not mentioning what grid control you're talking about, so obviously
it's hard to give a correct answer. But in any case I would suspect that
unless there's a specific option for the behaviour you want, it's just the
way they implemented it. Most grid controls that I have seen have some form
of custom drawing functionality and you should be able to draw the
alternating colors in the free space yourself. How easy that is would
depend on the quality of the extensibility API provided.
Oliver Sturm
--http://www.sturmnet.or g/blog- MVP C#
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paolo |
last post by:
Hi to all,
could you please help me with this issue? I'd like to have the rows of a VB6
ADO grid bound to a db painted with an alternate background and foreground
colors. I'd like to have the odd rows with a x color and the even rows with
a y color. What kind of grid do I have to use? And how can I do it?
Moreover, I'd like to choose custom colors for the selected rows as
well.Usign the DBgrid control I can't.
I'd appreciate very much...
|
by: news |
last post by:
Hi all, How do you implement alternate line colors in ms access datasheet
view
Regards Joe
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 20/08/2003
|
by: C Newby |
last post by:
I have a data grid control taht contains a data bound coulmn called "Type".
Depending on the value of "Type" I want to display a corresponding image in
the rendered table cell. So, if the value of type is 1, I want to show
image1.gif. If the value is 2, I want to show image2.gif. Is there an easy
way to do this?
TIA//
|
by: Eric Lindsay |
last post by:
I am trying to understand the differences between and uses of
persistent, default and alternate styles. I have read
http://www.w3.org/TR/REC-html40/present/styles.html section 14.3.2 on
specifying external style sheets in link using combinations of rel and
using or not using the title attribute.
I think I sort of understand rel="alternate stylesheet". It seems to be
able to act something like the media="print" or media="handheld" or...
|
by: Michael R |
last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form.
1st step: Create a textbox, send it to background and select the first color.
.ControlSouce =fRowNum(False)
.Name = RowNum
2nd step: Add the following function to the form module: (for row numbers)
Public Function fRowNum(Reset As Boolean) As Long
Static I As Integer
| |
by: doomsday123 |
last post by:
I want to add alternate text like on an html image to a
DataGridViewRow. Is it possible?
|
by: Charles Law |
last post by:
Ok. I haven't been around for a while, so I hope someone will come to my
rescue. I thought I had done this years ago, but I have scoured my code
snippets and can't find it.
I want my ListView control to have a different background colour on
alternate rows. I'm using VS2005.
Firstly, I'm surprised that I can't do it out of the box. But secondly, I
can't find a really simple one-liner that let's me do it by overriding
something.
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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,...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |