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.
Hi, I've a GridDataBoundGrid with a datable for datasource.
I want to change the backColor and the borders of particulars cells.
I can access to this cells with gridName(cell.RowIndex, cell.ColIndex)
but it's not working when I try to change the style of the cell.
I try to do this : - in the sub new, after the affectation of the datasource - in the sub form_Load - in a sub who handles gridName.DrawCell - in a sub who handles gridName.DrawCellBackground - in a sub who handles gridName.DrawCurrentCellBorder
JJJisha Joy Syncfusion Team November 25, 2008 09:59 AM UTC
Hi,
Thank you for posting query to us.
You have to handle QueryCellInfo to apply cell specific styles in GridDataBoundGrid. You can check for the Colindex and RowIndex to track the specific cell and set the styles.
Please refer the code:
//Event this.gridDataBoundGrid1.Model.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(Model_QueryCellInfo);