By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,241 Members | 2,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,241 IT Pros & Developers. It's quick & easy.

DataGrid - Highlighting Rows and Containing ProgressBars

P: n/a


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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a


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 discussion thread is closed

Replies have been disabled for this discussion.