Change DataGrid BackColor for Specific row

How can i change the DataGrid''s BackColor for a specific Criteria dynamically? Thanks in Advance John

1 Reply

AD Administrator Syncfusion Team March 9, 2005 07:14 AM UTC

you can use current cell change event Private Sub datagrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles datagrid1.CurrentCellChanged grdEnquiries.Select(datagrid1.CurrentRowIndex) datagrid1.SelectionForeColor = Color.Black End Sub or create a class for event of cell and inherit from EventArgs use this in the class that derived from DataGridTextBoxColumn class >How can i change the DataGrid''s BackColor for a specific Criteria dynamically? > >Thanks in Advance >John

Loader.
Up arrow icon