We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change DataGrid BackColor for Specific row

Thread ID:





22754 Dec 21,2004 10:53 AM UTC Mar 9,2005 07:14 AM UTC WinForms 1
Tags: FAQ
Giftson John
Asked On December 21, 2004 10:53 AM UTC

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

Administrator [Syncfusion]
Replied On 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon