Swoosh,
[quoted text, click to view] > When I was using DataGrid control, i sometimes needed to use the
> following code on databound:
ASP.NET or Windows Forms?
Your should be able to use the "same" code.
It really depends on what event your first statement is in, as to how it
changes. Generally it will be e.Row instead of e.Item.
--
Hope this helps
Jay B. Harlow
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net [quoted text, click to view] "Swoosh" <swoooosh@gmail.com> wrote in message
news:1160645214.199052.105290@i3g2000cwc.googlegroups.com...
> Hi there
>
> When I was using DataGrid control, i sometimes needed to use the
> following code on databound:
>
> Dim myDataRowView As DataRowView = CType(e.Item.DataItem, DataRowView)
>
> and later on, i was getting one item out of the row like this:
>
> something = myDataRowView.Row.Item("Project_ID")
>
> i like to use it like this.
>
> my question is: What similar thing can i use on gridview databound?
>
> thanks
>
ok ... that sounds all right
but what exactly do you mean by "same" code?
inside databound i had e.item.dataitem
gridview's databound doesn't have row ...
should i try it on rowbound instead of databound?
On Oct 12, 11:52 pm, "Jay B. Harlow" <Jay_Harlow_...@tsbradley.net>
[quoted text, click to view] wrote:
> Swoosh,> When I was using DataGrid control, i sometimes needed to use the
> > following code on databound:ASP.NET or Windows Forms?
>
> Your should be able to use the "same" code.
>
> It really depends on what event your first statement is in, as to how it
> changes. Generally it will be e.Row instead of e.Item.
>
> --
> Hope this helps
> Jay B. Harlow
> .NET Application Architect, Enthusiast, & Evangelist
> T.S. Bradley -
http://www.tsbradley.net
it is ASP.NET
On Oct 12, 11:52 pm, "Jay B. Harlow" <Jay_Harlow_...@tsbradley.net>
[quoted text, click to view] wrote:
> Swoosh,> When I was using DataGrid control, i sometimes needed to use the
> > following code on databound:ASP.NET or Windows Forms?
And the event?
Did you notice I suggested using e.Row instead of e.Item?
Such as:
Dim myDataRowView As DataRowView = CType(e.Row.DataItem, DataRowView)
Again how the above line changes really depends on what even you are in!
(both before & now).
--
Hope this helps
Jay B. Harlow
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net [quoted text, click to view] "Swoosh" <swoooosh@gmail.com> wrote in message
news:1161013559.184553.118360@h48g2000cwc.googlegroups.com...
> it is ASP.NET
>
> On Oct 12, 11:52 pm, "Jay B. Harlow" <Jay_Harlow_...@tsbradley.net>
> wrote:
>> Swoosh,> When I was using DataGrid control, i sometimes needed to use the
>> > following code on databound:ASP.NET or Windows Forms?
>
Don't see what you're looking for? Try a search.