|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Get Viewing Row in DataGridCould someone let me know how to get the current top row in a datagrid that
is viewing by the user please? I got a datagrid connected with a datatable with 5000 records. I can use the CurrentCell to get the focus cell. However, when the user scroll to other pages without clicking on a cell. I am unable to know where the user is viewing. Thanks in advance! Jck wrote:
> Could someone let me know how to get the current top row in a datagrid that I am not sure how this is done with DataGrids. For DataGridViews,> is viewing by the user please? > > I got a datagrid connected with a datatable with 5000 records. I can use the > CurrentCell to get the focus cell. However, when the user scroll to other > pages without clicking on a cell. I am unable to know where the user is > viewing. > > Thanks in advance! however, there is a property called FirstDisplayedCell. This is just a guess. With DataGrid, if the currently selected row goes off the visible area, the next control is selected. Reselecting the DataGrid may select the first visible record of the DataGrid. Then, between the selected row and the VisibileRowCount property, you may be able to discern which rows are viewable. B.
Unique an array of strings
Co-existing ASP.NET 1.1 and 2.0??? Accessing Structure Members Communication between threads Transactions through Remoting Function doesn't return a value on all code paths Simple xpath question *** Using DataReaders to populate combo boxes - please help!!! *** Monitor Software Installation Changes surpress newline on Enter press |
|||||||||||||||||||||||