Click here to Skip to main content
16,017,261 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Dumb Button Question alert! Pete Can you look at this for him? Pin
Pete O'Hanlon16-Mar-08 10:05
mvePete O'Hanlon16-Mar-08 10:05 
GeneralRe: Dumb Button Question alert! Pete Can you look at this for him? Pin
Jammer16-Mar-08 10:08
Jammer16-Mar-08 10:08 
GeneralThe killer question Pin
Ed.Poore13-Mar-08 9:52
Ed.Poore13-Mar-08 9:52 
GeneralRe: The killer question Pin
User 27100913-Mar-08 11:35
User 27100913-Mar-08 11:35 
GeneralRe: The killer question Pin
Ed.Poore13-Mar-08 11:40
Ed.Poore13-Mar-08 11:40 
GeneralRe: The killer question Pin
User 27100913-Mar-08 15:24
User 27100913-Mar-08 15:24 
GeneralRe: The killer question Pin
Ed.Poore13-Mar-08 15:49
Ed.Poore13-Mar-08 15:49 
GeneralRe: The killer question Pin
Pete O'Hanlon14-Mar-08 2:21
mvePete O'Hanlon14-Mar-08 2:21 
2 thoughts. 1 - do this in exactly the way that Karl suggested and create your own control, or 2 - use an Extension method that would look something like this:
public static void NullableDataSource<T>(this ComboBox source, IList<T> binding) 
  where T : class, new()
{
  if (binding != null)
  {
    binding.Insert(0, "<Null>");
  }
  source.DataSource = binding;
}
I've not tried this out, I'm just typing the code off the top of my head, but there's no reason that this (or something like this) wouldn't work.


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: The killer question Pin
Ed.Poore14-Mar-08 3:28
Ed.Poore14-Mar-08 3:28 
GeneralError Help Pin
Jammer13-Mar-08 2:37
Jammer13-Mar-08 2:37 
GeneralRe: Error Help Pin
User 27100913-Mar-08 3:36
User 27100913-Mar-08 3:36 
GeneralRe: Error Help Pin
Jammer13-Mar-08 3:47
Jammer13-Mar-08 3:47 
GeneralRe: Error Help Pin
User 27100913-Mar-08 5:33
User 27100913-Mar-08 5:33 
GeneralRe: Error Help Pin
Jammer13-Mar-08 7:08
Jammer13-Mar-08 7:08 
GeneralRe: Error Help Pin
Jammer13-Mar-08 7:11
Jammer13-Mar-08 7:11 
GeneralRe: Error Help Pin
Jammer13-Mar-08 7:48
Jammer13-Mar-08 7:48 
GeneralRe: Error Help Pin
User 27100913-Mar-08 8:54
User 27100913-Mar-08 8:54 
GeneralRe: Error Help Pin
Jammer13-Mar-08 11:36
Jammer13-Mar-08 11:36 
GeneralRe: Error Help Pin
Jammer14-Mar-08 0:02
Jammer14-Mar-08 0:02 
GeneralWindows XP WPF Anti Aliasing Pin
Jammer12-Mar-08 1:57
Jammer12-Mar-08 1:57 
GeneralRe: Windows XP WPF Anti Aliasing Pin
User 27100912-Mar-08 3:28
User 27100912-Mar-08 3:28 
GeneralRe: Windows XP WPF Anti Aliasing Pin
Jammer12-Mar-08 3:38
Jammer12-Mar-08 3:38 
GeneralRe: Windows XP WPF Anti Aliasing Pin
User 27100912-Mar-08 3:44
User 27100912-Mar-08 3:44 
GeneralRe: Windows XP WPF Anti Aliasing Pin
Jammer12-Mar-08 3:58
Jammer12-Mar-08 3:58 
GeneralRe: Windows XP WPF Anti Aliasing Pin
User 27100912-Mar-08 4:01
User 27100912-Mar-08 4: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.