haschanges on table level ?

  • Thread starter Thread starter Osmosis
  • Start date Start date
O

Osmosis

I have a dataset with several different tables and also a combobox with the
names of those tables.

I'd like the names in the combobox to be bold when the table has any
changes.

A dataset has a "haschanges" function, but I can't find the same on
datatable level.
Does anyone have an idea on how to get the desired result without too much
overhead ?

It wouldn't make sense to create copies of the tables in a separate dataset
everytime the combobox is dropped down...

thx,
O.
 
Hi O,

A datatable has change states - 5, but 3 that particularly matter to you -
added, deleted, modified. You can use code like this to see if these states
currently have rows so affected
Dim ilong As Long

Dim xDataTable As DataTable = ods.Tables(0).GetChanges(DataRowState.Added)

ilong = xDataTable.Rows.Count

If ilong > 0 Then

End If

HTH,

Bernie Yaeger
 
Back
Top