Dear Group
I really need your help on this issue.
I've a datagrid which source is a dataview based on a dataset.
The columns of the grid are datagridtextbox columns created like the
following example:
Dim Column1 As New DataGridTextBoxColumn
With Column1
..HeaderText = "Name"
..MappingName = "ContactName"
..NullText = ""
..Width = 120
..ReadOnly = True
End With
The column is then added to a table style and the table style is added
to the datagrid. All works fins so far and the data shows e.g. All
Customers
The trouble starts when clicking on a cell within a datagridtextbox
column. Let's assume that I click a button immediately after to
repopulate the dataset and dataview to show e.g. All Employees, the
value of the cell I had clicked when displaying All Customers overlaps
part of the Employees DataGrid
Or lets assume I repopulate the datagrid with All Customers and start
scrolling down, the value of the cell I clicked scrolls down too and
overlaps the cell of the following row.
I've tried clearing the DataSet, DataView, TableStylCollection etc
without success and I'm grateful for any ideas by what this might be
caused.
Thank you for your time and efforts!
Martin
|