Re: Foreach with DataGrid

From: Gidi (shnapsi_at_hotmail.com.dontspam)
Date: 07/08/04


Date: Thu, 8 Jul 2004 05:20:01 -0700

hello,
what i mean is that i want to take from each row and cell it's text and print it.
i need to do something like dataGrid[row,cell].ToString();

thanks

"Dmitriy Lapshin [C# / .NET MVP]" wrote:

> Hi,
>
> Do you mean the DataGrid rows or the underlying data rows? Could you please
> elaborate on what you're trying to achieve?
>
> --
> Sincerely,
> Dmitriy Lapshin [C# / .NET MVP]
> Bring the power of unit testing to the VS .NET IDE today!
> http://www.x-unity.net/teststudio.aspx
>
> "Gidi" <shnapsi@hotmail.com.dontspam> wrote in message
> news:D7DCAB98-639E-4010-81C4-C623BD97257D@microsoft.com...
> > hello, i want to "run" on my DataGrid (in C#) on each row
> > i tried to do a foreach loop but i got erros, what is the correct syntax??
> >
> > thanks...
>
>



Relevant Pages

  • Foreach with DataGrid
    ... i want to "run" on my DataGrid on each row ... i tried to do a foreach loop but i got erros, what is the correct syntax?? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: IF/AND/OR
    ... it will cover A1 is an empty cell. ... The initial IF function returns a "" if the cell is empty or contains ... Excel and Word Function Lists ... > could you show me the correct syntax for this condition ...
    (microsoft.public.excel.worksheet.functions)
  • Problems adjusting column width
    ... Just a quick question does anyone know of a way to programmatically adjust ... the column with to ensure that the text within a cell is entirely visible. ... I have also tried doing it column by column using a range and a foreach loop ... col widths to a standard area thats too large for what I need. ...
    (microsoft.public.excel.programming)
  • Re: Can I reference the currently selected cell in a formula?
    ... it is CELL, not CELLS, and you need an INDIRECT ... would be the correct syntax, though only you can tell if it is the correct formula. ... MS Excel MVP ...
    (microsoft.public.excel)
  • Need syntax help!
    ... my spreadsheet, but I've googled and googled and I can't find the ... correct syntax for the code. ... And the code should stop immediately when a cell is empty. ... FCC's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=35888 ...
    (microsoft.public.excel.programming)