Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
WebDataGrid.DataBind double the columns
posted

Hi,

i have some columns predefined in my code:

<ig:BoundDataField DataFieldName="State" Key="State" Width="150px" >
<Header Text="Status" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Ok" Key="Ok" Width="30px" >
<Header Text="OK" />
</ig:BoundDataField>

When i try to DataBilnd a DataTable with the following columns:

DataColumn ColumnUsed = new DataColumn("State", typeof(System.String));
TableLicData.Columns.Add(ColumnUsed);
DataColumn ColumnOk = new DataColumn("Ok", typeof(System.String));
TableLicData.Columns.Add(ColumnOk);


the WebDataGrid shows all the columns twice like this:

State | Ok | State | Ok

i need the design time predefinition otherwise the column objects do not exist server side.

So how to DataBind without double the column numbers?