Hello Friends

Could some one got a clue to these questions:
How to search the Msflexgrid like searching the list
using API
How size the column width based on the longest data record

Appreciate your help