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.

How to edit with different cell types using covered ranges

Thread ID:

Created:

Updated:

Platform:

Replies:

13926 May 13,2004 08:39 AM May 13,2004 12:20 PM Windows Forms 2
loading
Tags: GridControl
Corinne Muir
Asked On May 13, 2004 08:39 AM

Hi, 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! Corinne

Corinne Muir
Replied On May 13, 2004 10:36 AM

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[2].Text = "12/12/2000"; this.gridControl1.RowStyles[2].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? Thanks again, Corinne

Administrator [Syncfusion]
Replied On May 13, 2004 12:20 PM

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[2].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. 10790_3404.zip

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.

;