Hi,

I'm using a form with a StringGrid and a few buttons, by default the buttons are disabled and I'm wanting them to enable when certain entries are selected in the StringGrid.

I've got the code to enable/disable the buttons depending on what StringGrid row is selected on the "OnSelectCell" event.

Problem is, by default when you open the form the 1st row is selected by default but that event doesn't fire. (it doesn't when you clear the cells and add new entries either)

Is there a different event I can use that would catch all of these? If not what would you do?

Thanks in advance.

on form startup check the current cell location

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.