or
this.radPanelBarGroupElement2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.radPanelBarGroupElement2.Image = global::MyApp.Properties.Resources.open;
this.radPanelBarGroupElement2.Text = "Folders";
I added the following line to try to get the PanelBar to recognize the transparent color
((Telerik.WinControls.Primitives.ImagePrimitive)(this.radPanelBarGroupElement2.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(1).GetChildAt(0))).TransparentColor = System.Drawing.Color.Fuchsia;
I also tried setting the TransparentColor of the ImagePrimitive to
System.Drawing.Color.Transparent
but that didn't work either. Please let me know how to do this.
Thanks,
John Q.
I'd like to know if the two dates are further than 3 days apart. How do I do this comparison? Is there a more efficient way than this?
var date = datePickerFrom.GetDate();
date.setDate(date.getDate() + 3);
var toDate = datePickerTo.GetDate();
if( toDate <= date )
.....
Thanks for your help.
| private void Form1_Load(object sender, EventArgs e) |
| { |
| DataTable dt = new DataTable(); |
| dt.Columns.Add("From", typeof(bool)); |
| dt.Columns.Add("To", typeof(bool)); |
| dt.Columns.Add("Description", typeof(string)); |
| dt.Rows.Add(false, false, "hi1"); |
| dt.Rows.Add(false, false, "hi2"); |
| dt.Rows.Add(false, false, "hi3"); |
| dt.Rows.Add(false, false, "hi4"); |
| dt.Rows.Add(false, false, "hi5"); |
| dt.Rows.Add(false, false, "hi5"); |
| dt.Rows.Add(false, false, "hi6"); |
| radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; |
| radGridView1.Columns.Add(new GridViewBooleanColumn("From")); |
| radGridView1.Columns[0].IsPinned = true; |
| radGridView1.Columns.Add(new GridViewBooleanColumn("To")); |
| radGridView1.Columns[1].IsPinned = true; |
| radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); |
| radGridView1.Columns[2].ReadOnly = true; |
| radGridView1.SelectionMode = GridViewSelectionMode.CellSelect; |
| radGridView1.DataSource = dt; |
| } |