473,404 Members | 2,187 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,404 software developers and data experts.

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 1350

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

Similar topics

1
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:...
7
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...
1
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...
6
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...
7
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...
2
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,...
0
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...
2
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...
0
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(); ...
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: 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...
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...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.