| 
	 | 
| 
			
			 | 
		#1 | 
| 
			
			 Участник 
		
			
	 | 
	
	
	
		
		
			
			
			Как программно выделить все строки
			 
			
			Как программно добиться выделения всех строк в гриде на форме т.е. действия аналогичного нажатию Ctrl+A или клика в верхнем левом углу грида?
		 
		
		
		
		
		
		
		
	 | 
| 
	
 | 
| 
			
			 | 
		#2 | 
| 
			
			 Microsoft Dynamics 
		
			
	 | 
	
	
	
		
		
		
		 
			
			Попробуйте так: 
		
		
		
		
		
		
		
	Grid.mouseDown(5, 5, 0, false, false).  
		 | 
| 
	
 | 
| 
			
			 | 
		#3 | 
| 
			
			 Участник 
		
			
	 | 
	
	
	
		
		
		
		 Цитата: 
	
		
			Как программно добиться выделения всех строк в гриде на форме т.е. действия аналогичного нажатию Ctrl+A или клика в верхнем левом углу грида?
		
	 
По CTRL+A не все выделяется  | 
| 
	
 | 
| 
			
			 | 
		#4 | 
| 
			
			 Участник 
		
			
	 | 
	
	
	
		
		
		
		 Цитата: 
	
		
			Сообщение от Zan
			
			 
Ну только тогда уж не CTRL+A а CTRL+SHIFT+END. 
		
	По CTRL+A не все выделяется  | 
| 
	
 | 
| 
			
			 | 
		#5 | 
| 
			
			 Сенбернар 
		
			
	 | 
	
	
	
		
		
		
		 
			
			Access to forms cache 
		
		
		
		
		
		
		
	To access the forms record cache in a grid control from X++ code use these form data source methods: int mark( [int mark] ) Set or get the mark flag on the current record. This flag can be used in the other methods, and a value other than 0 will result in the record showing up as marked in grids. int markRecord(record r, [int Mark]) Set or get the mark flag on the specified record. This method can be used if the record has been found using a select or method call outside the form, and the cache will be searched for the record (on RecId match), and the mark value will be set/returned. record getFirst([int Mark = 0], [boolean fetchahead = TRUE]) Return the first record with the specified mark value. The fetchAhead parameter can be used to specify if only the cached records should be looked at (fetchAhead=FALSE), or if the cache should be expanded, and all records looked at. record getNext() Uses a previous getFirst, and returns the next record matching the specified mark value.  | 
| 
	
 | 
| 
			
			 | 
		#6 | 
| 
			
			 Участник 
		
			
	 | 
	
	
	
		
		
		
		 X++: element.task(778); 
				__________________ 
		
		
		
		
	Axapta v.3.0 sp5 kr2  | 
| 
	
 | 
|
| За это сообщение автора поблагодарили: JoS (1), Suhovic (1). | |