Products in that State and Category are foreign keys, I have set relation and now in CGridView its values will display , But in search , when search with its values result is not correct, I think its id gets posted, How I can solve this. Also see the screen shot this will give you a clear idea.
in _form.php while loading the category and state control you should change the input to select box, based on the selected value change the save action.