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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to set color to cell of next row and same column in child table

Thread ID:

Created:

Updated:

Platform:

Replies:

117926 Jan 9,2015 10:57 AM UTC Jan 12,2015 07:30 AM UTC WinForms 1
loading
Tags: GridGroupingControl
Supriya Varne
Asked On January 9, 2015 10:57 AM UTC

Hi,
I am using Gridgrouping control.
I have Parent-Child Relationship in the control.
I want to change values in cell of  rows values in child table.
when  I press down arrow key in current cell of row then   how to set color to cell of next row in parent table as well as child table
Please give me solution regarding to this.

Thank you and Regards,
Supriya

Neelakandan Kannan [Syncfusion]
Replied On January 12, 2015 07:30 AM UTC

Hi Supriya,

 

Thank you for your interest in Syncfusion products.

 

If you want to set the current cell backcolor in GridGroupingControl, you can use QueryCellStyleInfo event. Using this event, you can set backcolor to CurrentCell.

 

Code Snippet:

Dim cc As GridCurrentCell    
    
Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As ObjectByVal As GridTableCellStyleInfoEventArgs)
        cc 
= Me.gridGroupingControl1.TableControl.CurrentCell
        
If (cc.HasCurrentCellAt(e.TableCellIdentity.RowIndex, e.TableCellIdentity.ColIndex)  _
                    
AndAlso ((e.TableCellIdentity.TableCellType <> GridTableCellType.ColumnHeaderCell)  _
                    
AndAlso (e.TableCellIdentity.TableCellType <> GridTableCellType.RecordPlusMinusCell))) Then
            
e.Style.BackColor Color.Red
        
End If
    End Sub

 

Sample:

http://www.syncfusion.com/downloads/support/directtrac/117926/Sample_CurrentCell_Backcolor_VB-1317131189.zip

 

Please let me know if you have any concerns.

 

Regards,

Neelakandan


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.

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

;