in my datagrid I want to delete the selected row, ??
Code: Select all
on MouseUp
put the dgHilitedIndex of group "my dg" into theIndex
DeleteIndex theIndex
end MouseUp

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on MouseUp
put the dgHilitedIndex of group "my dg" into theIndex
DeleteIndex theIndex
end MouseUp
Code: Select all
on MouseUp
put the dgHilitedIndex of group "my dg" into theIndex
send "DeleteIndex theIndex" to grp "my dg"
end MouseUp
Code: Select all
on MouseUp
put the dgHilitedIndex of group "my dg" into theIndex
dispatch "DeleteIndex" to grp "my dg" with theIndex
end MouseUp
thank you it's OKKlaus wrote:Hi Link76,
since "deleteindex" is a special DataGrid command, you need to "send" it to the DatagGrid!Or you can also use "dispatch":Code: Select all
on MouseUp put the dgHilitedIndex of group "my dg" into theIndex send "DeleteIndex theIndex" to grp "my dg" end MouseUp
BestCode: Select all
on MouseUp put the dgHilitedIndex of group "my dg" into theIndex dispatch "DeleteIndex" to grp "my dg" with theIndex end MouseUp
Klaus