Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
If I am not mistaken, the Datagrid control has to be bound to a datasource? I need a simple control with rows and columns that I can plug values into at runtime. It will not be bound to a datasource. Is there such a thing?
Posted
OK, I just saw the previous post with the same question. But, when I checked out the MSDN information about binding it to an array, I saw that the array has to be 1 dimension. I tried it out to be sure (you can't believe everything you read :) ) and saw that, indeed, it does. That won't do me much good as I have 3 columns of data to put into this grid. Any ideas?
Posted
I've decided to just go ahead and use 3 datagrids for my 3 columns and bind each one to a separate array. Can anyone tell me if there is a way to center the text in a data grid?
Posted

Hi...

 

Why dont you use the DataTable object as the DataGrid DataSource??

 

I think it's the best solution... You can write and read the cells data just fine...

 

 

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...