Forum  General Visual ...  Let's Chat Abou...  DataGridView and null cells
Previous Previous
 
Next Next
New Post 5/23/2007 10:05 AM
  happyfirst
242 posts
4th Level Poster




DataGridView and null cells 

Awesome library! My jaw dropped the first time I saw it. I just hope it can do everything that I need it to do.

First issue. I'm loading a dataset. I have one table in that dataset. I'm giving the datatable to a datagridview. As soon as I set the datagridview.datasource, I get an exception: "At least one of the provided cells is null.". I have null values which is to be expected in data coming from a database. Does your datagridview support null values?

I read that Visual WebGUI is open source. Where do I get access to the code to debug deeper into the datagridview?

 

Exception Stack:

"   at Gizmox.WebGUI.Forms.DataGridViewCellCollection.AddRange(DataGridViewCell[] dataGridViewCells)\r\n   at Gizmox.WebGUI.Forms.DataGridView.CompleteCellsCollection(DataGridViewRow dataGridViewRow)\r\n   at Gizmox.WebGUI.Forms.DataGridView.get_RowTemplateClone()\r\n   at Gizmox.WebGUI.Forms.DataGridView.RefreshRows(Boolean scrollIntoView)\r\n   at Gizmox.WebGUI.Forms.DataGridView.RefreshColumnsAndRows()\r\n   at Gizmox.WebGUI.Forms.DataGridView.OnBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnParentBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnParentBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnParentBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnParentBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.OnBindingContextChanged(EventArgs e)\r\n   at Gizmox.WebGUI.Forms.Control.a(BindingContext A_0)\r\n   at Gizmox.WebGUI.Forms.Control.set_BindingContext(BindingContext value)\r\n   at Gizmox.WebGUI.Forms.ContainerControl.set_BindingContext(BindingContext value)\r\n   at Gizmox.WebGUI.Forms.ContainerControl.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.Control.p()\r\n   at Gizmox.WebGUI.Forms.Control.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.Control.p()\r\n   at Gizmox.WebGUI.Forms.Control.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.Control.p()\r\n   at Gizmox.WebGUI.Forms.Control.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.ContainerControl.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.Control.p()\r\n   at Gizmox.WebGUI.Forms.Control.get_BindingContext()\r\n   at Gizmox.WebGUI.Forms.DataGridView.DataGridViewDataConnection.SetDataConnection(Object dataSource,

 
New Post 5/24/2007 8:59 AM
  happyfirst
242 posts
4th Level Poster




Re: DataGridView and null cells 

Figured it out. I'm using strongly typed datasets and one of the columns coming back is a byte[] array. DataGridView doesn't seem to like byte arrays. It should just show system.byte[] in that case if it's defaulting to auto generating the columns.

 
New Post 5/24/2007 9:56 PM
  Guy
2346 posts
1st Level Poster




Re: DataGridView and null cells 

Thanks for the information I will add it to the issue tracker. Do not forget that the DataGridView is still under development so if you find any issues do not hesitate to raise.

Thanks,
Guy

 
New Post 8/16/2007 5:41 AM
  davidjjon
36 posts
No Ranking


Re: DataGridView and null cells 

Hi Guy,

I am also getting an "At least one of the provided cells is null" exception which has got development at dead stop - is there a work around?

Thank you for all your hard work,
David Roh

 
New Post 8/16/2007 2:12 PM
  Guy
2346 posts
1st Level Poster




Re: DataGridView and null cells 

Hi David,

From investigating this error it looks like you have somehow a null value has been created instead of a valid cell. Can you send me something that might explain how to reproduce this error, so I can try to fix this issue? 

Thanks,
Guy

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  DataGridView and null cells
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS