setting custom row height in schedule control

Hello,

We trying to see if we can utilize schedule control in our application,but could you please let us know how to set the height for individual cells [a day cell in the schedule] of the schedule or at least set the a row height in the schedule?

Regards,
Vikram

2 Replies

VI vik March 23, 2010 01:33 PM UTC

[this is specific for month mode.]


RC Rajadurai C Syncfusion Team March 29, 2010 12:48 PM UTC

Hi Vikram,

Thanks for your interest in Syncfusion Products.

It is not possible to set height for individual cells. But you can set the height of a specific row.

In Month mode, rowheight setting can be achieved by handling the QueryRowHeight event of the ScheduleGrid. Through the following code, the ScheduleGrid can be retrieved from the ScheduleControl and the respective event can be invoked.

ScheduleGrid grid = this.scheduleControl1.GetScheduleHost();
//Event Invoker
grid.QueryRowHeight += new Syncfusion.Windows.Forms.Grid.GridRowColSizeEventHandler(grid_QueryRowHeight);

//Method Invoked
void grid_QueryRowHeight(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e)
{
if (e.Index == 3)
e.Size = 100;
}

Regards,
Rajadurai

Loader.
Up arrow icon