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.

Enable/Disable of cell buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

67389 Aug 16,2007 08:29 AM Aug 21,2007 12:42 AM Windows Forms 1
loading
Tags: GridControl
Thanvir Hussain
Asked On August 16, 2007 08:29 AM

Hi,
I have pushbutton in my Grid which I need to enable/disable. I tried using the
GridStyleInfo properties of Enable/clickable.
Enable does not seems to work at all, clickable works where it does not generate the user click action. But the color of the button remains the same whether it is enabled or disabled. So the user can't make out whether it is enabled or disable.
I am also using the xp office themes.

Please advice.

thanvir

Jeba S [Syncfusion]
Replied On August 21, 2007 12:42 AM

Hi Thanvir,

Thank you for your details.

Please refer this code snippets to enable and disable PushButton cells.

//Disable Push Button
this.gridControl1.ColStyles[2].CellType = "PushButton";
this.gridControl1.ColStyles[2].Description = "Push button";
this.gridControl1.ColStyles[2].TextColor = SystemColors.Control;
this.gridControl1.ColStyles[2].Enabled = false;
this.gridControl1.ColStyles[2].Clickable = false;

//Enable Push Button
this.gridControl1.ColStyles[3].CellType = "PushButton";
this.gridControl1.ColStyles[3].Description = "Push button";
this.gridControl1.ColStyles[3].Enabled = true;


Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Grid.Windows/F67389/main.htm

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.

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.

;