Re: Display array data in DataGrid control

From: Turtle MacDermott (macdermott_at_nospam.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 14:50:29 -0500

Many thanks to both of you for your suggestions.

I wasn't able to get the array itself bound to the datagrid
(the data grid would show up with a big red X across it), but using just the
table worked great!!!

    - Turtle

"Turtle MacDermott" <macdermott@nospam.com> wrote in message
news:%23WppWBO1EHA.3820@TK2MSFTNGP11.phx.gbl...
> Hope this is the right newsgroup -
> if not, please redirect me.
>
> I have an array which is created dynamically in the course of my program
> execution.
> Once it exists, I'd like to display its contents in a datagrid.
>
> So far, I have succeeded in:
> Creating a dataset
> Creating a table inside that dataset
> Assigning my array data to rows in that table.
> Setting that dataset as the datasource of my datagrid
> By setting some properties, and executing
> Datagrid1.expand(-1)
> I've managed to get the datagrid to display a row with the title of my
> table.
> Clicking on this title displays the table just as my users should see it.
> But it would be really great if they didn't have to click on it.
> Is there any way I can get the data to display programmatically?
>
> TIA
> - Turtle
>
>



Relevant Pages

  • Display array data in DataGrid control
    ... execution. ... I'd like to display its contents in a datagrid. ... Assigning my array data to rows in that table. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Display array data in DataGrid control
    ... If you just want to display the data then no need to use a dataset at ... just set the datagrids DataSource property to your array or arrayList. ... I'd like to display its contents in a datagrid. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Displaying an object array/arrayilst in a DataGrid
    ... Hi - I would like to display an array of objects in a DataGrid, ... property on the DataGrid on the control and I don't know which to use. ... Right now I have degenerated to displaying an array of the class. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Display array data in DataGrid control
    ... > execution. ... I'd like to display its contents in a datagrid. ... > Assigning my array data to rows in that table. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Bind an Array of Custom Objects
    ... I created a method to convert my object array to a DataSet so ... The sample is binding to a DropDown, which is the same as binding to a Grid ... If you were using a DataGrid you could simple ... > 3) i have written an event handler that assigns the value of the ...
    (microsoft.public.dotnet.framework.aspnet)

Loading