What is the etiquette for a wearing a kilt to such events as weddings, funerals, graduations, etc.? Is it customary to ask the host, bride or groom? Do you just "show up as is"?

Is there certain attire to wear to a funeral or wedding such as a jacket or tie along with the kilt?

I ask these questions because my wife asked if I would be wearing my kilt to the funeral. I opted not to so as not to create any bad situation or mis understanding with the family.
As a piper, I attend dozens of events all through the year kilted. I suggest:

WEDDINGS: Ask the bride; it's her big day. Don't bother asking the groom; he lost control a long time ago. Generally it'll be a non-issue unless you're a member of the immediate wedding party, as long as you're properly dressed for the occasion. Kilted or not, don't attend a big three-ring horse-and-pony show wedding in the big cathedral downtown dressed for an informal luau-style beach wedding.

FUNERALS: At a minimum, a decent shirt, tie, & brogues, kilted or trousered. A jacket's even better. There's nothing inherently wrong with wearing a proper kilt, properly accessorized. IMHO Utilikilts and their ilk are simply not appropriate for such situations; they're more like the kilted equivalent of blue jeans. Neither wear a waistcoat, Prince Charlie & bow tie unless you really expect others to show up in tuxedos and ballgowns.
Aside from twits who can't remember to silence their cell phones (invariably, at every single event I pipe, at least one goes off at the least appropriate moment), this is one of my all-time greatest pet peeves; folks who slouch up to "pay their respects" looking like they've just gotten out of bed and are now on their way to change the oil on a tractor. It's truly beyond my comprehension.

GRADUATIONS: Same as funerals.

DINNERS, ETC: Generally, the dress will be stated on the invitation. When in doubt, ask the host. Again, there's nothing inherently wrong with wearing a proper kilt, properly accessorized, but showing up in a Utilikilt-type garment with a Guinness T-shirt when the invitation clearly stated "jacket & tie requested" displays a shocking degree of disrespect (to the point of outright contempt) for the host. If such social conventions impinge upon your sense of personal freedom and self-determination, then don't attend.

Within reason, when in doubt you're usually going to do better by overdressing just a wee bit. If all the other gents in attendance are in polo shirts and shirt sleeves, you can always loose the coat and tie; if they're all in coats and ties and you show up in a polo shirt, there's really not much you can do at that point.

Just curious if there are ever any events where it is NOT ok to wear a kilt or some fashion there of....
Bungee jumping comes to mind, but to each their own...