Multi-row select for Grid control: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
m
Fix category Visual Dataflex into DataFlex
m (trying out geshi -to see if it works on this page)
m (Fix category Visual Dataflex into DataFlex)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
== Example ==
== Example ==
Paste this code into a test view to test it and see how it works. Once compiled, you will see a narrow column on the left that acts as a margin. Clicking this gray cell will highlight the row. Using SHIFT or CTRL and clicking another gray cell will select multiple rows.
Paste this code into a test view to test it and see how it works. Once compiled, you will see a narrow column on the left that acts as a margin. Clicking this gray cell will highlight the row. Using SHIFT or CTRL and clicking another gray cell will select multiple rows.
<source lang="vdf">
<source lang="dataflex">
   Object oGrid1 is a Grid
   Object oGrid1 is a Grid
     Set Location to 7 26
     Set Location to 7 26
Line 135: Line 135:
     Send DoFillgrid
     Send DoFillgrid
   End_Object // oGrid1
   End_Object // oGrid1
 
 
   Object oButton1 is a Button
   Object oButton1 is a Button
     Set Size to 14 70
     Set Size to 14 70
Line 152: Line 152:
     End_Procedure // OnClick
     End_Procedure // OnClick
   End_Object // oButton1
   End_Object // oButton1
</source>


</source>


[[Category: Visual Dataflex]]
[[Category: DataFlex]]

Navigation menu