vb6 - Highlight record in Datagrid through quick search -
i want highlight particular record in datagrid
when record has been searched. quick search, user writes name , record instantly found. far have arrow pointing @ record need highlighted completely. images provided further explanation. code:
private sub txtquicksearch_change() dim varbookmark variant studenttable varbookmark = .bookmark if (.selbookmarks.count <> 0) .selbookmarks.remove 0 end if adodc1.recordset.movefirst adodc1.recordset.find "[last name] '" & txtquicksearch.text & "'" if frmstudents.adodc1.recordset.bof .selbookmarks.add adodc1.recordset.bookmark end if end end sub
@jim hewitt, fixed problem, needed add statement: if not frmstudents.adodc1.recordset.bof , not frmstudents.adodc1.recordset.eof then
Comments
Post a Comment