How to get the default row in WPF datagrid as like in WINFORM datagridview -


I am a newbie to WPF. I am trying to replicate the functionality created in Winform datagridview in WPF datagrid. When I created the data grid view with the required column and ran the application, then he provided a default blank row, I started editing the default row on the runtime and added more rows in the DataGrud view. But when I sampled in WPF, I could not find the default blank line. For this reason I am not able to add content to each column. I need an empty datagrid, which I will use it on the runtime to get the input from the user. Please help me on this...!

Please Dhana

Please see your XML below

  & lt; Window x: Class = "WpfApplication1.MainWindow" xmlns = "http: // Schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/ Xaml "xmlns: col =" clr- namespace: system. Compilation; assembly = mscorlib "title =" main window "height =" 450 "width =" 850 "& gt; & Lt; Window.Resources & gt; & Lt; Col: ArrayList x: key = "Type Criteria" & gt; & Lt; Col: dictionary-key = "single" value = "one" /> gt; & Lt; Col: DictionaryInternet Key = "Multi" value = "Multilevel" /> & Lt; / Col: ArrayList & gt; & Lt; /Window.Resources> & Lt; Grid & gt; & Lt; DataGrid horizontal alignment = "left" margin = "20,44,0,0" workspaceElement = "top" height = "350" width = "800" auto generated column = "incorrect" canoere reader column = "wrong" itemsSource = "{Binding}" fontosiz = "13" canusrod edrows = "true" & gt; & Lt; DataGrid.Columns & gt; & Lt; DataGridComboBoxColumn Header = "Type Criteria" width = "1 *" ItemSource = "{staticRSOS criterion type list}" /> & Lt; DataGridTextColumn Header = "Priority" width = "1 *" /> & Lt; DataGridComboBoxColumn header = "status" width = "2 *" /> & Lt; DataGridTextColumn header = "(" width = "1 *" /> > Datagrid combo box column header = "value" width = "1 * "/ & Gt; DataGridTextColumn Header =") "width =" 1 * "/> & Lt; /DataGrid.Columns> & Lt; / Data grid & gt; & Lt; / Grid & gt; & Lt; / Window & gt;   Binding  

/ Strong> The built-in items for any column Set binding for some properties in Surat so that the datagrid knows what to display in its line and you will see a blank row in the DataGrid. Datagrid horizontal alignment = "left" margin = "20,44,0,0" vertical alignment = "top" height = "350" width = "800" auto-generating column = "incorrect" canvier reorder column = "incorrect" Itemsource = "{binding}" fontosys = "13" can also be reached with RAZ = "True" & gt; & Lt; DataGrid.Columns & gt; ..... & lt; DataGridTextColumn header = "priority" width = "1 *" binding = "{binding property name}" /> & Lt; - here ..... & lt; / DataGrid.Columns & gt; & Lt; / Data grid & gt;


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -