datetime - Filtering ASPxGridView by a ASPxDateEdit using Control -
i want filter gridview choosing date , time in dateedit. put button has databind() controls. query of datasource of gridview has clause. has control connecting gridview , dateedit. when test query, works fine. enabled buttonclick event , wrote following code that:
protected void aspxbutton2_click(object sender, eventargs e) { dateedit.databind(); sqldatasource.databind(); aspxgridview.databind(); }
as can see bound stuff need. no items displayed when choose date , time , click button. did miss something? appreciate if help.
i'm devexpress asp.net technical evangelist, mehul.
there many ways can approach recommend using aspxgridlookup control gives grid within dropdown: http://demos.devexpress.com/aspxgridviewdemos/aspxgridlookup/filterservermode.aspx
you can use built-in features: http://www.devexpress.com/support/center/p/q267406.aspx or try sample: http://www.devexpress.com/support/center/e/e2040.aspx
some of these may well: http://search.devexpress.com/?q=filter+external&p=t4|p5|57
to answer original question, sample shows how databind on external button click: http://www.devexpress.com/support/center/e/e1662.aspx
thanks, hope helps.
Comments
Post a Comment