steven shingler
Posts
-
c# Web Text Generator? -
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
datagrid sorting hasslesHi all, I've got a datagrid. I have a function which selects certain rows in a datagrid thus: public void selectRows(string key, string columnName) { int count = 0; foreach(DataRow dr in ((DataView)dg_aspects.DataSource).Table.Rows) { if(dr[columnName].ToString()==key) dg_aspects.Select(count); else dg_aspects.UnSelect(count); count++; } } This works, but when the user clicks a column header to sort the datagrid, the selected columns remain at the same index. For example - if the top two rows are selected initially. After sort - the top two rows are still selected, but the datagrid is showing different results in those rows. It appears that the DataTable the DataGrid is showing, and the DataDource we work with aren't the same where sorting is concerned. Does anyone know how to get a handle on the sorted DataTable? I hope that's clear - thanks for taking a look Steven
-
mono project lead guy interview -
Brilliant....[Message Deleted]
-
Late ReviewHi all, Did anyone catch that book by Paul Graham - "Hackers and Painters"?here^ V. interesting book about Graham's work, Yahoo Store, Lisp and Web Apps. Well I just wrote a rather belated review of it: here^ It's as much a review of responses to the book as the book itself. At least that's my excuse for the 9 month delay in writing it ;) Anyway - check it out and shout what you think! Steven
-
Swelling Ego[Message Deleted]
-
[Message Deleted][Message Deleted]
-
Essay writingI second that. Paul Graham's style of writing is excellent, if a teeny-weeny bit American ;) However, the Daddy of writing articles has to be: George Orwell's Politics and the English Language^ We are busy people so here are the main points: ;) (i) Never use a metaphor, simile or other figure of speech which you are used to seeing in print. (ii) Never use a long word where a short one will do. (iii) If it is possible to cut a word out, always cut it out. (iv) Never use the passive where you can use the active. (v) Never use a foreign phrase, a scientific word or a jargon word if you can think of an everyday English equivalent. (vi) Break any of these rules sooner than say anything outright barbarous.
let the stormy clouds chase everyone from the place
-
LOTDHow many d'you know in Sweden? ;)
-
Don't Buy Anything From Apple in the UK[Message Deleted]
-
Don't Buy Anything From Apple in the UK[Message Deleted]
-
Introverts and extroverts[Message Deleted]
-
Version control system, CVS or SVN?Hi Marc Ok I shall attempt to explain: In the CVSROOT repository (which is installed as part of CVS) there is a file called loginfo. There's a whole load of stuff about this file here: ^ You can check out CVSROOT to your client machine just like any other repository. In loginfo you can put a line like this: ^TheRep mail -s %s fred,bob,joe ^MyRep - means do when it is a check in on this repository CVS pipes the loginfo commit message into mail, and you can use whatever mail flags you like . Here we are using -s for subject line and %s is the filenames that have just been checked in. Then we have mail aliases set up for our users, fred bob and joe. The end result here is that whenever someone checks in, fred bob and joe all get mails. The subject line of the mail is the filenames, the body is the filenames plus the log message. We find it very useful to use the log messages as a place to communicate what we have changed, why we've done what we've done etc. Clear as mud? :) Best Wishes Steven
-
Version control system, CVS or SVN?Hi Marc Probably I'm misunderstanding, but... Are you wanting an email to go out to everyone on the developement team each time one of the said team commits a file into CVS? We've got this by using the loginfo file in the CVSROOT repository to call the server Mail program to send the mails. A line in loginfo might look like this: ^TheRep mail -s %s fred,bob,joe If this looks like it might be helpful let me know and I'll quiz the guy who set it up for more details. Best Wishes Steven
-
Milk substitute[Message Deleted]
-
Wow! What a life[Message Deleted]
-
From the letters page of The Metro[Message Deleted]