473,785 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is RowCreated event good for removing columns from gridview footer?

Hi,

I need to modify gridview footer so it consists only of a single column that
spans all data columns in a gridview. I first tried DataBound() event (as
per suggestion found on the Net) but that did not always work. That is, the
initial gridview display was fine but after selecting a row the footer's
column count was 'restored' to the gridview's column count.
I then tried RowCreated event and it seems to work. Is this a good place to
do that or is it asking for trouble?

I'd welcome any suggestions. Pointers to any on-line docs that describe a
sequence of events fired during loading of a page that contains a gridview
would also be appreciated.

Thanks,
Bogdan

Sep 29 '08 #1
0 1379

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

Similar topics

1
1806
by: Pipo | last post by:
Hi, I want to bind my checkboxes during Rowcreated in the gridview. I want to render: <asp:CheckBox ID="chkDIS1" runat="server" Checked='<%# Bind("DIS1") %>' /> I tried: chk.InputAttributes.Add("Checked", "'<%# Bind(""" + "DIS" + dtt.Rows(intRowCounter).Item(0).ToString + """)" + "%>'") But then I get Checked="'<%# Bind("DIS1") %>'" notice the extra " before and after '<%# Bind("DIS1") %>'
7
1375
by: Maarten | last post by:
Hi, I have a gridview (2.0), in the page load I remove a couple of columns from the gridview which I dont need. (All the columns are databound) This works fine. But after a postback all the templatefields are not bind anymore. Only the boundfields are still bound. Why? and what can I do about this?
1
1745
by: bigbrorpi | last post by:
I'm having a problem with a Gridview bound to an objectdatasource. I've created a handler for onRowCreated with something as simple as: msgbox(e.row.cells(1).text) When the page loads, I see all of the data rows from my datasource, but the e.row.cells(1).text comes up blank for every row except the header and footer. Does anybody see what I might be missing here?
6
2967
by: hazz | last post by:
ICollection CreateDataSource() { dt.Columns.Add(new DataColumn("ReportInclude", typeof(Boolean))); for (int i=0; i<=10; i++) { dr = dt.NewRow(); dr = 0; dt.Rows.Add(dr); } void Page_Load(Object sender, EventArgs e) { ItemsGrid.DataSource = CreateDataSource(); void Item_Bound(Object sender, DataGridItemEventArgs e) {
7
17319
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi all! I have a gridview inside a datagrid (nested) for which (gridview) the rowcommand is not raised in order to delete a row from the grid! I also tried OnRowCommand="method", didn't work either! Does anyone know how can I make this work? Thanks in advance!
2
9051
by: Paul | last post by:
Hello All, I am trying to use the following RowCreated Event Handler to make the BackColor of a cell different if it has a particular value. protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) {
0
2657
by: =?Utf-8?B?YmVuamk=?= | last post by:
Hi, I've got a gridview that I bind programmatically to a view of a typed dataset. One column has a command button, and in the RowCreated event, I test to see if it's a DataRow, and if it is, I grab the button and attach a value: { Response.Write("<br/>" + e.Row.Cells.Controls.ToString() + "<br/>"); // Retrieve the LinkButton control from the first column.
2
1416
by: LsK_Lele | last post by:
Hi, I have a problem in my C# web project: I have extended the GridView class to add some sorting features. Additionally, I need to add a quick-filter table at the bottom of this control, that will allow me to implement this feature in all my grids. I thought to simply add a table in the gridview OnPreRender event, with soem cells and 1 link on each cell, but the Click event attached on the links never fires... here's my code:
0
2705
by: edurazee | last post by:
I am able to create BoundFields and Footer-rows dynamically like this in my GridView: protected void Page_Load(object sender, EventArgs e) { CreateGridView(); } private void CreateGridView() {
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.