|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?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!!! This might be done with the hittest function?
this is like: hti:=Grid.HitTest(e.X, e.Y); Hans Show quoteHide quote ".NETn00b" <revlovesh***@yahoo.com> schreef in bericht news:1133035252.237400.307090@g49g2000cwa.googlegroups.com... >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!!! >
Other interesting topics
custom control client values gone with postback
Cool Web Parts? Server Control - object not saved when button clicked Problems with Custom Web Controls in VS 2005 Mouseover, mouseout, click etc on datagrid. DataList Issue DropDownList Value Setting focus to TextBox Time textbox control TableAdapter Scalar or "Single Value" Queries |
|||||||||||||||||||||||