Bound DBGrid: How find out Row Selection , and one more problem
In Bound DbGrid, a row can be selected by clicking on the First Column ( where it displays '>' ). Now how do i know that a row has been selected? Say i want to allow "Select" btn only after a row has been selected?
I Cannot depend on the underlying record set objects current record, because there will be a valid record even if i click on any of the columns.
ANd i Dont want to set the mode to select the entire row on click anywhere .
2. MSDN Docs say SelStartRow and SelEndRow are defined for DBGrid. But i dont see those properties in a bound DBGrid. Is that because it is bound?
3. IF i want to make one of the colums (ie Filed on the underlying recset ) not visible ( and hence not editable by user) how can i do it? Is sql the only way out?
Answers for any/all of the questions will be rewarded with Points :-)
RK
RK
Re: hint for question 1 Thans a lot!
Thanks a lot Lother.
I dont know how i missed this!... like they say when you are too keen to do something, you will miss the bigger picture!:-)
BTW, SelChange triggers for both Row and Col header click, this coupled with .SelStartCol and SelEndCol can be used to deferentiate between them, i think
Thanks again
RK