I am fed up of my son getting down from the table and running around, playing with his toys, getting into mischief, running in and out and getting food that he grabs and goes everywhere etc while we are trying to eat.
I decided to institute a new rule that he must stay at the table until dismissed. He doesn't have to eat if he doesn't want to but he has to sit with us and if he gets down before being dismissed then he goes in time out.
I remember having a similar rule applied to me as a child but I was older I can't remember anything much from mealtimes when I was 2.
I tried taking his food away if he gets down before but he just fills up on snacks later - fruit and things - and doesn't seem at all put out by not having food or only a few bites at mealtimes.
At a cafe he is much better at staying at the table (although honestly his behaviour in cafes is deteriorating compared to how it used to be) but I imagine that's because there's strangers around and he is a bit shy.