How do I change Data Table row with an input?

I’d want the row name to change to the
other weapon that I have on me

So how does the player end with specific weapons in the first place? Each weapons is an actor that gets spawned?