Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Boban Dragojlovic #1
hidden columns that contain a "key" field
I've seen several examples where people include a "key" column in the
datagrid so that they know which row to update during the update phase.
The examples I've seen look like this:
<asp:BoundColumn Visible=True DataField="ID"
HeaderText="ID"></asp:BoundColumn>
When I do this in my own form, the column is not only not visible, but it is
not sent to the browser.
How can I get it to be sent, but remain hidden?
Boban Dragojlovic Guest
-
"Page" and "Rect" props of the Field prop in Javascript API
Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property... -
"Deleted Hidden Page And Image Content" - Doesn't work?
Hi All Whenever I try and crop a PDF all the cropped information is still in the document. Granted it is hidden/masked but it is still there. When... -
Compare 2 fields & delete everything in "field 2" that occurs in "field 1"
Is it possible to compare 2 fields and delete everything in "field 2" that also occurs in "field 1" ? FIELD1 800-555-1212 for... -
Request.Form("Field Name") Versus Request.QueryString("Field Name")
I want to know what's the differences between Request.Form("Field Name") and Request.QueryString("Field Name") OR they function exactly the... -
dr("field").toString returns "400.0000" instead of "400"
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to... -
Saravana [MVP] #2
Re: hidden columns that contain a "key" field
You didnt include runtat attribute for boundcolumn, if didnt include that it
wont get processed in server. Include that see, it should work.
--
Saravana
Microsoft MVP - ASP.NET
[url]www.extremeexperts.com[/url]
"Boban Dragojlovic" <news@_N_O_S_P_AM_dragojlovic.org> wrote in message
news:k%yhb.13452$xL7.7440@newssvr25.news.prodigy.c om...is>
> I've seen several examples where people include a "key" column in the
> datagrid so that they know which row to update during the update phase.
>
> The examples I've seen look like this:
>
> <asp:BoundColumn Visible=True DataField="ID"
> HeaderText="ID"></asp:BoundColumn>
>
> When I do this in my own form, the column is not only not visible, but it> not sent to the browser.
>
> How can I get it to be sent, but remain hidden?
>
>
Saravana [MVP] Guest
-
bspann #3
Re: hidden columns that contain a "key" field
Boban,
Like Saravana states, you must have the runat attribute set on the datagrid.
Then under the <Columns> tag, include a
<asp:BoundColumn Visible=False DataField="ID"></asp:BoundColumn>
You must have a field in whatever you used to bind to the grid called "ID".
If that field does not exist, you will either get an error or the field will
not be included.
If you are wanting to include the "ID" value appended to an URL that the
user clicks, use the following code:
<asp:TemplateColumn HeaderText="SomeText">
<ItemTemplate>
<a href=http://www.yoursite.com/application/page.aspx?id= <%#
DataBinder.Eval(Container.DataItem, "ID") %> >Some Text</a>
</ItemTemplate>
</asp:TemplateColumn>
That should get you started. Please post any questions.
Thanks,
Brian
"Saravana [MVP]" <saravank@sct.co.in.nospam> wrote in message
news:%23do9XXHkDHA.1808@TK2MSFTNGP09.phx.gbl...it> You didnt include runtat attribute for boundcolumn, if didnt include thatit> wont get processed in server. Include that see, it should work.
>
> --
> Saravana
> Microsoft MVP - ASP.NET
> [url]www.extremeexperts.com[/url]
>
>
>
> "Boban Dragojlovic" <news@_N_O_S_P_AM_dragojlovic.org> wrote in message
> news:k%yhb.13452$xL7.7440@newssvr25.news.prodigy.c om...> >
> > I've seen several examples where people include a "key" column in the
> > datagrid so that they know which row to update during the update phase.
> >
> > The examples I've seen look like this:
> >
> > <asp:BoundColumn Visible=True DataField="ID"
> > HeaderText="ID"></asp:BoundColumn>
> >
> > When I do this in my own form, the column is not only not visible, but> is>> > not sent to the browser.
> >
> > How can I get it to be sent, but remain hidden?
> >
> >
>
bspann Guest
-
Pravesh Singh #4
hidden columns that contain a "key" field
Very informative post. It's really helpful for me and helped me lot to complete my task. Thanks for sharing with us. I had found another nice post over the internet which was also explained very well about Populate Grid Control From XML Document Easily, for more details of this post check out this link.
Thanks everyone for your precious post!!Pravesh Singh Guest



Reply With Quote

