table.rows.clear()
table.ClearSelection
table.CurrentCell = Nothing
--doesn't help
table.CurrentRow.Selection = False--gives error
Forum topic · General Scripting
By artrender · 2013-02-25
table.rows.clear()
table.ClearSelection
table.CurrentCell = Nothing
--doesn't help
table.CurrentRow.Selection = False--gives error
Comments (8)
Comment policy
THANKS A LOT
this code worked for me:
STILL ERROR
Even with counter = 0
Attachments
change all (counter) to [counter]
Yep, I think we miss the syntax conversion :)
In DotNet languages call to item by index is surrounded with round brackets "()", for example:
, while in MaxScript with square brackets "[]", like:
.
So, fix that too (in all places), and lets hope there no more chunks.
I didn't use uny value
I have just used your code! I don't what value should I use for counter!
integer
the "counter" in the example code serve as variable, it s'd be integer value, for example 0.
Thx Anubis!
I get error
gives -- Unknown property: "selected" in undefined
probably something missed
what you used for "counter" value?
I not use DataGridView so take my words as friendly attempt to help. What I did is just quick search.
I'm not sure if there exist #Selection property for CurrentRow, but found that CurrentCell cannnot be set to Nothing. You s'd set that property to valid Cell which s'd be visible as well, i.e. need to scroll if necessary. Shortly, something like this:
I hope this help