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.
Unfortunately, activation email could not send to your email. Please try again.

Button control inside a WPF grid

Thread ID:

Created:

Updated:

Platform:

Replies:

102359 Jan 24,2012 12:37 AM Jan 27,2012 02:23 AM WPF 1
loading
Tags: GridControl
George Zacharia
Asked On January 24, 2012 12:37 AM

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.



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

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




CONFIRMATION

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.

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.

;