G
Guest
this fires from a gridview and this type of construction works ok in vb.net
but i keep getting:
CS0021: Cannot apply indexing with [] to an expression of type 'object' if i
use ]
and: CS0118: 'System.Web.UI.WebControls.GridViewRow.DataItem' is a
'property' but is used like a 'method' when i use ().
protected void gv_Portfolio_RowDB(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow) {
Response.Write(e.Row.DataItem("NEWPFXO"));
}
}
I'm sure it's a simple one.
but i keep getting:
CS0021: Cannot apply indexing with [] to an expression of type 'object' if i
use ]
and: CS0118: 'System.Web.UI.WebControls.GridViewRow.DataItem' is a
'property' but is used like a 'method' when i use ().
protected void gv_Portfolio_RowDB(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow) {
Response.Write(e.Row.DataItem("NEWPFXO"));
}
}
I'm sure it's a simple one.