Re: scroll datagrid programmatically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

"GatesOfIshtar" <GatesOfshtar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CF127DFE-BE85-4C43-9695-D742B56FCF9B@xxxxxxxxxxxxxxxx
> Hi,
>
> In my program, I'm displaying a data grid with 1000 rows. The 100th row
> should be selected, so I use select method of datagrid to select it.
> However,
> I also want the datagrid to scroll that row. How can I accomplish? So far

Set DataGrid.CurrentRowIndex to the same rownr as the one you select.

HTH,
Greetings

> could not get it.
>
> Thanks


.



Relevant Pages

  • Datagrid customization
    ... I have a datagrid with about 5 columns. ... It's datasource is a dataset that ... also contains a 'comments' field, but I'm not displaying it, as it would take ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • scroll datagrid programmatically
    ... I'm displaying a data grid with 1000 rows. ... I also want the datagrid to scroll that row. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • SqlCeResultSet and table styles question
    ... Can datagrid table styles be used with a bound resultset? ... If I can't connect the data grid ... Prev by Date: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Scroll bar in datagrid
    ... I am displaying one row in a datagrid, and i made its height larger than the ... datagrid height because it contains long descriptions, so a vertical scroll ... Prev by Date: ...
    (microsoft.public.data.ado)
  • Scroll bar in datagrid
    ... I am displaying one row in a datagrid, and i made its height larger than the ... datagrid height because it contains long descriptions, so a vertical scroll ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)