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

x,y position on datagrid

Hello,
I am using datagrid.
For its event : ItemDataBound,
I want to know of each iteration this method is called,
what is the current column & row ?

Thanks :)

Nov 19 '05 #1
5 1464
The itemDataBound is raised after an item is data bound to the grid. The
item is a row (not a single column). The event passes an object e as
DataGridItemEventArgs. Use e.Item.ItemIndex to bring the row index and use
the e.Cells collection to access the columns of that row (item). I have a
sample where I use this event on my website
http://www.societopia.net/Samples/webform2.aspx
---
http://www.societopia.net
http://www.webswapp.com
"Eitan M" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,
I am using datagrid.
For its event : ItemDataBound,
I want to know of each iteration this method is called,
what is the current column & row ?

Thanks :)

Nov 19 '05 #2
Just note that in most cases you can use also PreRender event in which the
grid is already fully built and you can just loop through the items.

Eliyahu

"Eitan M" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,
I am using datagrid.
For its event : ItemDataBound,
I want to know of each iteration this method is called,
what is the current column & row ?

Thanks :)

Nov 19 '05 #3

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:up**************@TK2MSFTNGP15.phx.gbl...
Just note that in most cases you can use also PreRender event in which the
grid is already fully built and you can just loop through the items.

Eliyahu

About PreRender event - I need some help, please.
What's is PreRender ?
What's the different between PreRender and PageLoad ?

Thanks :)
Nov 19 '05 #4
Thanks :)
Nov 19 '05 #5
PageLoad runs in the beginning. PreRender is your last chance to do anything
with the page, just before the resulting html gets send to the client.

Eliyahu

"Eitan M" <no****@nospam.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:up**************@TK2MSFTNGP15.phx.gbl...
Just note that in most cases you can use also PreRender event in which the grid is already fully built and you can just loop through the items.

Eliyahu

About PreRender event - I need some help, please.
What's is PreRender ?
What's the different between PreRender and PageLoad ?

Thanks :)

Nov 19 '05 #6

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

Similar topics

2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
0
by: Frnak McKenney | last post by:
I have a (small) multi-table database application which allows edits, print reports, and has two scrolling screen displays which show information merged from multiple tables. I'm having trouble...
3
by: tomi | last post by:
Hi I have following problem. I have a datatable filled with some data. Each row holds its ID (column named "Row_ID") DataTable dtTable; I have a datagrid to which I assign this datatable....
3
by: Kenneth | last post by:
Hi, In a webform I have a datagrid in a certain position using gridlayout. <asp:DataGrid id="dgrdSkada" style="Z-INDEX: 107; LEFT: 16px; POSITION: absolute; TOP: 200px" runat="server"...
5
by: JezB | last post by:
There are a few references on the net about how to restore a page's scroll position over a postback. This is a simple one which works for me: eg....
3
by: Ben | last post by:
Hi, I have a page with a datagrid that you have to scroll to see. I'm using the StrengthControls SmartScroller as recommended to maintain my scroll position. Anyway, inside the datagrid I have...
1
by: Tor Inge Rislaa | last post by:
Rearranging the row position in a datagrid Hi I have a datagrid that I fill from a dataset. When the data is displayed in the grid I want the user to be able to move the position of a row. E.g....
1
by: karups | last post by:
Hi I have binded a dataset to my datagrid. Datagrid is present inside a >DIV></DIVtag of specific height. Only 5 records will be visible at a time when i edit the 10th record, the page...
0
by: karups | last post by:
Hi I have binded a dataset to my datagrid. Datagrid is present inside a >DIV></DIVtag of specific height. Only 5 records will be visible at a time when i edit the 10th record, the page...
4
by: Blackbrand | last post by:
I'll start off with what i'm trying to do: i want to search my data programmatically and then jump to the row in the datagrid. My data will almost allways go out of the datagrids bounds so if the...
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
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...
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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.