Jump to content

TUniDBGrid Remove focus from rows


kaki

Recommended Posts

Ok, I'll try it.
I have a grid (TUniDBGRID), what I need is to insert some rows that are like a header, which will be defined with a field of the dataset, for example Type=0, under the headers there are other editable records, that's why the initial question , if it's possible for those header records to lose focus and look like panels or something. I hope I have explained myself. Thank you!

Link to comment
Share on other sites

 

Thanks,

I'm checking the beforeselect method. a question, how can I validate a field of the model, I do it this way but it doesn't work for me

 

function beforeselect(sender, record, index, eOpts)
{
 if ( record.EmpNo == 5 ) {
        return false;
    };         
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...