Home Forums WinForms controls Xceed Grid for WinForms Question about Detail Grids

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14198 |

    Hello All,

    My question is: Is there a way to not shown columns in a detail grid whose data source is also the same as the main data grid?

    Thank you in advance for any information
    Eric

    Imported from legacy forums. Posted by Eric (had 2389 views)

    User (Old forums)
    Member
    Post count: 23064

    You can simply set the .Visible property of the column you do not wish to see to false. Even if it is the “same” as the master Grid, the index/reference will differ.

    Imported from legacy forums. Posted by Matt (had 343 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.