Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
zahidayar@gmail.com #1
Getting the column from a table cell
Hello everyone,
Is it possible (and if so, how) to obtain a reference to the column
given a table cell for a datagrid?
Zahid
zahidayar@gmail.com Guest
-
Adding more rows to one column/cell only?
I have a basic table of three columns and 10 rows. I want to add two more rows to the last column only (it's an ordering form, and the last... -
datagrid cell and bound column
Hi, i've registered a week ago at the managed newsgroups, but I didn't get a mail that the registration was ok. So I hope my question is answered. ... -
2 horizontal column, but with odd number of result = empty cell!!
I am a designer working with a programmer. I have designed a page for search results. This template is 2 columns large. But the user has the... -
Table cell width
I've programatically built a table. Some cells in the table have tables inside them. The ones that have tables inside have the correct width,... -
Using a rollover to kick off a flash in a different table/table cell
What I'd like to do but don't know if possible through Dreamweaver is the following: The web page has multiple tables. Use a rollover function... -
Elton Wang #2
Re: Getting the column from a table cell
What do you mean column, column of datagrid? And how do get the tablecell of
the datagrid?
<zahidayar@gmail.com> wrote in message
news:1128340985.372640.121990@g14g2000cwa.googlegr oups.com...> Hello everyone,
>
> Is it possible (and if so, how) to obtain a reference to the column
> given a table cell for a datagrid?
>
> Zahid
>
Elton Wang Guest
-
zahidayar@gmail.com #3
Re: Getting the column from a table cell
foreach (DataGridItem dgi in DataGrid1.Items)
{
// this code gives you the rows of the DataGrid
foreach (Control c in dgi.Controls)
TableCell tc = (TableCell)c;
// the code above gets you the cells of the row
....
}
so we can get any row of the datagrid by using the code
"DataGrid1.Items[i]"
where 'i' is the row index...is there similarly a quick way to get a
column? or once you have a cell, is it possible to get its parent row
or column...?
zahidayar@gmail.com Guest



Reply With Quote

