Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
15465 | Jun 18,2004 05:24 PM UTC | Jul 3,2020 12:43 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
Convert([OrderId], ''System.String'') Like ''1025*''
This should pick out OrderId''s that start with 1025.
3) You can handle the GridFilterBarTextChanged event, and clear the cell tags at that point.
Dim col As Integer
For col = 1 To Me.gridDataBoundGrid1.Model.ColCount
If col <> Me.gridDataBoundGrid1.CurrentCell.ColIndex Then
Me.gridDataBoundGrid1(1, col).Text = ""
Me.gridDataBoundGrid1(1, col).Tag = ""
End If
Next
4) You can handle CurrentCellShowingDropDown and replace the list at that point.
Private Sub grid_CurrentCellShowingDrop(ByVal sender As Object, ByVal e As GridCurrentCellShowingDropDownEventArgs) Dim cc As GridCurrentCell = Me.gridDataBoundGrid1.CurrentCell If cc.RowIndex = 1 Then Dim cr As GridComboBoxCellRenderer = cc.Renderer Dim choices As String() = New String() {"(none)", "(custom)"} cr.ListBoxPart.DataSource = choices End If End Sub5) Here is a KB link on this. http://www.syncfusion.com/Support/article.aspx?id=561 6) Each header is a treated as a row in the grid. If you have 2 header rows, then they are number grid row 0 and grid row 1 with the first row of data being grid row 2.
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.
This page will automatically be redirected to the sign-in page in 10 seconds.