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.

EllipsisCell Button

Thread ID:

Created:

Updated:

Platform:

Replies:

14758 Jun 3,2004 02:08 PM Jun 4,2004 03:10 PM Windows Forms 6
loading
Tags: GridControl
Vivek
Asked On June 3, 2004 02:08 PM

Hi, I am trying to use EllipsisCell Button from the cell Button sample. I copied the file(EllipsisCell.cs) and did set the “CellType” . It is not showing correct picture. The button is not Ellipsis style with three dots rather it is regural gray rectangle. Why it is not showing Ellipsis button with three dots? Do I need to set some other property? Please do reply! Thanks

Vivek
Replied On June 3, 2004 02:22 PM

One more thing, I am doing this in PrepareViewStyleInfo event which is basically for each cell. Since I am doing one cell at a time I think it is way slow. Is there any place where I can do for a column or range of colums. It is really slow. Please find below the code: private void programGrid_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e) { if (e.ColIndex == 3 || e.ColIndex == 4) { e.Style.CellType = "EllipsisText"; e.Style.CellTipText = "Edit"; e.Style.Text = "Test"; } e.Cancel = false; } And in form_load event programGrid.CellModels.Add("EllipsisText", new EllipsisCellModel(programGrid.Model)); Thanks

Administrator [Syncfusion]
Replied On June 3, 2004 02:56 PM

1) Check this line in your code from the EllipsisCell.cs file.. iconPainter = new GridIconPaint("CellButtons.", typeof(EllipsisCellButton).Assembly); The "CellButtons." listed there should be changed to the namespace for your project (where the resources are embedded). 2) Also make sure the bmp file is included in your project as a Embedded Resource. 3) If this is a GridControl, you can set these style properties in the FormLoad. To set them on a column, you can use grid.ColStyles. To set them on individual cells, you can set them on grid[row, col]. If it is a GridDataBoundGrid, then you can set them for columns using either the grid.GridBoundColumns collection, or the grid.Binder.InternalColumns collection. To set them cell by cell in a GridDataBoundGrid, you will have to use PrepareViewStyleInfo.

Administrator [Syncfusion]
Replied On June 3, 2004 03:12 PM

I can see now the dots but button style is still regular gray rectangular. How can I get this special Ellipsis style button? Please help me! Thanks

Administrator [Syncfusion]
Replied On June 3, 2004 03:25 PM

I am not sure what you are talking about??? Are you trying to get the XP button look? If so, is your operating system XP, and have you set grid.ThemeEnabled = true (like the CellButtons sample)?

Administrator [Syncfusion]
Replied On June 4, 2004 02:20 PM

Hi, No No, I am no talking about XP style button. I am sorry for any confusion. When I run sample EllipsisCell Button, button in cell are round edge button, button if I try to run my prototype it shows me rectangular button. I am sure I am doing something wrong but I can’t figure it out. Please help. Thanks

Administrator [Syncfusion]
Replied On June 4, 2004 03:10 PM

Sorry, my mistake working fine! thanks

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.

;