Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set CellPicture in MSFlexgrid without selecting the cell

Status
Not open for further replies.

dennis22

Programmer
Oct 8, 2002
32
Hello experts!

I've been able to set images/pictures in MSFlexgrid's Cellpicture using the sample code posted here at Tek-tips. But is it possible to set pictures without selecting the cell, something like TextMatrix(0, nCol), just specify the row and column. Or maybe I'm using the CellPicture syntax in a wrong way.

Any ideas would be a great help.
Thanks!!!
 
Not that I have been able to find. But in all honesty I have not tried too hard. I tried once with the .colsel and .rowsel properties without success.

If you are trying to avoid firing the entercell and leavecell events (or other events), each time you change the .col or .row, in order to assign a picture, you can set a boolean flag to skip those events when you are setting the .cellpicture property. I use the images of an unchecked check box and a checked check box to simulate a boolean field in the grid. As long as I control when not to fire the entercell and leavecell events then it all works great.

zemp
 
Thanks for the quick reply zemp! Maybe I'll do more search about this. Thanks again.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top