Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
20586 | Oct 21,2004 10:39 AM UTC | Oct 21,2004 02:47 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
>>GridBoundColumnsCollection b = this.grdBen.Binder.GridBoundColumns ;
>>cmb.StyleInfo.CellType = "DropDownGridListControl";
try
GridBoundColumnsCollection b = this.grdBen.GridBoundColumns ; //unless you have not added GBC, in which case use grid.Binder.InternalColumns
cmb.StyleInfo.CellType = "GridListControl";
GridDropDownGridListControlCellRenderer cr =
(GridDropDownGridListControlCellRenderer) this.gridControl1.CellRenderers["GridListControl"];
// cr.ListControlPart is the GridListControl
Once you have the GridListControl, you can access the embedded GridControl, the Grid property of the GridListControl. But this Grid is virtually bound to the DataSource, so this means just setting style properties on individual cells will not work. 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.