Click here to Skip to main content
15,893,923 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connection to MySQL Pin
N a v a n e e t h9-Jul-08 20:22
N a v a n e e t h9-Jul-08 20:22 
AnswerRe: Connection to MySQL Pin
User 66589-Jul-08 20:24
User 66589-Jul-08 20:24 
GeneralRe: Connection to MySQL Pin
D i x y9-Jul-08 20:34
D i x y9-Jul-08 20:34 
GeneralRe: Connection to MySQL Pin
User 66589-Jul-08 20:45
User 66589-Jul-08 20:45 
AnswerRe: Connection to MySQL Pin
sacr839-Jul-08 22:58
sacr839-Jul-08 22:58 
QuestionHow to rename a file? Pin
Saiyed Alam9-Jul-08 19:31
Saiyed Alam9-Jul-08 19:31 
AnswerRe: How to rename a file? Pin
User 66589-Jul-08 20:20
User 66589-Jul-08 20:20 
Questionbindingsource.filter syntax question Pin
crash8939-Jul-08 18:39
crash8939-Jul-08 18:39 
I've done some looking around and I'm a bit confused


Here is an example of the data that's in the binding source

[IMG]http://i38.tinypic.com/xfoimp.png[/IMG]


what i want to do is sort on the 3rd row ( 4 or 3) and then sort by the date ( to see if the record is before a certian time


my idea to do this was to

filter the BS
BS.count
then unfiltered the BS


The problem i keep running into is that i cant say that i want Just 4 or Just 3


What I've come up with so far is

private int deadlineCount(DateTime Time, int LeagueID)
        {
            int total = 0;
            string league;
            if (LeagueID == 99)
            {
                league = "";
            }
            else
            {
                league = LeagueID.ToString();
            }



            BS.Filter = string.Format("LeagueID >= '{0}' and LeagueID <= '{0}'and [End] <#12/30/1899 {1}#", league, Time.ToString("h:mm tt"));
            total = BS.Count;
            BS.Filter = "";
            
            return total;
        
        }



But i keep running into problems that i cant use any operator ( like ,> ,= ,>=,) becuase it can not preform X onn system.int32 and system.string.


I've been looking around but all the example seem to be for strings or dates.



Questiontimer does not work Pin
benjamin yap9-Jul-08 18:13
benjamin yap9-Jul-08 18:13 
AnswerRe: timer does not work Pin
mav.northwind9-Jul-08 19:09
mav.northwind9-Jul-08 19:09 
GeneralRe: timer does not work Pin
benjamin yap9-Jul-08 19:34
benjamin yap9-Jul-08 19:34 
GeneralRe: timer does not work Pin
Seishin#9-Jul-08 21:58
Seishin#9-Jul-08 21:58 
QuestionTHE PRINTER Pin
Silvyster9-Jul-08 17:53
Silvyster9-Jul-08 17:53 
AnswerRe: THE PRINTER Pin
Ajay.k_Singh9-Jul-08 22:33
Ajay.k_Singh9-Jul-08 22:33 
GeneralRe: THE PRINTER Pin
Silvyster10-Jul-08 1:59
Silvyster10-Jul-08 1:59 
Questionclose form Pin
nelsonpaixao9-Jul-08 14:18
nelsonpaixao9-Jul-08 14:18 
AnswerRe: close form Pin
Christian Graus9-Jul-08 15:21
protectorChristian Graus9-Jul-08 15:21 
AnswerRe: close form Pin
Nirandas9-Jul-08 22:59
Nirandas9-Jul-08 22:59 
Questioncancel button [X] Pin
nelsonpaixao9-Jul-08 14:07
nelsonpaixao9-Jul-08 14:07 
AnswerRe: cancel button [X] Pin
PIEBALDconsult9-Jul-08 14:58
mvePIEBALDconsult9-Jul-08 14:58 
Generalcancel button [X] Pin
nelsonpaixao9-Jul-08 15:14
nelsonpaixao9-Jul-08 15:14 
GeneralRe: cancel button [X] Pin
Luc Pattyn9-Jul-08 15:21
sitebuilderLuc Pattyn9-Jul-08 15:21 
GeneralRe: cancel button [X] Pin
PIEBALDconsult10-Jul-08 4:19
mvePIEBALDconsult10-Jul-08 4:19 
GeneralRe: cancel button [X] Pin
PIEBALDconsult10-Jul-08 12:40
mvePIEBALDconsult10-Jul-08 12:40 
Questiontitle bar Pin
nelsonpaixao9-Jul-08 14:01
nelsonpaixao9-Jul-08 14:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.