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

pushbutton size

Thread ID:





37472 Nov 22,2005 06:25 PM UTC Nov 22,2005 06:33 PM UTC WinForms 1
Tags: GridControl
Giancarlo Aguilera
Asked On November 22, 2005 06:25 PM UTC

First and foremost, before I proceed and ask my question, I just want to say thanks for all the help you guys have given me. In my last posts, you guys (Clay) gave me some good answers but of course I never even said thanks, so now I''m saying it. Anyways, here''s my issue. I''m using the grid control (plain vanilla, not the data bound one), and I want to set certain cells to pushbuttons, however, the size of the push button is always the size of the host cell, is there any way to customize the size and docking of the push button? Many Thanks Giancarlo

Administrator [Syncfusion]
Replied On November 22, 2005 06:33 PM UTC

You can set the style.BorderMargins property to affect the size of a pushbutton cell. this.gridControl1[3,3].CellType = "PushButton"; this.gridControl1[3,3].BorderMargins.Left = 10; this.gridControl1[3,3].BorderMargins.Right = 20; You can also create your own bitmap buttons as in the Essential Studio\\Windows\Grid.Windows\Samples\In Depth\CellButtons sample if you want more flexibility.


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