entitydatasource - Ordering Entity datasource wilth Nulls first -


i have gridview in column has both alphabets , nulls values coming database(oracle). when perform sort operation on column sorting data in ascending null values coming @ last. after analysis came know oracle default sorts data nulls @ end.

is there way can override default behaviour?

i tried setting orderby property of entity data source below.

    <asp:entitydatasource id="griddatasource" runat="server" enabledelete="true" enableupdate="true"             connectionstring="name=hqadataentities" defaultcontainername="hqadataentities" orderby="case              when it.[gnrc_lkup_category] null 0              else 1                   end,it.[gnrc_lkup_category]"             enableflattening="false" enableinsert="true" entitysetname="gen_lookup"> 

but woking on initial page load, when perform sort clicking grid header not performing sort correctly.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -