I have a Radgrid already defined in the aspx file
I created 2 columns, "test" and "test1", and the datasource of the grid is defined as above:
but that datasource returns a lot of columns based on an sproc that create columns dynamically and I don't know how many columns will created, not even the columns names, but for sure brings these 2 ("test", "test1").
The problem is that i am getting these 2 columns repeated, and i just want to show them once, How can I do this?
PD: I note when the grid is creating the columns, the ones that I don't want to repeat, come with a 1 attached to the name, test1, test11
<telerik:RadGrid ID="rgTest" runat="server" > <MasterTableView AllowPaging="False" CommandItemDisplay="Top"> <Columns> <telerik:GridBoundColumn DataField="test" FilterControlAltText="Filter by test" HeaderText="Text" UniqueName="test" SortExpression="test"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="test1" FilterControlAltText="Filter by test1" HeaderText="Test1" UniqueName="test1" > </telerik:GridBoundColumn> </Columns> </MasterTableView></telerik:RadGrid>I created 2 columns, "test" and "test1", and the datasource of the grid is defined as above:
Protected Sub rgTest_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles rgTEst.NeedDataSource LoadPreview()End SubPrivate Sub LoadPreview() Dim obj As New TestDataAccess Dim ds As DataSet = obj.PreviewGet() 'Return a dataset from the database rgTest.DataSource = dsEnd Subbut that datasource returns a lot of columns based on an sproc that create columns dynamically and I don't know how many columns will created, not even the columns names, but for sure brings these 2 ("test", "test1").
The problem is that i am getting these 2 columns repeated, and i just want to show them once, How can I do this?
PD: I note when the grid is creating the columns, the ones that I don't want to repeat, come with a 1 attached to the name, test1, test11