Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
15546 | Jun 22,2004 08:44 AM UTC | Jun 29,2004 01:20 PM UTC | WinForms | 10 |
![]() |
Tags: GridControl |
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds) { Rectangle rect1 = innerBounds; rect1 = new Rectangle(rect1.Right - 81, rect1.Bottom - 20, 40, 20); buttonsBounds[0] = rect1; rect1 = new Rectangle(rect1.Right + 1, rect1.Top, 40, 20); buttonsBounds[1] = rect1; return innerBounds; }2) You are using a GridDataBoundGrid. You cannot set cell specific properties like BackgroundImage using an indexer on a GridDataBoundGrid. http://www.syncfusion.com/Support/article.aspx?id=560 If you want to use a GridDataBoundGrid and have a style property like BackgroundImage vary cell to cell in the same column, then you will have to provide these values in either a Model.QueryCellInfo event or a PrepareViewStyleInfo event. You cannot set them with indexers.
>protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds) >{ > Rectangle rect1 = innerBounds; > rect1 = new Rectangle(rect1.Right - 81, rect1.Bottom - 20, 40, 20); > buttonsBounds[0] = rect1; > rect1 = new Rectangle(rect1.Right + 1, rect1.Top, 40, 20); > buttonsBounds[1] = rect1; > return innerBounds; >} >> >2) You are using a GridDataBoundGrid. You cannot set cell specific properties like BackgroundImage using an indexer on a GridDataBoundGrid. http://www.syncfusion.com/Support/article.aspx?id=560 > >If you want to use a GridDataBoundGrid and have a style property like BackgroundImage vary cell to cell in the same column, then you will have to provide these values in either a Model.QueryCellInfo event or a PrepareViewStyleInfo event. You cannot set them with indexers. The Current Problem is in executing AddDelete_5027.zip
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.