I am using a GridView in ASP.net with a pre-added buttons. The GridView's data source is from a list of BookingRowStatus
BookingRowStatus(Row, m_AStatus, m_BStatus, m_CStatus, m_DStatus, m_EStatus, m_FStatus)
The arguments that you can see are the Columns. I added RowCreated event to check m_XStatus to enable/disable the buttons depending on the text inside it ("X" = disable | "Y" = enable).
Next is I added a RowCommand event which should catch the event when a button in GridView is clicked. However, whenever I click the button, it invokes RowCreated instead of RowCommand. I added a break point on both of the said Events and I can see that it doesn't even pass RowCommand; it goes straight to RowCreated.
My question is how do I Invoke RowCommand when I press a button on the DataGrid?