473,378 Members | 1,478 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,378 software developers and data experts.

How to Programmatically create a DataGrid

ad
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();
Nov 17 '05 #1
6 1949
ad wrote:
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();


http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1
Nov 17 '05 #2
ad
Thank!
But I can't find about Programmatically create a DataGrid in that article!

<ja*****@texeme.com> ???????:42**************@texeme.com...
ad wrote:
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();


http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1

Nov 17 '05 #3

Well, its the first block of sample code on the first page.

Just scroll down and it's right there.

If you can't understand that, then you need to really do some basic reading
in .Net before asking these kinds of questions.
ad wrote:
Thank!
But I can't find about Programmatically create a DataGrid in that article!

<ja*****@texeme.com> ???????:42**************@texeme.com...
ad wrote:
> 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();
>
>


http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 17 '05 #4
ad
Thank!
But I can't find about Programmatically create a DataGrid in that article!

<ja*****@texeme.com> ???????:42**************@texeme.com...
ad wrote:
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();


http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1

Nov 17 '05 #5

Well, its the first block of sample code on the first page.

Just scroll down and it's right there.

If you can't understand that, then you need to really do some basic reading
in .Net before asking these kinds of questions.
ad wrote:
Thank!
But I can't find about Programmatically create a DataGrid in that article!

<ja*****@texeme.com> ???????:42**************@texeme.com...
ad wrote:
> 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();
>
>


http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 17 '05 #6
ad
Thanks,
You mean the line:
<asp:datagrid runat="server" id="ID_of_DataGrid" />
It is design time created DataGrid, but I wnat to know how to create it
dynamically!


<ja*****@texeme.com> ???????:iM********************@speakeasy.net...

Well, its the first block of sample code on the first page.

Just scroll down and it's right there.

If you can't understand that, then you need to really do some basic reading in .Net before asking these kinds of questions.
ad wrote:
Thank!
But I can't find about Programmatically create a DataGrid in that article!
<ja*****@texeme.com> ???????:42**************@texeme.com...
ad wrote:
> 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();
>
>

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
An Extensive Examination of the DataGrid Web Control: Part 1


--
Texeme Textcasting Technology
http://www.texeme.com

Nov 17 '05 #7

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

Similar topics

0
by: cmc | last post by:
Hi, I have a web application that programmatically creates DataGrids. When I create the DataGrid I set the EditItemStyle.CssClass = "DataGridStyleEdit" - the background of the row and the ...
0
by: Mark Kamoski | last post by:
Everyone-- I have a DataGrid that is bound at run-time. Upon the click of the Add, a new row is added to the top and it has several types of controls, (but, it is not permissible to use the...
2
by: Nicole | last post by:
I am creating template columns programmatically. I have read the msdn article on this and I'm so close. Article:...
4
by: RN | last post by:
In certain situations, I add a datagrid and a button beneath it. All programmatically added in the "code behind". I add them to a cell with cell.add(datagrid) and cell.add(button). Take the...
2
by: Andre Ranieri | last post by:
Hi folks, I have a datagrid which contains a template item checkbox column. I've included a checkbox as a HeaderTemplate item which fires a server-side function to check or uncheck all the...
1
by: Jay | last post by:
I'm wondering if anyone has even encountered a control or other scripting that will automatically rotate the rows of a datagrid... I am in the process of building an asp.net application that will...
2
by: jaYPee | last post by:
Anyone know how to add record to a datagrid programmatically? Say for example I have two textboxes in my form and a datagrid. When I click a button the value of two textboxes will be added as a...
2
by: jacqueharper | last post by:
I need to change the formatting of individual cells in a datagrid. I cannot figure out how to address individual cells by their column name. I have a DataTable which contains (for instance)...
0
by: TB | last post by:
Hi All For reasons unknown to me, the Page.IsPostBack is always false when I click a link in a hyperlink column of a datagrid which is created programmatically. My code in a page called...
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
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.