Hi,
I have a business objects with the following naming convention:
Guid Add(string name, string description, Guid categoryId, Guid createdBy)
The have properties of :
string Name { get; set; }
string Description { get; set; }
Guid CategoryId { get; set; }
Guid CreatedBy { get; set; }
I have created a RadGrid that uses an ObjectDataSource which uses the above business object. The RadGrid has mapping to the properties of the business object, i.e. the initial character is capital (Pascal Casing), but the ObjectDataSource is bound to the Add method, for instance, that has the initial character in lower case (Camel Casing).
Now when I click on the Insert button it throws an error that no Add method found with the parameters Name, Description CategoryId, createdBy (I'm setting the createdBy manually) but how do I bind RadGrid to the ObjectDataSource using the Pascal Casing but when it tries to insert it should use the Camel Casing version? Or should I change the ObjectDataSource to use control parameters? But that would mean changing all the gridboundcolumns to template columns?
Any advice you can give would be much appreciated.
Kind regards
Sidharth
I have a business objects with the following naming convention:
Guid Add(string name, string description, Guid categoryId, Guid createdBy)
The have properties of :
string Name { get; set; }
string Description { get; set; }
Guid CategoryId { get; set; }
Guid CreatedBy { get; set; }
I have created a RadGrid that uses an ObjectDataSource which uses the above business object. The RadGrid has mapping to the properties of the business object, i.e. the initial character is capital (Pascal Casing), but the ObjectDataSource is bound to the Add method, for instance, that has the initial character in lower case (Camel Casing).
Now when I click on the Insert button it throws an error that no Add method found with the parameters Name, Description CategoryId, createdBy (I'm setting the createdBy manually) but how do I bind RadGrid to the ObjectDataSource using the Pascal Casing but when it tries to insert it should use the Camel Casing version? Or should I change the ObjectDataSource to use control parameters? But that would mean changing all the gridboundcolumns to template columns?
Any advice you can give would be much appreciated.
Kind regards
Sidharth