L
Lucky
Hi guys,
i've problem with GridView control as i'm just learing Asp.net i dont
know most of the things.
here, my problem.
i'm using GridView control with Template columns, it looks like this:
<asp:GridView runat="server" ID="GridView1"
AutoGenerateColumns="False" Width="90%">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkVal" Checked='<
%#GetStatus(Eval("Stat")) %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
this is working fine. now i want to pass the whole object instead of
its property. and i dont know how to do that.
what i mean is insetead of doing this way "<%#GetStatus(Eval("Stat"))
%>" i want to pass the whole object insted of passing property
like this "<%#GetStatus(this) %>".
is it possible to do so?
the binding source to the grid is IList<Object> with 5 items.
i would appriciate any help.
thanks,
Lucky
i've problem with GridView control as i'm just learing Asp.net i dont
know most of the things.
here, my problem.
i'm using GridView control with Template columns, it looks like this:
<asp:GridView runat="server" ID="GridView1"
AutoGenerateColumns="False" Width="90%">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkVal" Checked='<
%#GetStatus(Eval("Stat")) %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
this is working fine. now i want to pass the whole object instead of
its property. and i dont know how to do that.
what i mean is insetead of doing this way "<%#GetStatus(Eval("Stat"))
%>" i want to pass the whole object insted of passing property
like this "<%#GetStatus(this) %>".
is it possible to do so?
the binding source to the grid is IList<Object> with 5 items.
i would appriciate any help.
thanks,
Lucky