Olav Chr. Botterli
Top achievements
Rank 1
Olav Chr. Botterli
asked on 24 Nov 2008, 02:11 PM
Hi,
I have this super-simple DataTable, and using this for DataSource for my RadGridView.
Everything looks fine, the columns are auto-generated and works fine; that's until I decide to add some rows.
If I don't fill in all columns for the row I get this error message: "Column 'XXXXX' does not allow nulls."
I know what this error is, but I find NOWAY in RadGridView to either give my users a message or prevent the row for being added to my DataTable.
How should I proceed?
I have this super-simple DataTable, and using this for DataSource for my RadGridView.
Everything looks fine, the columns are auto-generated and works fine; that's until I decide to add some rows.
If I don't fill in all columns for the row I get this error message: "Column 'XXXXX' does not allow nulls."
I know what this error is, but I find NOWAY in RadGridView to either give my users a message or prevent the row for being added to my DataTable.
How should I proceed?
4 Answers, 1 is accepted
0
Olav Chr. Botterli
Top achievements
Rank 1
answered on 25 Nov 2008, 07:25 AM
Anyone ?
Or is this an unfixable issue ? :-)
Or is this an unfixable issue ? :-)
0
Olav Chr. Botterli
Top achievements
Rank 1
answered on 25 Nov 2008, 09:47 AM
Hi Support!
I have serious trouble using your grid now. It seems to lack basic data-handling functionality.
It does not validate any columns before adding them to the data source (see previous post) and it throws exception when deleting a row. (I received 'Exception has been thrown by the target of an invocation.' when removing a row from my DataTable.)
Please help me out, so I might use this product for my client.
I have serious trouble using your grid now. It seems to lack basic data-handling functionality.
It does not validate any columns before adding them to the data source (see previous post) and it throws exception when deleting a row. (I received 'Exception has been thrown by the target of an invocation.' when removing a row from my DataTable.)
Please help me out, so I might use this product for my client.
0
Olav Chr. Botterli
Top achievements
Rank 1
answered on 25 Nov 2008, 12:22 PM
Hi,
I found a work-around for how to handle DataTable rows being deleted. I had to disconnect the datatable from RadGridView, then it work.
Can someone from Telerik answer me the status for DataTable support for RadGridView ? It seems to be broken, and I had to create serveral work-arounds to make it to work.
..and nice talking to myself :-)
0
Hello Olav Chr. Botterli,
Thank you for writing.
I have tried a scenario with DataTable as DataSource and RadGridView handles correctly every change that the user makes through "add new row". Also, we are not aware of any issues with deleting and editing rows.
As to the data error handling, RadGridView has a DataError event that should be used if you want to customize the data entering exceptions. Unfortunately, we have some issues with this event, and it does not working as expected. We are working on fixing these in the upcoming service pack. I have updated your Telerik points for bringing it our attention.
Please, mind that as a trial user of our controls you are entitled for 72 hours guaranteed response time (Monday to Friday) if you use our support system. A post in the Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually addressed. Additionally, a post is not assigned a response time as with the support ticketing system. You can read more on this topic here.
If you have other questions, do not hesitate to contact me again.
Best wishes,
Martin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for writing.
I have tried a scenario with DataTable as DataSource and RadGridView handles correctly every change that the user makes through "add new row". Also, we are not aware of any issues with deleting and editing rows.
As to the data error handling, RadGridView has a DataError event that should be used if you want to customize the data entering exceptions. Unfortunately, we have some issues with this event, and it does not working as expected. We are working on fixing these in the upcoming service pack. I have updated your Telerik points for bringing it our attention.
Please, mind that as a trial user of our controls you are entitled for 72 hours guaranteed response time (Monday to Friday) if you use our support system. A post in the Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually addressed. Additionally, a post is not assigned a response time as with the support ticketing system. You can read more on this topic here.
If you have other questions, do not hesitate to contact me again.
Best wishes,
Martin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.