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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:




4587 May 20,2003 07:29 AM UTC WinForms 0
Tags: FAQ
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!!!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon