2009-07-02 4 views
0

HI, Syncfusions Gridlist 컨트롤을 사용Syncfusion Gridlist 제어

:

사용자는 여러 행 (하나 또는 다수)을 선택할 수 있어야 후 I 프로그래밍 선택된 행을 결정하는 방법이 필요하다. 그리드에서 상황에 맞는 메뉴를 사용할 것이므로 그 시점에서 어떤 것들이 선택되어 있는지 찾아야합니다.

바로 그리드를 클릭하고 ('E'를 사용하여) 당신에게 주어진 어떤 인수를 볼 때 트리거되는 그리드 이벤트에 대한 큰

답변

0

확인 될 것 위에 어떤 도움.

1

당신은이 같은 선택한 항목에 액세스 할 수 있습니다

foreach (SelectedRecord selectedRecord in Grid.Table.SelectedRecords) 
       { 
        TypeBoundToDataGrid typeBound= selectedRecord.Record.GetData() as TypeBoundToDataGrid ; 

       } 

은 참고 사항 : 다중 선택을 위해

:

Grid.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; 
     Grid.TableOptions.AllowSelection = GridSelectionFlags.None; 
     Grid.TableOptions.ListBoxSelectionColorOptions = GridListBoxSelectionColorOptions.ApplySelectionColor; 
     Grid.TableOptions.ListBoxSelectionCurrentCellOptions = 
      GridListBoxSelectionCurrentCellOptions.WhiteCurrentCell 
      | GridListBoxSelectionCurrentCellOptions.MoveCurrentCellWithMouse; 
이 작업을 수행하여 그리드에서 선택 모드를 설정해야합니다

SingleSelection의 경우

Grid.TableOptions.ListBoxSelectionMode = SelectionMode.One; 
     Grid.TableOptions.AllowSelection = GridSelectionFlags.None; 
     Grid.TableOptions.ListBoxSelectionColorOptions = GridListBoxSelectionColorOptions.ApplySelectionColor; 
     Grid.TableOptions.ListBoxSelectionCurrentCellOptions = 
      GridListBoxSelectionCurrentCellOptions.WhiteCurrentCell 
      | GridListBoxSelectionCurrentCellOptions.MoveCurrentCellWithMouse; 

Josh