DataGrid: Setting the first visible row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi people,

How can I set the first visible row by index in a DataGrid?

Thanks
 
Hi,

I had faced the same problem before, for making a particular row the first in a datagrid, regardless of the actual position. Since I did not find any 'graceful' solution, I did this:
add a new column in the datatable, set ascending values to the rows for that column, set the sort of the datagrid to that column, and set the value of the row required to the least value. The column is hidden of course.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top