Ravi Kiran
November 23rd, 1999, 11:37 PM
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
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