I have added the NeedDataSource sub because of the paging. it is the same as the code below.
once I hit the export sub code (gvMonthly.MasterTableView.ExportToCSV()) at any point afterwards the columns.count = 0
exporting using this code
the vb.net code is
once I hit the export sub code (gvMonthly.MasterTableView.ExportToCSV()) at any point afterwards the columns.count = 0
exporting using this code
<telerik:RadGrid ID="gvMonthly" AllowPaging="true" CssClass="tblGrid" HeaderStyle-CssClass="thTopHeader" runat="server" CellSpacing="1" CellPadding="3" DataKeyNames="practiceId" PageSize="50" />the vb.net code is
conn.Open()Dim sql As String = GetLabelRowSQL()Dim myCommand As SqlCommand = New SqlCommand(sql, conn)gvMonthly.DataSource = myCommand.ExecuteReader()gvMonthly.DataBind()conn.Close()