473,657 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid and text selection

Hi all,

I've got a datagrid which is readonly and is used to list a resultset
from a query. From this set the user can select one and details of that
show up. What annoys me is that I can't seems to get rid of the text
selection stuff. If you click in the grid on any text it selects it,
navigating the grid with your keyboard shows a gray background for the
cell and a blue selection for the text in that cell.

Now the gray background is basically all I want. How do I get rid of
that blue selection?
--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #1
19 1326
Hi Rinze

Have you tried Enabled = False?

Nigel Armstrong

"C-Services Holland b.v." wrote:
Hi all,

I've got a datagrid which is readonly and is used to list a resultset
from a query. From this set the user can select one and details of that
show up. What annoys me is that I can't seems to get rid of the text
selection stuff. If you click in the grid on any text it selects it,
navigating the grid with your keyboard shows a gray background for the
cell and a blue selection for the text in that cell.

Now the gray background is basically all I want. How do I get rid of
that blue selection?
--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #2
Hi Rinze

Have you tried Enabled = False?

Nigel Armstrong

"C-Services Holland b.v." wrote:
Hi all,

I've got a datagrid which is readonly and is used to list a resultset
from a query. From this set the user can select one and details of that
show up. What annoys me is that I can't seems to get rid of the text
selection stuff. If you click in the grid on any text it selects it,
navigating the grid with your keyboard shows a gray background for the
cell and a blue selection for the text in that cell.

Now the gray background is basically all I want. How do I get rid of
that blue selection?
--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #3
Rinze,

Is this 2005 because you are talking about a resultset?
I get tabbing through the dataset all blue selected fields.

Cor

"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl>
Hi all,

I've got a datagrid which is readonly and is used to list a resultset from
a query. From this set the user can select one and details of that show
up. What annoys me is that I can't seems to get rid of the text selection
stuff. If you click in the grid on any text it selects it, navigating the
grid with your keyboard shows a gray background for the cell and a blue
selection for the text in that cell.

Now the gray background is basically all I want. How do I get rid of that
blue selection?
--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #4
Rinze,

Is this 2005 because you are talking about a resultset?
I get tabbing through the dataset all blue selected fields.

Cor

"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl>
Hi all,

I've got a datagrid which is readonly and is used to list a resultset from
a query. From this set the user can select one and details of that show
up. What annoys me is that I can't seems to get rid of the text selection
stuff. If you click in the grid on any text it selects it, navigating the
grid with your keyboard shows a gray background for the cell and a blue
selection for the text in that cell.

Now the gray background is basically all I want. How do I get rid of that
blue selection?
--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #5
If you set enabled=False then you can't select a cell. I guess I'm
looking for behaviour like the old FlexGrid. Click a cell and the entire
cell is blue, not just the text with a gray background.

Nigel Armstrong wrote:
Hi Rinze

Have you tried Enabled = False?

Nigel Armstrong

"C-Services Holland b.v." wrote:

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #6
If you set enabled=False then you can't select a cell. I guess I'm
looking for behaviour like the old FlexGrid. Click a cell and the entire
cell is blue, not just the text with a gray background.

Nigel Armstrong wrote:
Hi Rinze

Have you tried Enabled = False?

Nigel Armstrong

"C-Services Holland b.v." wrote:

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #7
No, I'm using 2002. I gues I should have said dataset which is bound to
the datagrid.

Cor Ligthert wrote:
Rinze,

Is this 2005 because you are talking about a resultset?
I get tabbing through the dataset all blue selected fields.

Cor

"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl>
Hi all,

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #8
No, I'm using 2002. I gues I should have said dataset which is bound to
the datagrid.

Cor Ligthert wrote:
Rinze,

Is this 2005 because you are talking about a resultset?
I get tabbing through the dataset all blue selected fields.

Cor

"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl>
Hi all,

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #9
Rinze,

I am using 2003 and get all blue selections when I tab through the datagrid
using the keyboard, did you something special or maybe it is something from
2002 what I cannot see now.

Cor

"C-Services Holland b.v."

...
No, I'm using 2002. I gues I should have said dataset which is bound to
the datagrid.

Cor Ligthert wrote:
Rinze,

Is this 2005 because you are talking about a resultset?
I get tabbing through the dataset all blue selected fields.

Cor

"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl>
Hi all,

--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #10

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

Similar topics

8
7903
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the header of the datagrid in the "ItemDataBound" method of the grid. However, once, they are added in the grid, i seem to lose the event handler for the same control. Is there anyone who has tried this before and knows why this is hapenning ??
2
3261
by: magister | last post by:
Hello, I have xml like this.... <test> <question>sdfsa</question> <section><question>43ga</question> <question>asdf</question> </test>
3
3024
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can download a fully working C# sample with the Northwind.mdb here: www.insightgis.com.au/web/stuff/DataGridCombo.zip
6
1706
by: BBFrost | last post by:
I'm using Net 1.1 (2003) SP1 & Windows 2000 Here's the issue ... Rows 12 thru 24 are selected in a datagrid. The user now unselects rows 12 thru 24 and selects rows 45 thru 70 ??? How can I tell that the user has reselected a different set of rows in a datagrid.
6
3317
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on different rows in the datagrid, the textbox content doesn't change to reflect the change. How can I address this? Also, If the user change the text in the textbox then how do I refesh the display in the datagrid to reflect the changes? ...
5
3525
by: Lie | last post by:
Hi all, I have problem in getting selectedindex of multiple listbox selection in a datagrid. I have a listbox with multiple selection mode inside datagrid. In Edit mode, I need to get back all selected items of that listbox and display it. can anyone help? Thanks
3
2360
by: Zachary Hilbun | last post by:
I'm using a DataGrid control in a web form. I can display it using binding but when I click on any of the items there is no feedback that that row has been selected. I changed SelectedItemStyle but the changes do not appear when a row is clicked. What do I need to do to get it to do selection? =================================================== Zachary Hilbun Software Consultant http://www.vianova.com Via Nova OpenGL,...
0
808
by: C-Services Holland b.v. | last post by:
Hi all, I've got a datagrid which is readonly and is used to list a resultset from a query. From this set the user can select one and details of that show up. What annoys me is that I can't seems to get rid of the text selection stuff. If you click in the grid on any text it selects it, navigating the grid with your keyboard shows a gray background for the cell and a blue selection for the text in that cell. Now the gray background is...
13
2472
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for them. In a plain vanilla DataGrid, when you click on the RowHeader, the appropriate row changes colors. I ASSUME this should be done in the Paint (or PaintText) override of the DataGridColumnStyle in question. My problem is that I don't know...
0
8392
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
8732
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...
0
7324
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
6163
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
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
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...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1611
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.