Hi Frank,
Thank you for using Syncfusion products.
If you want to change the Font style as Strike out, you can use QueryCellStyleInfo event. The font style can be changed by using Strikeout property of Font. Please make use of below code,
Code Snippet:
AddHandler Me.gridGroupingControl1.QueryCellStyleInfo, AddressOf Me.gridGroupingControl1_QueryCellStyleInfo
Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As GridTableCellStyleInfoEventArgs)
If (e.TableCellIdentity.RowIndex = 3) Then ‘Specify your needed RowIndex
e.Style.Font.Strikeout = true
End If
End Sub
Please let me know if you have any concerns.
Regards,
Neelakandan
Hi Frank,
Thank you for your update.
Here we have provided the sample as per your need. In the below sample, if you press the Change_Row_Font_Style button, the particular Row font style of grid(which is provided in Textbox) will be changed dynamically. Please make use of below code,
Code Snippet:
Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As GridTableCellStyleInfoEventArgs)
If ((Me.textBoxExt1.Text <> string.Empty) _
AndAlso ((Not (e.TableCellIdentity.DisplayElement.GetRecord) Is Nothing) _
AndAlso ((e.TableCellIdentity.DisplayElement.GetRecord.GetRowIndex = Integer.Parse(Me.textBoxExt1.Text)) _
AndAlso fontChange))) Then ‘Specify your needed condition to meet criteria dynamically
e.Style.Font.Strikeout = true
End If
End Sub
Private fontChange As Boolean = false
Private Sub buttonAdv1_Click(ByVal sender As Object, ByVal e As EventArgs)
fontChange = true
Me.gridGroupingControl1.Refresh
End Sub
Note:
The RowIndex of particular record can be retrieved by using GetRowIndex method of GetRecord. We have attached sample video and sample. Please find the attached file.
Please let me know if you have any concerns.
Regards,
Neelakandan