We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AccessFormObjectOneFormToAnother

Thread ID:

Created:

Platform:

Replies:

4587 May 20,2003 07:29 AM UTC Windows Forms 0
loading
Tags: FAQ
Ukraine
Asked On May 20, 2003 07:29 AM UTC

I want to obtain rows in datagrid in one form from another. For this I use !!!Error!!! CurrencyManager cm = (CurrencyManager)ListPoset.BindingContext[ListPoset.dataGrid1.DataSource]; int rowCount = cm.Count; //assumes datasource is a datatable... int colCount = ((DataTable)ListPoset.dataGrid1.DataSource).Columns.Count; for(int row = 0; row < rowCount; row++) { for(int col = 0; col < colCount; col++) { object cellValue = ListPoset.dataGrid1[row,col]; Console.Write(cellValue.ToString() + " "); } Console.WriteLine(""); } But I have an errors diring compilation <> Help me please!!! I am just a biginer in DotNet!!!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;