G Afternoon C# Gurus,
Yes, it is the VB coder floundering again in his conversion to C# ;)
I am trying to get the dataitems out of a selected row in a gridview.
(and I have already tried a couple of converters)
This is what I have:
int i = gvAvailableEvents.Selected
Index; (i does get set to an index number)
GridViewRow drv = gvAvailableEvents.Rows(i);
error is:
Default.aspx.cs(182): error CS0118: 'System.Web.UI.WebControls
.GridView.
Rows' is a 'property' but is used like a 'method'" string
I have tried:
DataRowView drv = (DataRowView)gvAvailableEv
ents.Rows[
i].DataIte
m;
Doesn't return an error till i try and pull a DataItem out of it and thats when i find out drv is NULL
Again, something I could write in VB with my eyes closed....arggg.
Please help me find the hitch.....
Start Free Trial