WPF Datagrid itemsource:This works but is it the best way ? plz [modified]
-
DataTable dt = con.Fromdbase("Select * from DailyTrans"); dg.ItemsSource = (System.Collections.IEnumerable)dt.DefaultView; dg is the WPF Datagrid plz the above code works fine in my WPF c# app but i want to know weda this is the best way of setting the data location for a grid dynamically i rely don want to use the item binding..cos i want more control Thanks
modified on Sunday, August 23, 2009 12:07 PM
-
DataTable dt = con.Fromdbase("Select * from DailyTrans"); dg.ItemsSource = (System.Collections.IEnumerable)dt.DefaultView; dg is the WPF Datagrid plz the above code works fine in my WPF c# app but i want to know weda this is the best way of setting the data location for a grid dynamically i rely don want to use the item binding..cos i want more control Thanks
modified on Sunday, August 23, 2009 12:07 PM
prubyholl wrote:
weda
prubyholl wrote:
i rely don
This makes you look like a retard. There are 101 keys on your keyboard. Use them.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
prubyholl wrote:
weda
prubyholl wrote:
i rely don
This makes you look like a retard. There are 101 keys on your keyboard. Use them.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
wow..wot a way to answer a genuine question. thanks for wasting you time typing... some codes are not optimized and would require much more processor time than others though not significant for humans to realise but it can surely be seen in very large db programs thats wy i asked if any one could help comment..weda its the best maybe i should have added 'Optimized' and i guess 'u answered ####quite#### well'
-
wow..wot a way to answer a genuine question. thanks for wasting you time typing... some codes are not optimized and would require much more processor time than others though not significant for humans to realise but it can surely be seen in very large db programs thats wy i asked if any one could help comment..weda its the best maybe i should have added 'Optimized' and i guess 'u answered ####quite#### well'
prubyholl wrote:
wot a way
prubyholl wrote:
weda its the best
I didn't see anything wrong with your code, but, again, this sort of txt speak when you have a full keyboard in front of you, makes you look stupid. It has a real impact in if people will decide you're worth trying to help.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
prubyholl wrote:
wot a way
prubyholl wrote:
weda its the best
I didn't see anything wrong with your code, but, again, this sort of txt speak when you have a full keyboard in front of you, makes you look stupid. It has a real impact in if people will decide you're worth trying to help.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Alright..... At last u have answered me now.. though i still don see wots wrong in tryna find da most optimized way of doing things..i just don get my faults here. and your tone-am sure thats how u were brought up.
prubyholl wrote:
though i still don see wots wrong in tryna find da most optimized way
I'm sorry, the more you talk like that, the more I think you're a moron. There's a standard of professional conduct that does not include txt speak. This is fine for your 14 year old girlfriend. Not fine for posting in professional forums.
prubyholl wrote:
am sure thats how u were brought up.
Yes, I was brought up to uphold standards of behaviour, and not pander to the lowest common denominator. By all means, talk like a retard. You'll notice I'm the only person who answered you. I'd like you to at least consider that if you spoke like a grown up, you might get more replies and people wouldn't write you off as a script kiddie.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
prubyholl wrote:
though i still don see wots wrong in tryna find da most optimized way
I'm sorry, the more you talk like that, the more I think you're a moron. There's a standard of professional conduct that does not include txt speak. This is fine for your 14 year old girlfriend. Not fine for posting in professional forums.
prubyholl wrote:
am sure thats how u were brought up.
Yes, I was brought up to uphold standards of behaviour, and not pander to the lowest common denominator. By all means, talk like a retard. You'll notice I'm the only person who answered you. I'd like you to at least consider that if you spoke like a grown up, you might get more replies and people wouldn't write you off as a script kiddie.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Oh i didnt know u were 40 years and you talked like that .. Frustration must be killing you. Anyway thanks for letting me know am not supposed to use txt here.
Wow! You finally got the message! You may care to note that many people who use these forums do not have English as their first language. So when they see statements like "plz u help me weda it wrk" think that is how to write their questions. The result being much frustration for them as nobody can understand what they are talking about. You may like to re-read the forum guidelines again on how to phrase your questions properly.
-
Wow! You finally got the message! You may care to note that many people who use these forums do not have English as their first language. So when they see statements like "plz u help me weda it wrk" think that is how to write their questions. The result being much frustration for them as nobody can understand what they are talking about. You may like to re-read the forum guidelines again on how to phrase your questions properly.