or
I'm trying to loop through all selected rows via with the code below and it works fine until I ReOrder the columns.
At that point, it returns the value in the column to the right of it. No matter how many times I reorder it, it always returns the value to the right.
Code Behind:
For Each gdi As GridDataItem In rgTimeMaterial.SelectedItems jn = gdi("Customer").Text Next
Asp.Net:
<t:RadGrid ID="rgTimeMaterial" runat="server" PageSize="200" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="true" Width="995" Height="412px" GridLines="Both" ShowFooter="true"> <HeaderStyle Width="100" Wrap="false" /> MasterTableView EnableHeaderContextMenu="true" CellPadding="0" CellSpacing="0" AllowMultiColumnSorting="true" Width="100%" ClientDataKeyNames="Job_Number"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <Columns> <t:GridClientSelectColumn HeaderStyle-Width="35" UniqueName="ClientSelectColumn" /> </Columns> MasterTableView> <ItemStyle Font-Names="Arial,Helvetica,sans-serif" Font-Size="9pt" Wrap="false" /> <ClientSettings ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" AllowColumnHide="true"ReorderColumnsOnClient="True"> <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="OnRowDblClick" OnRowCreated="RadGrid1_RowCreated"OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected"OnGridCreated="GridCreated" /> <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> <Scrolling SaveScrollPosition="true" AllowScroll="true" UseStaticHeaders="True"> </Scrolling> <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="true"ClipCellContentOnResize="true" AllowResizeToFit="true" /> </ClientSettings> <PagerStyle Position="Top" Mode="NextPrevAndNumeric" AlwaysVisible="true" /> </t:RadGrid><%--<telerik:GridBoundColumn SortExpression="EffectiveDate" HeaderText="EffectiveDate" HeaderButtonType="TextButton" DataField="EffectiveDate" UniqueName="EffectiveDate" DataFormatString="{0:MM/dd/yyyy}" Visible="True"> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn>--%> <telerik:GridDateTimeColumn DataField="EffectiveDate" DataFormatString="{0:MM/dd/yyyy}" PickerType="DatePicker" HeaderText="EffectiveDate" SortExpression="EffectiveDate" DataType="System.DateTime" UniqueName="EffectiveDate" EditDataFormatString="MM/dd/yyyy" > <HeaderStyle Width="170px" /> </telerik:GridDateTimeColumn>

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript" language="javascript"> function keyPress(sender, eventArgs) { var c = eventArgs.get_keyCode(); if ((c < 48) || (c > 57)) { eventArgs.set_cancel(false); } } </script></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager> <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server"> <ClientEvents OnKeyPress="keyPress" /> </telerik:RadMaskedTextBox> </div> </form></body></html>