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.
ADAdministrator Syncfusion Team June 12, 2006 03:44 AM UTC
Hi Prashant,
Try this code in PrepareViewStyleInfo event. Here is a code snippet
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
if(e.ColIndex > 0 && e.RowIndex > 0 )
{
if( e.ColIndex == cc.ColIndex && e.RowIndex == cc.RowIndex && cc.IsEditing )
{
e.Style.TextColor = Color.Red;
}
}
Letme know if this helps.
Best Regards,
Haneef
PGPrashant GangwarJune 12, 2006 01:22 PM UTC
Hi Haneef,
Thanks for your quick response.
ForSCAGroupingDataGrid we do not have PrepareViewStyleInfo event.
What can we use in place of that event?
Thanks and Regards
Prashant
ADAdministrator Syncfusion Team June 13, 2006 04:16 AM UTC
Hi Prashant ,
For grouping grid, you need to use the TableControlPrepareViewStyleInfo event. Here is a code snippet
private void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if(e.Inner.ColIndex > 0 && e.Inner.RowIndex > 0 )
{
if( e.Inner.ColIndex == cc.ColIndex && e.Inner.RowIndex == cc.RowIndex && cc.IsEditing )
{
e.Inner.Style.TextColor = Color.Red;
}
}
}
Regards,
Haneef