Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I have a datagrid bound to a table.defaultview.

I am using the defaultview.rowfilter property to filter the items I see on the datagrid.

 

I manually parse the filter string to a : "event_st_date > 'dd-mm-yyyy' AND event_st_date < 'dd-mm-yyyy'" format, and assign that to my rowfilter.

 

Wierd thing is - on some computers it only with a 'dd-mm-yyyy' format and on others it only works with a 'mm-dd-yyyy' format.

 

I'm guessing its a framework revision issue, but all machines I checked were with the .Net 1.1 framework.

 

my only solution was to try either of these and chech the defaultview.count property for 0 rows, on such case - try the other option.

 

I'm guessing this will a bad habbit because when the database will be big enough I will have cases where a wrong filter will still yield results. (according to a wrong format)

is there a smarter way? anyone knows a reason for this?

Thanks , Yoni.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...