Button control inside a WPF grid

Hi,
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
http://www.syncfusion.com/support/forums/grid-wpf/95874/button-inside-a-grid-column

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.



1 Reply

KS Krison Srinivas K Syncfusion Team 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.

Regards,
Krison




Loader.
Up arrow icon