mjb3030 Posted November 17, 2003 Posted November 17, 2003 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? Quote
mjb3030 Posted November 17, 2003 Author Posted November 17, 2003 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? Quote
mjb3030 Posted November 17, 2003 Author Posted November 17, 2003 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? Quote
AlexCode Posted November 17, 2003 Posted November 17, 2003 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 Quote Software bugs are impossible to detect by anybody except the end user.
mjb3030 Posted November 18, 2003 Author Posted November 18, 2003 Thanks. That's what I was looking for. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.