We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Button control inside a WPF grid

Thread ID:





102359 Jan 24,2012 05:37 AM UTC Jan 27,2012 07:23 AM UTC WPF 1
Tags: GridControl
George Zacharia
Asked On January 24, 2012 05:37 AM UTC

We am working with Syncfusion WPF grid control. We have a requirement to add a button control inside a cell. Got a similar example from

Which works fine . I also want to identify the Text in the clicked button & change it dynamically . how can we acheive this.
Sample code is given here.

void grid_CellClick(object sender, GridCellClickEventArgs e)
if (sender != null)
var grd = (Syncfusion.Windows.Controls.Grid.GridDataControl)sender;
int Rowindex = grd.Model.CurrencyManager.CurrentCell.RowIndex;
int Colindex = grd.Model.CurrencyManager.CurrentCell.ColumnIndex;

in this method i want to identify the text/content of the button clicked and change its value dynamically.

Krison Srinivas K [Syncfusion]
Replied On January 27, 2012 07:23 AM UTC

Hi George,

Thanks for your update.

We have prepared a sample based on this and you can find the sample under the following location:

Sample Link: http://www.syncfusion.com/downloads/Support/DirectTrac/89820/Button%20Template1819372093.zip

Please let us know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon