private void BindToDataSet() |
{ |
if (this.SDS == null) |
{ |
this.SDS = new SchedulerDataDataSet(); |
ClassesAdapter.Fill(SDS.Classes); |
ClassroomsAdapter.Fill(SDS.Classrooms); |
ClassClassroomAdapter.Fill(SDS.ClassClassroom); |
} |
SchedulerBindingDataSource datasourse = new SchedulerBindingDataSource(); |
AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo(); |
appointmentMappingInfo.Start = "StartOfClass"; |
appointmentMappingInfo.End = "EndOfClass"; |
appointmentMappingInfo.Summary = "ClassName"; |
appointmentMappingInfo.Description = "Description"; |
appointmentMappingInfo.MasterEventId = "MasterEventID"; |
appointmentMappingInfo.Location = "Location"; |
appointmentMappingInfo.BackgroundId = "BackgroundID"; |
appointmentMappingInfo.RecurrenceRule = "RecurrenceRule"; |
appointmentMappingInfo.Resources = "FK_ClassClassroom_Classes"; |
appointmentMappingInfo.ResourceId = "ClassroomID"; |
datasourse.EventProvider.Mapping = appointmentMappingInfo; |
datasourse.EventProvider.DataSource = SDS.Classes; |
// create and assign resource mapping |
ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo(); |
resourceMappingInfo.Id = "ClassroomID"; |
resourceMappingInfo.Name = "ClassroomName"; |
datasourse.ResourceProvider.Mapping = resourceMappingInfo; |
datasourse.ResourceProvider.DataSource = SDS.Classrooms; |
radScheduler1.DataSource = datasourse; |
radScheduler1.GetDayView().RulerStartScale = 8; |
radScheduler1.FocusedDate = DateTime.Today; |
radScheduler1.GetDayView().RulerEndScale = 22; |
radScheduler1.GetDayView().ShowRuler = true; |
radScheduler1.GetDayView().DayCount = 1; |
radScheduler1.GroupType = GroupType.Resource; |
radScheduler1.ActiveView.ResourcesPerView = 5; |
} |
Can Not install package RadControlsWinforms_Q3_2006_SP1_trial.exe Mistake 1335
I have a GridViewTextBoxColumn in RadGridView. The column honors CultureInfo during display, however when it goes into the edit mode, the RadBoxTextEditor inside the cell, doesn't honor culture info. This is true with any column - GridViewTextBoxColumn or GridViewDecimalColumn.
We want the editor to show same culture info as the grid. How can set the editor to have same cultureinfo...
I am using following during grid intialization but it is not working.
private void radGridAdjustments_Initialized(object sender, EventArgs e)
{
radGridAdjustments.Columns.Add(
new GridViewTextBoxColumn("AdjAmount"));
radGridAdjustments.Columns[
"AdjAmount"].FieldName = "AdjAmount";
radGridAdjustments.Columns["AdjAmount"]).FormatInfo = CultureInfo.CurrentCulture
radGridAdjustments.Columns["AdjAmount"].FormatString = "{0:c}";
radGridAdjustments.Columns[
"AdjAmount"]).FormatInfo.NumberFormat.CurrencyDecimalDigits = 2;
}
((
GridTableElement)this.radGridView1.GridElement).AlternatingRowColor = Color.DarkGray;
The problem is that when I select a new now the previous row color remains the “selected row” color and does to drop back to the default row color. This is does not affect the alternating row. Why? Am I missing something?
private void radGridAdjustments_Initialized(object sender, EventArgs e)
{
radGridAdjustments.Columns.Add(
new GridViewTextBoxColumn("AdjAmount"));
radGridAdjustments.Columns[
"AdjAmount"].FieldName = "AdjAmount";
radGridAdjustments.Columns["AdjAmount"]).FormatInfo = CultureInfo.CurrentCulture
radGridAdjustments.Columns["AdjAmount"].FormatString = "{0:c}";
radGridAdjustments.Columns[
"AdjAmount"]).FormatInfo.NumberFormat.CurrencyDecimalDigits = 2;
}