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

Valid RadGridView.ColumnName

3 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 26 May 2011, 05:35 AM
Hi

I executed the following:

gridColumn.DataMemberBinding = new Binding(column.ColumnName);

And example of a columnname is [dbo].[Orders].[OrderID]

The binding in this case did not work.  If I change the column name to eliminate "[ ] ." then it binds properly.  Are these characters not to be used for the Column Name are what is the naming convention for column names.

Thanks
Rich

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 May 2011, 07:05 AM
Hi,

 Grid column DataMemberBinding is just a standard System.Windows.Data.Binding and you can find more info about supported formats, etc here:
http://msdn.microsoft.com/en-us/library/system.windows.data.binding(v=vs.95).aspx

All the best,
Vlad
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
Priya
Top achievements
Rank 1
answered on 12 Apr 2013, 02:37 PM
I am auto generating columns dynamically in the radgridview. Are there any naming conventions for columns? I have column names which begin with a number (1stCol, 2ndCol,..) and the binding does not work. If I name the column without a number in the beginning it works fine.
0
Dimitrina
Telerik team
answered on 15 Apr 2013, 09:59 AM
Hello,

The string values used for Name have some restrictions. You can check this msdn article for a reference.

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Priya
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or