且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

具有BindingSource的DataGridView

更新时间:2023-12-06 16:45:58

首先,我是vb的初学者. 但我会尽力帮助您.
如果我不明白您的问题,您有一个数据网格,并且您想知道某人是否已更改某些内容或是新的

首先,我将使用数据表从数据库中检索我的数据
如果您通过事件与朋友一起执行此操作,则可以使用数据表具有的某些操作(RowChanged,ColumnChanged,RowDeleting ...)

如果那没有帮助,我会放一个新专栏
就像
first of all i am a beginer in vb
but i will try to help you.
if i understund your question you have a datagrid and you want to know if somebody ha changed something or is new

first of all i would use a datatable to retrieve my data from the database
if you do this with friend with events you can use some actions that the datatable has (RowChanged, ColumnChanged, RowDeleting ...)

if that does not help i would put a new column
like
datatable.column.add("newrow", gettype(system.boolean))
datatable.Columns("newrow").DefaultValue = true


在旧的里放假
这样我就可以从旧行中识别出新行

我希望我能为您提供帮助

祝你有美好的一天


put false in the old ones
so that i can identify the new rows from the old ones

i hope that i could help you

have a nice day