Transfer A Row Or Multiple Row From Listview To DataGridview?

Sure. Assume you have a Winform with a ListView named listView1 and a DataGridView with no columns named dataGridView1 run this.

Sure. Assume you have a Winform with a ListView named listView1 and a DataGridView with no columns named dataGridView1 run this: dataGridView1.Columns.Clear(); dataGridView1.Columns. Add("SelectedItemCol", "Selected Items"); foreach (ListViewItem item in listView1.

SelectedItems) { dataGridView1.Rows. Add(item. Text); }.

I think the point is that mahesh has to it on his own. There is no mechanism which transfers the items atomatically. – Boas Enkler Jul 13 at 5:56 @Jay Riggs, Look at my edited question.

– mahesh Jul 13 at 6:20 @Boas Enkler, Are sure that there is no real mechanism to transfer the selected items from listview to dgv? – mahesh Jul 13 at 6:22 I don'nt now any. The only solution I know is to change the architecture.

For example if you have a MVVM application, and both contorls are bound to an datasource you coud just move the entity from one datasource to the other. Havign a databinding, then your contorls will update this change by themselves. But thats an architectural not an technical solution – Boas Enkler Jul 13 at 6:48 @mahesh I'm not sure what you're looking for in a 'real mechanism.' Any solution would require an elaboration on what I've shown (which is simplistic but works).

The data binding possibilities in the Winform ListView are limited, perhaps you can use a different control. – Jay Riggs Jul 13 at 23:46.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions