Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
2523 | Jan 28,2003 03:36 AM UTC | Jan 28,2003 01:58 PM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e) { //test cell 1,4 if(e.ColIndex == 4 && e.RowIndex == 1) { try { //this assumes cell is an int int cellValue = int.Parse(e.Style.Text); if(cellValue > 10) e.Style.BackColor = Color.Red; } catch{}//empty } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.