DataGrid - Highlighting Rows and Containing ProgressBars

  • Thread starter Thread starter Bunnist-Priest
  • Start date Start date
B

Bunnist-Priest

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.
 
Hi,

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

Ken
----------------




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.
 
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?)
 
Back
Top