>>The mmRADGrid control works fine until I add bound columns manually.
>>
>>Table: Crew
>>CrewPK
>>Crew
>>CrewType
>>Active
>>
>>When I add the Crew column I get an error on the control.
>>
>>These are the settings:
>>I uncheck the "Create columns automatically at run time" and add a Bound Column. I then set the following properties:
>>HeaderText: Crew
>>DataField: Crew
>>DataType: System.String
>>
>>
>>
Error 12 Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. c:\FSLOffice\FSLOfficeWeb\Crew\ShowCrewTablePage.aspx 25
Error 13 Literal content ('</telerik.web.ui.gridboundcolumn>') is not allowed within a 'Telerik.Web.UI.GridColumnCollection'. c:\FSLOffice\FSLOfficeWeb\Crew\ShowCrewTablePage.aspx 26
>>
>>Does anyone know what this means and how to fix it? I followed all of the instructions in the MM.Net documentation. Without defining the bound columns manually the grid shows the data just fine.
>I don't have any experience with Telerik controls at this point but I am wondering if it is necessary to set the DataType property. I set grid >columns manually by setting the HeaderText and DataField only with no problem. What happens if you just reset that one property back to >default? That said the message would lead me to believe the column type being added is not a Telerik type and I wonder if the builder is not >adding the proper type of column. Have you tried to add these columns in code by adding the telerik .web.ui.gridboundcolumn and setting its >properties rather than using the builder?
The System.String is the default for the DataType. Below is the code that the builder generates:
<mm:mmRADGrid ID="MmRadGrid1" runat="server" AccessLevel="Full"
BindingSource="Crew" BindingSourceMember="" BindingType="OneWay"
ControlID="00000000-0000-0000-0000-000000000000" GridLines="None"
IsPostBack="False" ItemIndex="0" SecuritySetup="True" UserFieldName="">
<MasterTableView AutoGenerateColumns="False">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik.web.ui.gridboundcolumn datafield="Crew" headertext="Crew"
uniquename="column"></telerik.web.ui.gridboundcolumn>
</Columns>
</MasterTableView>
<FilterMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
</mm:mmRADGrid>
The VS editor has a problem with the telerik.web.ui.gridboundcolumn.