我正在使用ASPxGridView PerformCallback方法将javascript值传递给后面的代码,它的工作原理。但我需要在类型中转换或转换字符串数组并绑定到ASPxGridView。我该怎么办?
protected void detailGrid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
Group [] data = (Group)e.Parameters.Split(';');
List<Group> l = new List<Group>();
for (int i = 0; i < data.Length; i++)
{
l.Add(data[i]);
}
XFGridView1.DataSource = data;
XFGridView1.DataBind();
}