Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Need help in update a row in datatable and datagridview using c#.

$
0
0

I need help in update a row in datatable and datagridview  using c#.

- Ran powershell command from c# to collect mailbox list (from Office 365) and stored in DataTable : OrigTable.

- OrigTable got 20 records with multiple columns.

- dataGridView1 uses OrigTable as data source (dataGridView1.DataSource =

CreateRunSpace.OrigTable;)

- User selects multiple rows from dataGridView1, click change button. The change button opens another winform and displays the user details, the user makes changes to one or two attributes and applies the changes.

- When apply button clicked, the winform makes powershell call to office 365 server to update the user/mailbox object details.

- Until now I could make it work.

- I need help on the below.

>> As the changes made only on two records/users and that too few fields, I do not know how to update only those two records with the changes in datatable and make the changes to reflect in datagridview without loosing the selection.

>> Please help me with samples in C#, to update only a specific record in datatable and how to make the changes to reflect in datagridview.

Thank you in advance.

 

 


Viewing all articles
Browse latest Browse all 7132

Trending Articles