Our grid displays data of different granularity - the columns may be monthly but the input data might be quarterly, yearly, or just once for the whole grid.
To display this, we would like to use covered ranges to cover the appropriate number of columns - i.e. quarterly - 3 columns, annual - 12, and total - all (could be upt to 100 columns).
The previous sample for covered ranges shows how to edit this data for a textbox but if the cell type is a checkbox or monthly calendar, we can not see the checkbox at all. We can not see the monthly calendar drop down if the covered range spans more than one screen.
What would be the best way to hook in the edit handlers for these controls when using covered ranges?
Thanks again and for all your great help so far!
It seems that the gridControl1_DrawCell handler was causing some issues - if I comment out the code in that function in the example (10790) - the checkbox will appear and the covered range works great - why would I need that drawcell handler?
There is still an issue with seeing the drop down arrow for the month calendar unless you are at the last cell of the grid.
To test this, change the textline in the example to and add the cell type.
this.gridControl1.RowStyles.Text = "12/12/2000";
this.gridControl1.RowStyles.CellType = "MonthCalendar";
now try resizing or scrolling with the horizontal scroll bar - the month calendar ''sometimes'' appears.
Ideas on how to get the calendar drop down always at the last visible column?
ADAdministrator Syncfusion Team May 13, 2004 11:20 AM
One simple way to always see the button is to put it on the left. Having it on the right will draw it off the screen unless the last visible column is perfectly visible without a partical column showing.
this.gridControl1.RowStyles.TextAlign = GridTextAlign.Right;
Another option is to use the Border.Margin to move the button in, setting these style properties dynamically in QueryCellInfo. Here is a little sample.