Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i want to create datagrid which have 2 text 1 button on collums how ever i cant find button item on data grid.
does it possible?
Posted

<toolkit:datagridtemplatecolumn minwidth="100" header="View" xmlns:toolkit="#unknown">
    <toolkit:datagridtemplatecolumn.celltemplate>
        <datatemplate>
            <Button Click="Button_Click">View Details</Button>
        </datatemplate>
    </toolkit:datagridtemplatecolumn.celltemplate>
</toolkit:datagridtemplatecolumn>

Above from:
http://stackoverflow.com/questions/1168976/wpf-datagrid-button-in-a-column-getting-the-row-from-which-it-came-on-the-cli

Text + Button Column you can also refer this:https://social.msdn.microsoft.com/Forums/vstudio/en-US/33684be6-5b19-4da7-9fdb-444ff55fcbf8/wpf-datagrid-text-button-column

Third party component can also be used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900