473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Create TemplateColumn for DataGrid in codebehind (vb.net) ?

Hello,

I'm searching for a solution who permit me to create an TemplateColumn in a
DataGrid into codebehind... I found only solution for create it into the ASPX
code...

My problem is to find a solution for add ImageButton controls into this
column, for now my code is:

Dim colSupp As New TemplateColumn
colSupp.ItemTemplate = ???

What is the right code for put ImageButton controls in this column, and how
set the properties of this ImageButton controls (for example the URL of the
image of this ImageButton). I'm looking for how manage all events of this
ImageButton controls, for exemple when a user click on this control...

Sorry for my english who not good.... but i hope you understand that i'm
looking for solution for create all my TemplateColumn into codebehind, not
the ASPX code...
After it i place my DataGrid into a PlaceHolder, like i really need dynamic
solution that's why i want do it only and at 100% into codebehind.

Thanks for your help ! :)
Tigrou
Nov 18 '05 #1
2 3105
This link will give u a good insite.
http://msdn.microsoft.com/library/de...platetopic.asp

Regards,
Jignesh Desai
www.dotnetjini.com

"Tigrou" <Ti****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
Hello,

I'm searching for a solution who permit me to create an TemplateColumn in a DataGrid into codebehind... I found only solution for create it into the ASPX code...

My problem is to find a solution for add ImageButton controls into this
column, for now my code is:

Dim colSupp As New TemplateColumn
colSupp.ItemTemplate = ???

What is the right code for put ImageButton controls in this column, and how set the properties of this ImageButton controls (for example the URL of the image of this ImageButton). I'm looking for how manage all events of this
ImageButton controls, for exemple when a user click on this control...

Sorry for my english who not good.... but i hope you understand that i'm
looking for solution for create all my TemplateColumn into codebehind, not
the ASPX code...
After it i place my DataGrid into a PlaceHolder, like i really need dynamic solution that's why i want do it only and at 100% into codebehind.

Thanks for your help ! :)
Tigrou

Nov 18 '05 #2
Thank you very much, i guess this link will be helpful for me !
If anyone know other way to do it i'm listenning for it of course ! it's
better to have 2 methods than one ! but thanks again for this link.

Regards,
Bye
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Craig Pennington | last post by:
I have many ASP pages that I cannot immediately convert to ASP.NET. I would like to make use of .NET, particularly C#, to develop new code that I would need to access from those unconverted pages....
6
by: ad | last post by:
I use the code to create a DataGrid and filled with data, But the DataGrid1 didn't display in WebForm. How can I display the DataGrid after creating it? DataGrid DataGrid1 = new DataGrid();
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
3
by: Richard Skopal | last post by:
In .NET Windows forms I can create a metafile using this code: Graphics grph = aControl.CreateGraphics(); IntPtr ipHDC = grph.GetHdc(); Metafile mf = new Metafile(aImgFilePath, ipHDC,...
0
by: tommy | last post by:
hello everybody, i haved read a few articles about, how to create controls in asp.net dynamically! i have tested it -- all works fine.... but....now it comes--> HOW create controls...
6
by: Shibu | last post by:
Hi, Can anyone tell me how to create a DSN from asp.net.. Thanks Shibu
0
by: Shapper | last post by:
Hello, I am creating a datagrid with 3 columns: image, title and price. I am having problems in doing the following: 1. In image column I want to display thumbnail images which url is in...
1
by: gommca | last post by:
how to create menu bar in .net
0
by: awu25 | last post by:
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.