Home Forums WinForms controls Xceed Grid for WinForms Double click event handler inactive when datasource changed Reply To: Double click event handler inactive when datasource changed

User (Old forums)
Member
Post count: 23064

Here is one more question related to this same topic.

I do format the columns as below, after the datasource is definded.

grdcate2.DataSource = categ2DS.Tables(“categ2”)
With grdcate2
.BeginInit()
.Columns(0).Visible = False
.Columns(1).Visible = False
.Columns(2).Visible = False
.Columns(3).Width = 400
.EndInit()
End With

The problem is, if the datasource is changed the format is not refreshed. For example width of column 3 is not as 400.

Where I should place this code?

Imported from legacy forums. Posted by PETE (had 428 views)