Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Alvin Bruney #1
Re: Image Button in Datagrid WebControl
in your itemdatabound or itemcreated event handler just add a label control
or any control that will take a url tag to the cell. then add the image to
the newly inserted control.
"Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
news:OVW6B4LUDHA.940@TK2MSFTNGP11.phx.gbl...column> Is there any way to put in image button in the datagrid. The buttonproperty.> seems to have all the functionality, but does not have an img_url>
> Thanks in advance.
>
> Jim
>
>
Alvin Bruney Guest
-
Binding a image button to a datagrid
Hi: I have a datagrid and I've created a itemtemplate column with textbox inside each row like the following: <asp:TemplateColumn... -
Changing ImageURL of Image Button which is added in template column of datagrid
hello, I have a template column in my datagrid. To the header of template colum, i have added imagebutton. On click of the imagebutton , i... -
DataGrid Cell with Image Button In It
I create a datagrid and at runtime I add an ImageButton to certain cells(e.Item.Cells.Controls.Add(imgbutton)). Now when I click on a row that... -
Adding image button to a datagrid in execution time
Hi! Somebody could give a sample of how can I add an image button to a datagrid in execution time? Thanks! *** Sent via Developersdex... -
JavaScript Access to Button in form tags (webcontrol or html button)
Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of... -
Alvin Bruney #2
Re: Image Button in Datagrid WebControl
sure you can put anything in there, even a jet plane...
this is for a hyperlink, substitute for your own user control.
//add a hyperlink for bogus results
HyperLink tb = new HyperLink();
tb.ForeColor = Color.Blue;
tb.Text = "Invalid";
tb.Font.Size = FontUnit.XXSmall;
tb.NavigateUrl = "Invalid.aspx";
e.Item.Controls[e.Item.Cells.Count - 1].Controls.Add(tb);
tb = null;
"Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
news:eN9b7PNUDHA.1556@TK2MSFTNGP10.phx.gbl...me> I guess I did not know that you can just put controls (like the image
> control) into a cell on the datagrid. If you have a minute, can you letto> know how you would do that?
>
> Thanks,
>
> Jim
>
> "Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
> message news:O56HADNUDHA.3712@tk2msftngp13.phx.gbl...> control> > in your itemdatabound or itemcreated event handler just add a label> > or any control that will take a url tag to the cell. then add the image>> > the newly inserted control.
> >
> > "Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
> > news:OVW6B4LUDHA.940@TK2MSFTNGP11.phx.gbl...> > column> > > Is there any way to put in image button in the datagrid. The button> > property.> > > seems to have all the functionality, but does not have an img_url> >> > >
> > > Thanks in advance.
> > >
> > > Jim
> > >
> > >
> >
>
Alvin Bruney Guest
-
Jos #3
Re: Image Button in Datagrid WebControl
Jim Mitchell wrote:
Use a TemplateColumn. Look here:> I guess I did not know that you can just put controls (like the image
> control) into a cell on the datagrid. If you have a minute, can you
> let me know how you would do that?
[url]http://aspnet.4guysfromrolla.com/articles/061002-1.aspx[/url]
--
Jos Branders
Jos Guest
-
Jim Mitchell #4
Re: Image Button in Datagrid WebControl
Thanks, that was a nice link.
"Jos" <josnospambranders@fastmail.fm> wrote in message
news:OL1c3w1UDHA.2508@TK2MSFTNGP12.phx.gbl...> Jim Mitchell wrote:>> > I guess I did not know that you can just put controls (like the image
> > control) into a cell on the datagrid. If you have a minute, can you
> > let me know how you would do that?
> Use a TemplateColumn. Look here:
> [url]http://aspnet.4guysfromrolla.com/articles/061002-1.aspx[/url]
>
> --
>
> Jos Branders
>
>
Jim Mitchell Guest
-
Justin Dutoit #5
Re: Image Button in Datagrid WebControl
You can put an <IMG> tag in the Text property as well.
Justin
"Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
news:O#NSg$#UDHA.424@TK2MSFTNGP11.phx.gbl...> Thanks, that was a nice link.
>
>
> "Jos" <josnospambranders@fastmail.fm> wrote in message
> news:OL1c3w1UDHA.2508@TK2MSFTNGP12.phx.gbl...>> > Jim Mitchell wrote:> >> > > I guess I did not know that you can just put controls (like the image
> > > control) into a cell on the datagrid. If you have a minute, can you
> > > let me know how you would do that?
> > Use a TemplateColumn. Look here:
> > [url]http://aspnet.4guysfromrolla.com/articles/061002-1.aspx[/url]
> >
> > --
> >
> > Jos Branders
> >
> >
>
Justin Dutoit Guest
-
Hrvoje Vrbanc #6
Re: Image Button in Datagrid WebControl
You could put it into Template Column.
Hrvoje
"Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
news:OVW6B4LUDHA.940@TK2MSFTNGP11.phx.gbl...column> Is there any way to put in image button in the datagrid. The buttonproperty.> seems to have all the functionality, but does not have an img_url>
> Thanks in advance.
>
> Jim
>
>
Hrvoje Vrbanc Guest
-
Jim Mitchell #7
Image Button in Datagrid WebControl
Is there any way to put in image button in the datagrid. The button column
seems to have all the functionality, but does not have an img_url property.
Thanks in advance.
Jim
Jim Mitchell Guest
-
Jim Mitchell #8
Re: Image Button in Datagrid WebControl
I guess I did not know that you can just put controls (like the image
control) into a cell on the datagrid. If you have a minute, can you let me
know how you would do that?
Thanks,
Jim
"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:O56HADNUDHA.3712@tk2msftngp13.phx.gbl...control> in your itemdatabound or itemcreated event handler just add a label> or any control that will take a url tag to the cell. then add the image to
> the newly inserted control.
>
> "Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message
> news:OVW6B4LUDHA.940@TK2MSFTNGP11.phx.gbl...> column> > Is there any way to put in image button in the datagrid. The button> property.> > seems to have all the functionality, but does not have an img_url>> >
> > Thanks in advance.
> >
> > Jim
> >
> >
>
Jim Mitchell Guest



Reply With Quote

