473,664 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Set the Currently Selected Row(s) to Font.Bold in MSFlexGrid?

nicebasic
91 New Member
I'm trying to find a new feature for MSFlexGrid.

As you know, we can change the BackColor of the Currently Selected Row(s) in MSFlexGrid at design time or at runtime. To change its BackColor at runtime, we can use the following code:

Expand|Select|Wrap|Line Numbers
  1. BackColorSel = vbRed
But I'm trying to find another feature. Let's assume that we have an MSFlexGrid on our form. Let's name it "Flex".

Now, is it possible to use "RowColChan ge" or "Scroll" events of "Flex" to cause the Currently Selected Row(s) be displayed with Bold Font? And when the Selected Row(s) change, the Unselected Row(s) change to Normal Font?

I think it's a rather difficult problem.

I have thought over it. Maybe we can read all the rows and change the Font Style of the Selected Rows. But, maybe there's a better way someone can suggest here.

Thank you for your help.
Jan 11 '11 #1
0 1552

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

Similar topics

10
30624
by: Darrell Wesley | last post by:
Where xlWs is an Excel.Worksheet and xlRG is an Excel.Range xlRG = xlWS.Cells(row, 7) xlRG.Font.Bold = True xlRG.Font.Color = 255 In VB6 you could just simply say xlRG.Font.Color = vbRed but in .net there is no constant vbRed and Color.Red gives an invalid format. Is there a set of enumerations of colors that will work here?
6
1408
by: trevor.niemack | last post by:
I have just done an application that will allow you to insert XML into a text box then do an xpath query to return the values against the node. I am just a beginner so for me this is really cool but I want to be able to get the nodes that returned information to be highlighted. This is an example of my code at current: Imports System.Xml Public Class Form1 Dim used As Boolean Private Sub Button1_Click(ByVal sender As System.Object,...
4
19547
by: Amy | last post by:
I need some help. I have this table with alternate row colors. Class gray and class white. I have javascript that do highlight when mouseover row ... and onclick to select row and highlight it with another color. Also created a class called "Selected". You can only select a row at a time. My problem is, if a row is preselected, when mouseover the selected row, the selected color is screwed. Until you click on the selected row once, the...
2
1800
by: (PeteCresswell) | last post by:
Got a continuous form with name, address, and so-forth. I'd like the name to become bold for the currently-selected row. The Format|Conditional Formatting menu seems limited to the control's having focus. Anything I can do in VBA? ....like in OnCurrent()? -- PeteCresswell
2
12393
by: David C | last post by:
I have a need to make a GridView row a different color (red) if a date exists on the row. I assume I would do this in the OnDataBound event. I know how to make a Cell(x) a different color but not a row. Thanks. David
3
2152
by: ajitkumar071 | last post by:
hi all .....please help me ... my problem is i m having a row by default.And validation works fine for this, But if i add an extra row to it.....even if i enter the values for the new added row i get error that -----i hav not entered the values. PLease find the solution...Below is the code i hav used....... <%@ page session="true"%> <html> <head><title=title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
1
4336
by: MiziaQ | last post by:
Hey, how can I delete an entire row from an MSFlexGrid table, and how can I allow the user to only select one row (i.e. not allow multiselection of rows ?) Thanks in advance, MiziaQ
3
2584
by: MiziaQ | last post by:
Hey, I would like to delete a row of data from my data file, though using an MSFlexGrid. I can currently delete any selected row, though it only deletes a row from the Grid, and not the entry itself. Please Help
1
1410
by: yaksandcows | last post by:
I've just begun developing my first ASP .NET website using VWD2008 with VB. I am querying an SQL database to fill a gridview. If the text displayed in a gridview cell = a certain value contained in another SQL table, i need the text to turn bold. I have been experimenting with RowDataBound and RowCreated events, but to no avail. Example of something i've tried: Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e...
0
8437
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
8861
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...
1
8549
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
8636
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...
0
7375
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, 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...
1
6187
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
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1759
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.