IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.40 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-01
[22:15]<azyfm>it loops over all the rows in the grid and sets the .DataSource for every cell...
[22:16]<svzz[wjzc]>that sure is a problem, you see any solution beside inheriting a lot of stuff
[22:16]<svzz[wjzc]>someone proposed me a floating combobox that i render whena cell gets the focus but i don't really like this idea personnally
[22:16]<zslyzj>Arild: Hm .. I might have to resort to using one of my 'prio MS support' tickets, then ;) I doubt many there can either, though. Thanks for trying :)
[22:18]<azyfm>StaZ[work], deriving your own cell/column is what looks best to me right now
[22:18]<svzz[wjzc]>Arild okay thanks for the tip :-/
[22:19]<rrd2uppnw>i wanted to extend the dictionary class, so i created an interface which implements both ienumerable<T>, and idictionary<int,T>... i added my one method that i wanted to add... then created a class that derives from this interface... now its telling me i have to implement all these other moethods from idictionary.. what gives? what am i doing wrong?
[22:19]<2fdrssnd>switch to php jaybuffe1
[22:19]<azyfm>StaZ[work]: "As an optimization technique, typically all the cells of the same type and in the same DataGridView share a single hosted editing control."
[22:20]<svzz[wjzc]>well that's what i was expecting...
[22:20]<svzz[wjzc]>Arild is there something i need to do to make the compiler optimize it like that?
[22:20]<azyfm>no, it's not a compiler thing
[22:21]<svzz[wjzc]>and you found that in VC# specs ?
[22:21]<azyfm>datagridview documentation
[22:21]<svzz[wjzc]>i must be doing something very wrong then
[22:22]<nrrxxrfn>anyone know how to filter html to be inserted into a mysql database in c# asp.net?
[22:23]<svzz[wjzc]>i akldready made a function that was doing that in VB
[22:24]<nrrxxrfn>oh?
[22:24]<nrrxxrfn>would you mind sharing it? i'm struggling to find anything
[22:24]<azyfm>StaZ[work]: it does share the combobox, apparently
[22:24]<azyfm>DataGridViewComboBoxCell.InitializeEditingControl
[22:24]<svzz[wjzc]>iterating the whole string, and filling a Buffer, when encountering a "<" it stoped filling the buffer but continued iterating until i hit a ">" then continue to fill buffer etc... was also checking for <br> to replace with chr(13)
[22:25]<rf2gzvgyg_zryr>i did this: http://pastebin.ca/110543 to find out what was the service that mine depended on, but i got the exception: "Invalid operation exception. The service NameOfService doesn't exists on the machine"
[22:25]<nrrxxrfn>staz[work]: ugh :)
[22:25]<zslyzj>Arild: how would you define "custom designers"
[22:25]<azyfm>designers that MS didn't write
[22:26]<zslyzj>if i want to explain it to a newbie.. how would I go and define it please
[22:26]<azyfm>uhm, "special designer support for custom components"
[22:26]<zslyzj>What is a "designer"? an object? :)
[22:26]<azyfm>the designer is the thing that makes VB6 developers happy
[22:27]<nnzjpfrr>that question get's my vote for "most stupid question of the year"...
[22:27]<zslyzj>thanks Arild
[22:28]<nnzjpfrr>uhm, cool...
[22:28]<nnzjpfrr>I just extracted a 2.56gb rar file...
[22:28]<nnzjpfrr>the content is 2.4gb of size...
[22:29]<pzrrnrvqt0wr>*yawn*
[22:29]<pzrrnrvqt0wr>you know, i think that a GPL'ed VB6 compiler would prove to be very profitable right now.
[22:30]<svzz[wjzc]>zachhale here : http://rafb.net/paste/results/nKOoiD44.html <- this is getting the first X characters of a string while ignoring the HTML... (X = vLength) you can translate that in c# (and this one doesn'T make <br> a carriage return)
[22:31]<gjrvcxnne>eh
[22:31]<gjrvcxnne>lol
[22:31]<pzrrnrvqt0wr>hey
[22:31]<gjrvcxnne>whats up
[22:31]<azyfm>StaZ[work]: I'm sure it will please you to hear that I have the exact opposite problem at work
[22:31]<pzrrnrvqt0wr>GoatCheez: lamenting about the code i wrote today.
[22:31]<pzrrnrvqt0wr>it was horrible
[22:31]<gjrvcxnne>lol
[22:31]<pzrrnrvqt0wr>the boss made me do it.
[22:31]<svzz[wjzc]>lol you mean you want different datasource depending on rows and you can't do it?
[22:31]<pzrrnrvqt0wr>i actually wrote a function to justify right a string
[22:31]<azyfm>there's a custom combobox column, which is shared among all rows
[22:31]<pzrrnrvqt0wr>and pad the right with zeros
[22:31]<gjrvcxnne>wtf
[22:32]<gjrvcxnne>u mean left?
[22:32]<azyfm>but I want the items to be different for each row
[22:32]<pzrrnrvqt0wr>no, right.
[22:32]<pzrrnrvqt0wr>GoatCheez: i'm making a tool for a credit union
[22:32]<pzrrnrvqt0wr>well, i work in a bank
[22:32]<svzz[wjzc]>Arild i see lol... >_<
[22:32]<gjrvcxnne>how do you right justify a string by padding the right
[22:32]<pzrrnrvqt0wr>you don't quite.
[22:32]<azyfm>Resetting the datasource on the column DOES NOT WORK
[22:32]<pzrrnrvqt0wr>you make a new string, you write 0s in it
[22:32]<svzz[wjzc]>nope you'd need a IBindingList that raises ListChanged event
[22:32]<pzrrnrvqt0wr>and then you begin at the end and copy backwards.
[22:33]<azyfm>since the values in that column in some rows don't exist in all the various .DataSources I set the ComboBox to
[22:33]<pzrrnrvqt0wr>i did that in 4 lines. i wanna see if anybody can beat me to it.
[22:33]<gjrvcxnne>so like, you have a set length, and the string gets padded to the left with 0's?
[22:33]<pzrrnrvqt0wr>yeah
[22:33]<gjrvcxnne>that's a 1 liner
[22:34]<vj2nxe>holy shit
[22:34]<vj2nxe>requiem for a dream
[22:34]<pzrrnrvqt0wr>show ne.
[22:34]<vj2nxe>is the craziest movie ever.
[22:34]<gjrvcxnne>ok, gimme 1 sec...
[22:34]<pzrrnrvqt0wr>tobehz: requiem for a dream <3
[22:34]<pzrrnrvqt0wr>GoatCheez: given '12 ' you got to produce '0000012'
[22:34]<azyfm>StaZ[work]: ListChanged wouldn't help me
[22:34]<vj2nxe>padleft?
[22:35]<pzrrnrvqt0wr>ther'es a padleft function?
[22:35]<gjrvcxnne>am i given the length, or do I use the orig length
[22:35]<vj2nxe>yes
[22:35]<gjrvcxnne>lol
[22:35]<vj2nxe>should be
[22:35]<gjrvcxnne>told ya it was a 1 liner
[22:35]<pzrrnrvqt0wr>GoatCheez: you can get the .Length from the string.
[22:35]<vj2nxe>you specify the input string and the full padded length, i believe
[22:35]<pzrrnrvqt0wr>ooooh! msdn for free!
[22:35]<gjrvcxnne>Project: i want to make sure i do exactly as you want it in one line
[22:36]<gjrvcxnne>should i just make it a function?
[22:36]<pzrrnrvqt0wr>as i said: input: '12 ', output: '0000012'
[22:36]<vj2nxe>myString.PadLeft(staticLength, '0');
[22:36]<pzrrnrvqt0wr>function header and blackets don't count as lines.
[22:37]<vj2nxe>easy peasy
[22:37]<pzrrnrvqt0wr>heh
[22:37]<pzrrnrvqt0wr>LOL
[22:37]<pzrrnrvqt0wr>there's padleft
[22:37]<pzrrnrvqt0wr>fuck
[22:37]<pzrrnrvqt0wr><-- dumbass.
[22:37]<vj2nxe>i told you it was there
[22:37]<gjrvcxnne>public static string PadToLeft(string input)







