Hola me urge pasar este código de c# a Visual Basic pero no me queda, me podrían ayudar pleeease...
protected void gx1_DataBinding(object sender, EventArgs e)
{
DataTable dt = (DataTable) this.Cache["DT"];
if (dt == null)
{
dt = new DataTable();
dt.Columns.Add(new DataColumn("col1", typeof(int)));
dt.Columns.Add(new DataColumn("col2", typeof(string)));
dt.Columns.Add(new DataColumn("col3", typeof(string)));
dt.Columns.Add(new DataColumn("col4", typeof(string)));
dt.Columns.Add(new DataColumn("col5", typeof(string)));
dt.Columns.Add(new DataColumn("col6", typeof(string)));
dt.Columns.Add(new DataColumn("col7", typeof(string)));
dt.Columns.Add(new DataColumn("col8", typeof(string)));
dt.Columns.Add(new DataColumn("col9", typeof(string)));
dt.Columns.Add(new DataColumn("col10", typeof(string)));
for (int i = 0; i < 10000; i++)
{
dt.Rows.Add(i, string.Format("valor {0}", i),"Magnate","es","igual","a","Miriam","Michaca"," Glz.","$$");
}
this.Cache["DT"] = dt;
}
this.gx1.DataSource = dt;
}
protected override void SavePageStateToPersistenceMedium(object state)
{
this.Session["_STATE"] = state;
}
protected override object LoadPageStateFromPersistenceMedium()
{
return this.Session["_STATE"];
}