Re: Negative rowIndex problem for new DataGridViewRow

Brady Kelly <[email protected]> Mon, 28 Jan 2008 01:06:58 +0200
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
Hi Kara,

Thanks for the link, but I've determined my problem is somehow related to me
trying to add row objects derived from DataGridViewRow.  I suspect I'm not
overriding a required member somewhere, because I can add one custom row,
but all other rows after that break when I add them.

>
> Hi Brady,
>
> With the DataGridView, the rows could be accessed iteratively up to a
> size of myGrid.Rows.Count
>
>
> Here is a webpage with an example of how to access a row/column
> reference as you describe.
>
> http://msdn2.microsoft.com/en-
> us/library/system.windows.forms.datagridview.rowcount.aspx