Jump to content

List of selected row of uniStringGrid


naquan

Recommended Posts

I need to handle a list of Selected Row of uniStringGrid as below

 Add rowModal.selectionchange function in extEvents:

function rowModel.selectionchange(sender, selected, eOpts)
{
  ajaxRequest(this, '_rowselectchange', ['Selected='+selected,'eOpts='+eOpts]);
}

Add AjaxEvent function in Form

procedure TfrmTestGrid.aStringGridAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings);
var Col,Row:int16;
begin
    if EventName='_rowselectchange' then
        Memo_Result.Lines.Add('Selected='+Params.Values['Selected']+'; eOpts='+Params.Values['eOpts']);

end;

Result: Selected=[object Object],[object Object],[object Object],[object Object],[object Object]; eOpts=undefined

Could you please instruct me how to extract list of selected row index from the "object"

Best regards,

Nguyen Anh Quan

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...