ds = getGrandparent_to_child_Dataset(); |
//this will return me a dataset with 4 tables |
mygridview1.DataSource = ds; |
mygridview1.DataMember = ds.Tables[0].ToString(); |
listbox.SelectedIndices
is gone. Is there a equivalent or do i have to check against the values?Hi,
I used your class MyAppointment in your trial example...
This is my code :
String query;
query ="Select * from myTable";
SqlConnection myConn = new SqlConnection("Data Source=MyServer;Initial Catalog=MyCatalog;User Id=MyUser;Password=MyPassword;");
SqlCommand cmd = new SqlCommand(query, myConn);
SqlDataReader read;
myConn.Open();
read = cmd.ExecuteReader();
while (read.Read())
{
MyAppointment app = new MyAppointment(Convert.ToDateTime(read.GetString(2)), Convert.ToDateTime(read.GetString(3)), Convert.ToString(read.GetInt32(0)), read.GetString(1), read.GetString(4));
appointments.Add(app);
}
myConn.Close();
SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();
AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();
appointmentMappingInfo.Start = "Start";
appointmentMappingInfo.End = "End";
appointmentMappingInfo.Summary = "Subject";
appointmentMappingInfo.Description = "Description";
appointmentMappingInfo.Location = "Location";
appointmentMappingInfo.UniqueId = "Id";
SchedulerMapping idMapping = appointmentMappingInfo.FindByDataSourceProperty("Id");
dataSource.EventProvider.Mapping = appointmentMappingInfo;
dataSource.EventProvider.DataSource = appointments;
this.ux_cedule.DataSource = dataSource;
But I have error message : impossible to convert object 'System.GUID to 'Telerik.WinControls.UI.EventId' type. Do you understand wath is my problem?
Thanks a lot again
Sophie
Hi,
how to i set a different AppointmentTitleFormat for Alldayevent appointment and a normal appointment. I want to Show just AllDayEvent with "Subject" and normal appointment with "StartTime-EndTime Subject".