This is a migrated thread and some comments may be shown as answers.

Proplem populating a DataRow with changed rows after an edit/update

5 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 24 Sep 2010, 10:18 AM
When I debug my code for editing/updating rows in the RadGrid, the following line of code:

DataRow[] changedRows = usersTable.Select(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["GUID"].ToString());

... throws the following error:

"from Syntax error: Missing operand after 'c93' operator."

The code is taken and adapted (very slightly) from the Update_Command() method in the code example here.

What does the error mean?

Also, can you suggest any other resources on the InPlace editing for RadGrid as I don't find the Telerik examples very clear (minimal code comments and description). I find the ordering of examples quite disjointed at times. From an ASP.NET point of view, I'm a beginner, so it could just be my inexperience!

Regards,
Anthony

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Sep 2010, 10:52 AM
Hello Anthony,

I suggest that you examine the online resources below which elaborate on this subject and let me know if they help you to eliminate the error:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pavlina
Telerik team
answered on 24 Sep 2010, 10:52 AM
Hello Anthony,

I suggest that you examine the online resources below which elaborate on this subject and let me know if they help you to eliminate the error:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anthony
Top achievements
Rank 1
answered on 24 Sep 2010, 01:51 PM
The reason for this error is because I was attempting to pass a GUID into the DataTable.Select() method. The Select() method was falling over when it came across hyphen characters in the GUID.

Thanks for your response anyway.
0
Pavlina
Telerik team
answered on 27 Sep 2010, 01:16 PM
Hello Anthony,

I am afraid that the provided information is not enough for us to determine what exactly the problem is and the reason for it.You can send me the whole page code (aspx, cs) for further check so I try finding what went wrong there.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anthony
Top achievements
Rank 1
answered on 27 Sep 2010, 01:51 PM
As per my post before your most recent reply, the error was being thrown because the DataTable.Select() method did not like the hyphen characters in the string I was passing into it. It isn't a problem with the RadGrid.

Anthony
Tags
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or