Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
GeneralRe: Force Scroll in DataGrid Pin
James T. Johnson4-Aug-02 21:28
James T. Johnson4-Aug-02 21:28 
Use the CurrentCell property to change which cell is visible (ie, set it to the first column in the last row).

It looks really stupid this way; but here is the code to do that

myGrid.CurrentCell = new DataGridCell(rowIndex, 1);

[rant]
Who ever thought it would make sense to assign a cell to the current cell property must've been smoking something at the time. To me this says replace the contents of the current cell with this new cell. Its not until you look at the documentation for DataGridCell that you realize it is used only to identify a cell by location and not to hold the actual contents of it. Dead | X|
[/rant]

James
"Java is free - and worth every penny." - Christian Graus
GeneralRe: Force Scroll in DataGrid Pin
mike.5-Aug-02 8:15
mike.5-Aug-02 8:15 
GeneralMarshaling Pin
Kastro4-Aug-02 10:52
Kastro4-Aug-02 10:52 
GeneralRe: Marshaling Pin
Rama Krishna Vavilala4-Aug-02 11:18
Rama Krishna Vavilala4-Aug-02 11:18 
GeneralRe: Marshaling Pin
Kastro4-Aug-02 11:29
Kastro4-Aug-02 11:29 
GeneralRe: Marshaling Pin
Rama Krishna Vavilala4-Aug-02 11:32
Rama Krishna Vavilala4-Aug-02 11:32 
GeneralRe: Marshaling Pin
Kastro4-Aug-02 11:42
Kastro4-Aug-02 11:42 
GeneralRe: Marshaling Pin
Rama Krishna Vavilala4-Aug-02 11:44
Rama Krishna Vavilala4-Aug-02 11:44 
GeneralRe: Marshaling Pin
Kastro4-Aug-02 11:52
Kastro4-Aug-02 11:52 
GeneralRe: Marshaling Pin
Rama Krishna Vavilala4-Aug-02 12:01
Rama Krishna Vavilala4-Aug-02 12:01 
GeneralRe: Marshaling Pin
Kastro4-Aug-02 12:03
Kastro4-Aug-02 12:03 
GeneralRe: Marshaling Pin
James T. Johnson4-Aug-02 13:23
James T. Johnson4-Aug-02 13:23 
GeneralAsync WebRequest Pin
leppie4-Aug-02 9:50
leppie4-Aug-02 9:50 
GeneralRe: Async WebRequest Pin
James T. Johnson4-Aug-02 13:19
James T. Johnson4-Aug-02 13:19 
GeneralRe: Async WebRequest Pin
leppie5-Aug-02 1:53
leppie5-Aug-02 1:53 
GeneralRe: Async WebRequest Pin
James T. Johnson5-Aug-02 2:16
James T. Johnson5-Aug-02 2:16 
GeneralRe: Async WebRequest Pin
leppie5-Aug-02 6:39
leppie5-Aug-02 6:39 
QuestionIs a font TrueType? Pin
Nnamdi Onyeyiri4-Aug-02 5:51
Nnamdi Onyeyiri4-Aug-02 5:51 
GeneralGetting an icon from a DLL Pin
Nnamdi Onyeyiri4-Aug-02 5:19
Nnamdi Onyeyiri4-Aug-02 5:19 
GeneralSelective OverRiding Pin
Paul Watson4-Aug-02 4:30
sitebuilderPaul Watson4-Aug-02 4:30 
GeneralRe: Selective OverRiding Pin
James T. Johnson4-Aug-02 4:38
James T. Johnson4-Aug-02 4:38 
GeneralRe: Selective OverRiding Pin
Paul Watson4-Aug-02 5:23
sitebuilderPaul Watson4-Aug-02 5:23 
GeneralDesigner time and Run time Pin
Nish Nishant4-Aug-02 0:56
sitebuilderNish Nishant4-Aug-02 0:56 
GeneralRe: Designer time and Run time Pin
Paul Watson4-Aug-02 4:20
sitebuilderPaul Watson4-Aug-02 4:20 
GeneralRe: Designer time and Run time Pin
James T. Johnson4-Aug-02 14:03
James T. Johnson4-Aug-02 14:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.