I can confirm that I am using the latest version of the component. I set up an isolated sample project to show the problem, but it relies on my database to populate the grid. Is that ok? You can see the issue here:
http://educatorsabroad.org/test.aspxIf you just click a row, it posts back properly without error. As soon as you sort by, for example, the Year column, and then try to select a row, it gives the error.
Here is my aspx page:
---
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function GridParticipants_ItemSelected(grid) {
var SelectedParticipant = String(grid.getSelectedItem().getKey());
__doPostBack(null, 'SelectParticipant_' + SelectedParticipant);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<eo:Grid ID="GridParticipants" runat="server" KeyField="ID" BorderColor="#DCDDDE"
BorderWidth="0px" ColumnHeaderDescImage="00050105" ColumnHeaderAscImage="00050104"
GoToBoxVisible="True" GridLineColor="220, 223, 228" GridLines="Both" ColumnHeaderDividerImage="00050103"
AllowPaging="True" PageSize="100" Font-Size="8.75pt" Font-Names="Tahoma" Width="1069px"
Height="670px" IsCallbackByMe="False" ClientSideOnItemSelected="GridParticipants_ItemSelected"
LoadingHTML="Loading..." Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
<FooterStyle CssText="border-left: #dcddde 1px solid;border-right: #dcddde 1px solid;padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;border-top:#dcddde 1px dotted;border-bottom:#dcddde 1px solid;background-color:#f5f5dc;"></FooterStyle>
<ItemStyles>
<eo:GridItemStyleSet>
<ItemHoverStyle CssText="background-color: whitesmoke; cursor: pointer;border-left: #dcddde 1px solid;"></ItemHoverStyle>
<SelectedStyle CssText="background-color:#c57715;color:#f5f5dc; cursor: pointer;"></SelectedStyle>
<CellStyle CssText="padding-left:8px;padding-top:2px; cursor: pointer;"></CellStyle>
<ItemStyle CssText="background-color:#f5f5dc;cursor:pointer;border-left: #dcddde 1px solid;"></ItemStyle>
<FixedColumnCellStyle CssText="border-right: #d6d2c2 1px solid; padding-right: 10px; border-top: #faf9f4 1px solid; border-left: #faf9f4 1px solid; border-bottom: #d6d2c2 1px solid; background-color: #ebeadb; text-align: right; color: black;"></FixedColumnCellStyle>
</eo:GridItemStyleSet>
</ItemStyles>
<GoToBoxStyle CssText="BORDER-RIGHT: #c57715 1px solid; BORDER-TOP: #c57715 1px solid; BORDER-LEFT: #c57715 1px solid; WIDTH: 40px; BORDER-BOTTOM: #c57715 1px solid"></GoToBoxStyle>
<ContentPaneStyle CssText="border-bottom-color:#c57715;border-bottom-style:solid;border-bottom-width:0px;border-left-color:#c57715;border-left-style:solid;border-left-width:0px;border-right-color:#c57715;border-right-style:solid;border-right-width:0px;border-top-color:#c57715;border-top-style:solid;border-top-width:0px;"></ContentPaneStyle>
<ColumnTemplates>
<eo:TextBoxColumn>
<TextBoxStyle CssText="BORDER-RIGHT: #c57715 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #c57715 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #c57715 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #c57715 1px solid; FONT-FAMILY: Arial"></TextBoxStyle>
</eo:TextBoxColumn>
<eo:DateTimeColumn>
<DatePicker ID="DatePicker1" runat="server" DayHeaderFormat="FirstLetter" DayCellHeight="16" DisabledDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
OtherMonthDayVisible="True" DayCellWidth="19" TitleRightArrowImageUrl="DefaultSubMenuIcon"
ControlSkinID="None" SelectedDates="">
<DayHoverStyle CssText="FONT-FAMILY: Arial; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid"></DayHoverStyle>
<TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;"></TitleStyle>
<DayHeaderStyle CssText="FONT-FAMILY: Arial; font-size: 12px; border-bottom: #aca899 1px solid"></DayHeaderStyle>
<DayStyle CssText="FONT-FAMILY: Arial; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"></DayStyle>
<SelectedDayStyle CssText="FONT-FAMILY: Arial; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"></SelectedDayStyle>
<TitleArrowStyle CssText="cursor:hand"></TitleArrowStyle>
<TodayStyle CssText="FONT-FAMILY: Arial; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid"></TodayStyle>
<PickerStyle CssText="border-bottom-color:#c57715;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#c57715;border-left-style:solid;border-left-width:1px;border-right-color:#c57715;border-right-style:solid;border-right-width:1px;border-top-color:#c57715;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"></PickerStyle>
<OtherMonthDayStyle CssText="FONT-FAMILY: Arial; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"></OtherMonthDayStyle>
<CalendarStyle CssText="background-color: white; border-right: #c57715 1px solid; padding-right: 4px; border-top: #c57715 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #c57715 1px solid; padding-top: 4px; border-bottom: #c57715 1px solid; FONT-FAMILY: Arial"></CalendarStyle>
<DisabledDayStyle CssText="FONT-FAMILY: Arial; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"></DisabledDayStyle>
<MonthStyle CssText="FONT-FAMILY: Arial; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px"></MonthStyle>
</DatePicker>
</eo:DateTimeColumn>
<eo:MaskedEditColumn>
<MaskedEdit ID="MaskedEdit1" runat="server" ControlSkinID="None" TextBoxStyle-CssText="BORDER-RIGHT: #c57715 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #c57715 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #c57715 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #c57715 1px solid; font-family:Courier New;font-size:8pt;">
</MaskedEdit>
</eo:MaskedEditColumn>
</ColumnTemplates>
<Columns>
<eo:RowNumberColumn Width="40" />
<eo:StaticColumn HeaderText="First Name" AllowSort="True" DataField="GSTParticipantsFirstName"
Width="150" />
<eo:StaticColumn HeaderText="Last Name" AllowSort="True" DataField="GSTParticipantsLastName"
Width="150" />
<eo:StaticColumn HeaderText="Year" AllowSort="True" DataField="GSTParticipantsYear"
Width="75" />
</Columns>
<ColumnHeaderTextStyle CssText="color: #C57715" />
<ColumnHeaderStyle CssText="background-image:url('00050101');padding-left:8px;padding-top:3px; color: #C57715;"></ColumnHeaderStyle>
</eo:Grid>
</div>
</form>
</body>
</html>
---
Here is the aspx.cs page:
---
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class test : System.Web.UI.Page
{
DataTable DTCurrentData;
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
SqlDataAdapter da = new SqlDataAdapter();
string strSQL = "Select GSTParticipantsID AS ID, GSTParticipantsFirstName, GSTParticipantsLastName, GSTParticipantsTerm, GSTParticipantsYear FROM TblGSTParticipants";
Session["CurrentUserSQL"] = strSQL;
SqlCommand cmd = new SqlCommand(strSQL, con);
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds, "CurrentData");
DTCurrentData = ds.Tables[0];
GridParticipants.DataSource = DTCurrentData;
GridParticipants.DataBind();
if (Request["__EVENTARGUMENT"] != null && Request["__EVENTARGUMENT"].ToString().IndexOf("SelectParticipant") != -1)
{
double Num;
bool isNum = double.TryParse(Request["__EVENTARGUMENT"].ToString().Replace("SelectParticipant_", ""), out Num);
//Response.Write(isNum.ToString() + " " + Request["__EVENTARGUMENT"].ToString()); Response.End();
ParticipantSelect(Request["__EVENTARGUMENT"].ToString().Replace("SelectParticipant_", ""));
}
}
protected void ParticipantSelect(string strParticipantID)
{
Response.Write(strParticipantID);
}
}
---