Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21756 | Nov 19,2004 10:44 AM UTC | Nov 19,2004 11:55 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
//buttonsBounds[0] = GridUtil.CenterInRect(rightArea, new Size(20, 20));
buttonsBounds[0] = GridUtil.CenterInRect(innerBounds, new Size(40, 40));
In the EllipsisCellModel constructor, make this change.
//base.ButtonBarSize = new Size(20, 20);
base.ButtonBarSize = new Size(40, 40);
Also, make sure the row height for these cells are taller than 40.
With these changes, I think you should see your centered larger buttons.
I do not know where you want the text, but you should make your OnLayout return a bounding textrectangle so the grid knows where you want it.
You may also want to tweak OnQueryPrefferedClientSize. 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.
This page will automatically be redirected to the sign-in page in 10 seconds.