how to get all selected items of datagrid
Posted: Thu Oct 31, 2013 7:29 pm
i have a datagrid having a field and checkbox in a row, i need to get the all selected row
i am using following code
but it is giving me wrong items all the time.
Please help me and let me know how to get the right indexs
Thank in Advance
i am using following code
Code: Select all
repeat with theLineNo = 1 to the dgNumberOfLines of group "DataGrid 1"
if the hilite of button theLineNo of group "DataGrid 1" is truethen
put tData[theLineNo]["Unit"] into theUnit
put "Insert into Unitss(ID,Units,UUID) values('" & theID &"','" & theUnit &"','" & UID &"');" into tSQL
revExecuteSQL tDatabaseID, tSQL
end if
end repeat
Please help me and let me know how to get the right indexs
Thank in Advance