473,395 Members | 1,393 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,395 software developers and data experts.

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 DataGridTextBoxColomn
ColStyle.TextBox.Contains(ProgressBar1)
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_MouseDown Event, I use:
dim hti as DataGrid.HitTestInfo
hti = DataGrid.HitTest(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 1624
Hi,

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

Ken
----------------
"Bunnist-Priest" <Di*******@Hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP15.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 DataGridTextBoxColomn
ColStyle.TextBox.Contains(ProgressBar1)
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_MouseDown Event, I use:
dim hti as DataGrid.HitTestInfo
hti = DataGrid.HitTest(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
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...
2
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...
3
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...
0
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...
4
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...
1
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...
0
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...
13
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...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.