Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

DataGrid Button Property Left and top of cell

When the button is pressed I want to put a Combo Box over
the cell where the button is. I need to know how to get the
left and top of the cell that the button is on to position
the combo box. The only left and top I can find is for the
column not the cell.
0
DaveArnold
Asked:
DaveArnold
  • 2
1 Solution
 
dabelleiCommented:
The data grid does'nt have a property for leftcell or something like it.  The only way i found for that is the property RowHeight and colwidth .

With the top and left of the grid you can now calculate the position of the cell on the screen and then place your combo box.
0
 
DaveArnoldAuthor Commented:
Good Answer but how do I know which of the visible cells is
the one that was pressed. The row property tells me which
row within the record set is current but not that that row
is in the 5'th visible cell.
0
 
DaveArnoldAuthor Commented:
Answered my own second question  use the First Row Property

Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now