Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

DataGrid help needed

Geoff_HGeoff_H Member Posts: 45
I am using a datagrid in my app and i was wondering how to delete a whole column without delting anyother columns surrounding it.




thanks for helping

Comments

  • MiodragBMiodragB Member Posts: 21
    : I am using a datagrid in my app and i was wondering how to delete a whole column without delting anyother columns surrounding it.
    :
    :
    :
    :
    : thanks for helping
    :
    :

    in this example datagrid1.name = DGPret


    For I = 0 To DGPret.Columns.Count - 1
    With DGPret.Columns(I)
    If .DataField = "JMBG" Then 'replace "JMBG" with your datafield
    .Caption = "JMBG"
    .Width = 1700
    .AllowSizing = False
    .Alignment = dbgCenter
    .Visible= False 'hide columns
    End If
    End With

Sign In or Register to comment.