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.
Unfortunately, activation email could not send to your email. Please try again.

Change DataGrid BackColor for Specific row

Thread ID:

Created:

Updated:

Platform:

Replies:

22754 Dec 21,2004 05:53 AM Mar 9,2005 02:14 AM Windows Forms 1
loading
Tags: FAQ
Giftson John
Asked On December 21, 2004 05:53 AM

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

Administrator [Syncfusion]
Replied On March 9, 2005 02:14 AM

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

CONFIRMATION

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.

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.

;