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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flexgrid, highlight row after update

Status
Not open for further replies.

vbmorton

Technical User
Dec 27, 2004
44
US
was wondering if anyone can assist me in solving this, first of all, is there away to select a row and it stay highlighted until another row gets selected?? other question is.. after the user updates that record and clicks update, is there away for after it comes back from doing the update on the sql server to highlight the field it just changed???

any directions would be helpful.. newbie here, still feeling my way around sorry if these questions are to basic.
 
Test various combinations of the .Highlight, .SelectionMode and .FocusRect properties. To highlight a row set them as follows.

.Highlight = 2 - With Focus
.SelectionMode = 1 - By Row
.FocusRect = 0 - None

zemp
 
zemp,

I changed those settings and i have a grid that has 3 columns in it.. when it highlights the row on the click it highlights entire row, but when i let go the click, it only leaves the last column highlighted, is there anyway it can leave entire row highlighted??

Thanks
 
I might have remebered the combination incorrectly. Just play with those properties until it works. Is there any code in the click event (or other event) that may be affecting this also?

zemp
 
txtPartNo.Text = grdPartMaster.Text
grdPartMaster.Col = 1
txtDescription.Text = grdPartMaster.Text
grdPartMaster.Col = 2
txtLocation.Text = grdPartMaster.Text

this is only code that is in that grid click event.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top