tags:

views:

31

answers:

1

hello Experts

i m using Wpf data Grid When Ever it to be loaded it is to be Come With A blank Defaul Row. there is no such property like windows grid to disable it..how can i disable it

than ks in advance shashank

+1  A: 

This is the row for new entries. If you don't want let the user create new entries or if you handle this from code, e.g. with a add-button, disable the CanUserAddRows-option.

<DataGrid  CanUserAddRows="False" />
HCL
ITS working BUt Bcoz OF this i m loss my datagrid Selection Change Event
Chunmun Tyagi
@Chunmun Tyagi: Between the selection of elements? I have a lot of DataGrids in my apps (WPFToolkit and .net4) and I never have observed a problem with the SelectionChanged-event. But I'm not 100percent sure if I use it often because I mostly bind from a ViewModel to the SelectedItem. What happens exactly? Does it not fire if you change the selected row? Maybe it's meaningfull to open a new question for this. Is it with .net 4 or the toolkit-version?
HCL