Custom Gridview Filtershttp://forums.asp.net/t/969380.aspx/1?Custom+Gridview+FiltersMon, 06 Mar 2006 16:14:43 -05009693801218300http://forums.asp.net/p/969380/1218300.aspx/1?Custom+Gridview+FiltersCustom Gridview Filters <p>I am developing custom gridview with built in filter functionality in the header row.</p> <p>I was able to populate the textboxes in the headers of the gridview columns during&nbsp;Row Created event&nbsp;and add events/delegates to change the gridview information when the user changes the information in the textboxes. I've create special Event Filter_changed which is raised by the filter Text Box changes . Theis event is handled by the&nbsp;aspx page&nbsp;which hosts the custom gridview control. It works fine at this point.</p> <p>I am still faced with 2 problems which I am not sure how to deal with.</p> <p>1) I've&nbsp;added all the event handlers for the TextBox_Changed event of the textbox. This event does not fire when somebody just cleans the content of the TextBox instead of changing the contents. Why ? It is suppose to work this way ?</p> <p>2) I'd like to save the information typed in all filter textboxes during the postbacks. I've tried using ViewState but It only saves the information to the next postback. After that&nbsp; it is completely lost. I am setting ViewState variable&nbsp;name dynamically based on the names of the the textboxes, so it should be unique. Why do you think it is happening and what is the workaround ?</p> <p>Thanks</p> <p>Mikhail</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> 2006-03-06T16:14:43-05:00