i want to get writen values in datagridtextcolumn on clicking button in WPF here is my code -


xaml code:

<datagrid margin="37,188,-121,0" name="dgcompanies"            canuseraddrows="false" canuserdeleterows="false" autogeneratecolumns="false"            grid.columnspan="2" selectionchanged="dgcompanies_selectionchanged">        <datagrid.columns>              <datagridtextcolumn header="name" width="220"                                 binding="{binding name, mode=twoway}"  />              <datagridtextcolumn header="address" width="220"                                  binding="{binding address, mode=twoway}" />              <datagridtemplatecolumn header="action" width="*"  visibility="visible">                    <datagridtemplatecolumn.celltemplate>                            <datatemplate>                                    <button name="btnupdatecompany" content="update"                                            click="btnupdatecompany_click"  />                            </datatemplate>                    </datagridtemplatecolumn.celltemplate>              </datagridtemplatecolumn>        </datagrid.columns> 

c#

 private void btnupdatecompany_click(object sender, routedeventargs e)  {    } 


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -