473,804 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGrid - Highlighting Rows and Containing ProgressBars



Hello Everyone,

My first predicament is that I want to make a colomn of
my vb.net DataGrid a ProgressBar colomn. (full of Pr.Bars).
Is it that difficult? Is there a code example?

using -
Dim ColStyle as New DataGridTextBox Colomn
ColStyle.TextBo x.Contains(Prog ressBar1)
didn't show anything inside.

My second issue is trying to make a full row selection
in the DataGrid, i.e. to highlight the entire selected row.
For a DataGrid_MouseD own Event, I use:
dim hti as DataGrid.HitTes tInfo
hti = DataGrid.HitTes t(New Point(e.X, e.Y))
Select Case hti.Type
Case ....Type.Cell
DataGrid.Select (hti.Row)

And it works fine, except for when you click on that cell
a second time. In that scenario the Highlight disappears
and the program de-selects the row. Can I avoid that?
I checked when it responds to "if ...type.Cell" and I
found out it's ANYWHERE on the DataGrid. Any Ideas?
Also, if you use the Down-Key on the keyboard after the
last cell, the highlight disappears again.
I will appreciate any help and guidance.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
2 1645
Hi,

Take look at the extended grid.
http://dotnet.leadit.be/extendeddata...?category=Home

Ken
----------------
"Bunnist-Priest" <Di*******@Hotm ail.com> wrote in message
news:ez******** ******@TK2MSFTN GP15.phx.gbl...


Hello Everyone,

My first predicament is that I want to make a colomn of
my vb.net DataGrid a ProgressBar colomn. (full of Pr.Bars).
Is it that difficult? Is there a code example?

using -
Dim ColStyle as New DataGridTextBox Colomn
ColStyle.TextBo x.Contains(Prog ressBar1)
didn't show anything inside.

My second issue is trying to make a full row selection
in the DataGrid, i.e. to highlight the entire selected row.
For a DataGrid_MouseD own Event, I use:
dim hti as DataGrid.HitTes tInfo
hti = DataGrid.HitTes t(New Point(e.X, e.Y))
Select Case hti.Type
Case ....Type.Cell
DataGrid.Select (hti.Row)

And it works fine, except for when you click on that cell
a second time. In that scenario the Highlight disappears
and the program de-selects the row. Can I avoid that?
I checked when it responds to "if ...type.Cell" and I
found out it's ANYWHERE on the DataGrid. Any Ideas?
Also, if you use the Down-Key on the keyboard after the
last cell, the highlight disappears again.
I will appreciate any help and guidance.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #2


thanx man! I really appreciate it.
I'll check it up, seems fantastic! very well
crafted, this Extended DataGrid.

Any thoughts on my Highlighting queries?
Anyone?

(why does the Type.Cell always occure?)
(how do I avoide un-selecting by the 2nd click?)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3

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

Similar topics

0
1026
by: amber | last post by:
Hello, I am having trouble with a datagrid. I received help online to create the datagrid the way I needed it, so I'm not entirely clear on how/why it works. I use the following code to populate the rows of my datagrid. The variable _arrstr contains my column headers. For i = 0 To (_dataset1.Tables(0).Rows.Count) - 1
2
2153
by: ___Newbie___ | last post by:
Hello, I'm looking for a control that can display rows and columns similar to a table but highlight the entire row during selection? Listbox highlights the entire row but doesn't support multiple columns. DataGrid on the other hand supports multiple columns but I can't able to highlight the entire row. It does a column and row level highlighting. Does anybody know other options? Thanks.
3
4889
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that the best method? Do you have a sample of how to do this?
0
1183
by: back2grid | last post by:
I'm basically looking for highlighting a datagrid row on selection a radio button control. the problem i'm having is that the event sender(radio btn) i'm getting is functioning as a checkbox. my code is highlighting all rows selected previously. i'm using a metabuilder custom rowselector column and other RB controls that implement grouping. any code would be greatly appreciated
4
2281
by: WebMatrix | last post by:
Hello, I need to extend functionality of ASP.NET datagrid. Onmouse over, the whole row needs to be highlighted. OnClick highlighted color must remain, and the value of one of the columns must be set to innerHTML property of a <div> tag (no postBack). Has anyone done anything like that?
1
3356
by: Bob Loveshade | last post by:
I am looking for an example that shows how to select and highlight multiple rows in a DataGrid. My DataGrid is part of a Web User Control which is contained in an ASPX page. I haven't been able to find any examples which demonstrate how to do this. My Code:
0
326
by: mark | last post by:
What I have is three forms. Form one with buttons 1, 2 and 3; and forms 2 and 3 with datagrids. Button 1 populates arrays a(i,j) and b(i,j) with values. Button 2 creates a datatable containing the a(i,j) array then adds that table to a dataset which is in turn bound to a datagrid in an instance of form 2 called matrixa. Button 3 creates a datatable containing the b(i,j) array then adds that table to a dataset which is in turn bound to...
13
2500
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...
10
2755
by: mark | last post by:
I have a simple windows application that has a function to read a csv file and enter the values into an array A as double(,). Also, an instance of form 2 (which has a DataGrid) is created and the values of A are used to populate the grid via a DataView. The instance of form2 is called Matrix_A . The basic layout is as follows: #Region "Globals Dim A As Double(,) Dim Matrix_A As form2 #End Region
0
9704
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
10562
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
10319
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
10070
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
9132
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...
0
6845
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
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
3
2978
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.