Home › Forums › WinForms controls › Xceed Grid for WinForms › Question about Detail Grids › Reply To: Question about Detail Grids
I did what you suggested but the detail grid does still show all the rows.
Does it matter if I add the detail grid at design time or in run time as I added the detail grid run time.
Here is the code I currently have:
Dim dgRegEx As New Xceed.Grid.DetailGrid
dgRegEx.HeaderRows.Add(New Xceed.Grid.ColumnManagerRow)
dgRegEx.DataSource = DsConfig1
dgRegEx.DataMember = DsConfig1.tbl_AppNAKPI_Config.TableName
gcConfig.BeginInit()
gcConfig.DataSource = DsConfig1
gcConfig.DataMember = DsConfig1.tbl_AppNAKPI_Config.TableName
gcConfig.DetailGridTemplates.Add(dgRegEx)
gcConfig.EndInit()
gcConfig.BeginInit()
If gcConfig.DetailGridTemplates.Item(0).Columns.Count > 0 Then
gcConfig.DetailGridTemplates(0).UpdateDetailGrids()
gcConfig.DetailGridTemplates.Item(0).Columns(0).Visible = False
End If
gcConfig.EndInit()
Imported from legacy forums. Posted by Eric (had 3470 views)