本文介绍了两个DataGrids,相同的DataSource的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须每个DataGrids共享相同的DataSource。用户希望能够在每个网格中选择不同的行,但由于它们在一个网格中选择了一行时共享相同的

源,因此选择了相同的行在

其他网格中。


我宁愿没有两个包含相同数据的单独来源,因为

有经常有几千行。


有没有办法解决这个问题?


-


干杯,


elziko

解决方案


为每一个创建一个数据视图,即使它是同一个表...然后将每个网格绑定到不同的数据视图。

" elziko" < EL **** @ NOTSPAMMINGyahoo.co.uk>在消息中写道

新闻:Oy ************** @ TK2MSFTNGP10.phx.gbl ...






正如我所说的我''而不是没有两个单独的来源包含相同的数据

因为

通常有数千行,因为这会浪费

$。$ / b $

干杯,
/ BLOCKQUOTE>

I have to DataGrids each sharing the same DataSource. The user wants to be
able to select a different row in each grid but since they share the same
source when a row is selected in one grid the same row gets selected in the
other grid.

I''d rather not have two seperate sources containing the same data since
there is often many thousands of rows.

Is there any way around this?

--

Cheers,

elziko

解决方案






As I said I''d rather not have two seperate sources containing the same data
since
there is often many thousands of rows because this would be a waste of
memory.

--

Cheers,

elziko


这篇关于两个DataGrids,相同的DataSource的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:43