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

Where is code generated by VS for Gridview


Hi,

I use VS2005 to generate Gridview in aspx file.
But when I source aspx file and cs file. I don't see the lines.
I would like to modify code base on the code generated for me...

Can you help . Thanks
Aug 8 '06 #1
2 900
There is no code generated to make a GridView, it is just an ASP.net control.
If you want to alter the functionality of the control, create a user control
that inherits from it.

"walanta" wrote:
>
Hi,

I use VS2005 to generate Gridview in aspx file.
But when I source aspx file and cs file. I don't see the lines.
I would like to modify code base on the code generated for me...

Can you help . Thanks
Aug 8 '06 #2
There are a few things that can be modified w/the gridview. It depends
on what you need modified. To check those options, select the arrow on
the top right of the gridview control in the design view of the ASPX
page. If you need to change column formats (i.e., add $ signs, etc) or
hyperlink cells to different web pages or websites or similar, that can
be added in the source view of the ASPX page. Otherwise, follow the
advise that clickon gave. Hope this helps.

Regards,

Enrique Martinez
Sr. SQL Server DBA/Developer
em***********@gmail.com
clickon wrote:
There is no code generated to make a GridView, it is just an ASP.net control.
If you want to alter the functionality of the control, create a user control
that inherits from it.

"walanta" wrote:

Hi,

I use VS2005 to generate Gridview in aspx file.
But when I source aspx file and cs file. I don't see the lines.
I would like to modify code base on the code generated for me...

Can you help . Thanks
Aug 9 '06 #3

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

Similar topics

6
by: Dabbler | last post by:
I have a dropdownlist in a GridView ItemTemplate. I need to bind the ddl to an SqlDataSource, then have a value from a boundfield in the row be passed as the keyfield for select where clause. Im...
2
by: Anonieko | last post by:
Hello ASPNET guru's, What is a clean way to go around the problem of displaying a GridView templated column where data can contain Single Quote ( ' )? I maybe too naive, but this is of course...
0
by: jobs | last post by:
I have a gridview that times when selecting from specific table when I try to when I add a where clause. Even when I'm only seleting Top 1 which comes right back at the command line. I test the...
4
by: john_c | last post by:
When I add a new aspx page to my project, I don't see Init() or InitializeComponent() in any of the page's CS files. Where are the methods stored? Thanks.
5
by: NKaufman | last post by:
<asp:GridView ID="Basic" runat="server" DataKeyNames="QuestionID,isHeading" AutoGenerateColumns="false" AllowPaging="true" PageSize="100"> <Columns> <asp:BoundField Visible="false"...
2
by: BillE | last post by:
I am populating a gridview using auto-generated fields, because I need to enable sorting. I would like to format a column containing dates in the gridview. How is this done? Thanks Bill
5
by: Tim Mackey | last post by:
hi, with a derived DataGrid control, i can override the CreateColumnSet method and scan into the DataGridColumns and set the DataFormatString, e.g. leave out the time part of a DateTime value. ...
0
by: Andy B | last post by:
I have set up for the GridView to auto generate delete buttons for each row. I was wondering if I can put custom code in the Row_Deleting event to handle some custom processing while the GridView...
5
by: Eric | last post by:
Hi, there are several gridviews all with a linkbutton which all trigger the same procedure. I need to know from which gridview the linkbutton has been clicked. Thanks Eric Here the code:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.