Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
.NETn00b #1
What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?
What is the equivalent of CurrentRowIndex for the DataGrid control in
ASP.NET?
I am trying to convert the following windows app method, to use in an
ASP.NET application:
private void DataGrid1_CurrentCellChanged(object sender, EventArgs e)
{
int c = DataGrid1.CurrentRowIndex;
DataGrid1.Select(c);
DataGrid1_Click( sender, e);
}
The problem is that there is no CurrentRowIndex property for the
DataGrid web control. Is there something else I can use, that will give
me similar functionality?
I also need to figure out what I can use in place of the Select method,
which also doesn't exist for the DataGrid web control. Would
SelectedIndex work? Can this method be adapted?
Thanks!!!
--
Sent via .NET Newsgroups
[url]http://www.dotnetnewsgroups.com[/url]
.NETn00b Guest
-
Collection property "could not be initialized" in design mode for custom datagrid control
Hello all, I've been working on a custom datagrid (custom web control inherited from DataGrid). I am attempting to add a new collection property... -
Allowing a new design property for control inheriting DataGrid
Hi, I created a custom control inheriting from DataGrid I would like to put a custom property for design time manipulation I added the... -
Is there an Equivalent control in .NET for Datawindow control Of PB
Is there any equivalent control in .NET for the Power builder DataWindow control? I am explaining the Datawindow architecture to some extent. ... -
Collection Property problems with Image control ImageUrl property and URLBuilder
Been using reflector and examining what Microsoft does with the Rows property in the Table class. It looks like all of the items added to the rows... -
More Collection Property problems with Image control ImageUrl property and URLBuilder
After a few more hours of debugging I discovered that the URLBuilder solution that I mentioned previously does not work because there is no service... -
Elton Wang #2
Re: What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?
You can use
datagrid.SelectedIndex
or in some events, such as ItemDataBound, ItemCommand
use e.Item.ItemIndex
HTH
".NETn00b" <revloveshade@yahoo.com> wrote in message
news:e%23w4KIs8FHA.808@TK2MSFTNGP09.phx.gbl...> What is the equivalent of CurrentRowIndex for the DataGrid control in
> ASP.NET?
>
> I am trying to convert the following windows app method, to use in an
> ASP.NET application:
>
> private void DataGrid1_CurrentCellChanged(object sender, EventArgs e)
> {
>
> int c = DataGrid1.CurrentRowIndex;
> DataGrid1.Select(c);
> DataGrid1_Click( sender, e);
>
> }
>
> The problem is that there is no CurrentRowIndex property for the
> DataGrid web control. Is there something else I can use, that will give
> me similar functionality?
>
> I also need to figure out what I can use in place of the Select method,
> which also doesn't exist for the DataGrid web control. Would
> SelectedIndex work? Can this method be adapted?
>
> Thanks!!!
>
> --
> Sent via .NET Newsgroups
> [url]http://www.dotnetnewsgroups.com[/url]
Elton Wang Guest



Reply With Quote

