The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I used two Events those are 1.private void applyColorToolStripMenuItem_Click(object sender, EventArgs e) { applyColorToolStripMenuItem.BackColor = Color.Aqua; color = Convert.ToString(applyColorToolStripMenuItem.BackColor);
} private void Model_QueryCellInfo(object obj, GridQueryCellInfoEventArgs e) { int r1= gridDataBoundGrid1.CurrentCell.RowIndex; int c1 = gridDataBoundGrid1.CurrentCell.ColIndex;
if (e.RowIndex < 0 && e.ColIndex < 0) { e.Style.BackColor = gridDataBoundGrid1.BackColor; } else { if (r1.Equals(e.RowIndex) && c1.Equals(e.ColIndex)) { GridStyleInfo info = new GridStyleInfo(); info.BackColor = applyColorToolStripMenuItem.BackColor; e.Style.BackColor = info.BackColor; } } } the problem is when i click particular cell the backgroundcolor is changed to backgroundcolor of context menu strip item color it is not correct. i need this functionality when i right click context menu strip will be appeared and when I click on ApplyColor Task,Task color should be applied
SRSri Rajan Syncfusion Team June 30, 2008 10:26 AM UTC
Hi Mahesh,
Thank you for your interest in Syncfusion products.
Please try this coding to change the backcolor of a particular column, using Context Menu Strip. private void applyColorToolStripMenuItem_Click(object sender, EventArgs e) { applyColorToolStripMenuItem.BackColor = Color.Aqua; this.gridDataBoundGrid1.Binder.InternalColumns[3].StyleInfo.BackColor = Color.Aqua; this.gridDataBoundGrid1.Refresh(); }