*******This Code is use for DisPlay Back Ground Colour on the basis of
Record
----------------------------------------------------------------------
(1) ##### this is for decaration in foms's ClasssDeclaration
for the perpose of Colour the record.
public class FormRun extends ObjectRun
{
int principal;
int nonPrincipal ;
}
(2)##### this is for the purpose of initializing colour of that perticular
record. this code is written on Forms's Init().
public void init()
{
principal = winapi::RGB2int(192,192,192);
nonPrincipal = winapi::RGB2int(255,255,255);
super();
}
(3)#### this is written on DataSource.
public void displayOption(Common _record, FormRowDisplayOption _options)
{
;
spnSizesEuivalances = _record;
if(spnsizeGroups::findPrincipal(spnSizesEuivalances.SizeGroups).PrincipalGrp)
_options.backColor(principal);
else
_options.backColor(nonPrincipal);
}
Subscribe to:
Post Comments (Atom)
Hi, its a nice post. i have a scenario in which i want to change the colour of the grid cell, as i clicked/select that particular cell.i dont know how to do it,beacuse the displayOption method of the datasource is not called when i select that cell.so is there any way to do it, how can i call the DisplayOption method manually.
ReplyDeleteDisplayOption method takes two arguments. i dont know how to initialize and pass the second argument that is FormRowDisplayOption to the displayOption method.
Please give me any solution if you knw it.
Thnaks.
Yasir
What has your government done to help save you from your financial instability? you strive to survive and yet you hear stories of how your leaders have become terror in your entities... is time to make a different. for will have made money, and we have also come to help you out from your long time of financial suffering. clearing of credit card is made available, software for hacking ATM machines, bank to bank hacking and transfer, change your school grade and become something useful in the society. we also have other form of services such as Facebook hack, whats-app hack, twitter hack, i cloud hack, tracking of smart phones, hacking CCTV, installation of software on desktop and PC, snap-chat hack, Skype hack, wire wire, bitcoin account hack, erase your criminal record and be free for ever. database hack and many more. e-mail: cyberhackingcompany@gmail.com for your genuine hacking services and we shock we your findings.
Delete