Tuesday, October 29, 2019
Starbucks Coffee Shop Essay Example | Topics and Well Written Essays - 2500 words
Starbucks Coffee Shop - Essay Example The Starbucks brand has been known not only for its coffee and food, but mostly for being one of the companies which incorporates customer service as part of its brand proposition. Over the years, Starbucks has positioned itself as the third place, next to home, and office or school. This so-called Starbucks experience embodies the intangible aspect of the store's brand offer. The core products that Starbucks offers are tea, coffee and pastries. However, even though being a coffee shop does not confine the Starbucks brand as a store where such products can be bought. This intangible (Gabbott & Hogg, 1994) that accompanies the products that consumers pay for is comprised of the total experience they get in the form of service from the shop's crews. Apart from the physical product such as coffee and food, the service in the Starbucks requires customers to participate in the service. This according to Wolak, Kalafatis and Harris (1998) is the inseparability characteristic of service. Because consumption cannot be separated from the provider which is the Starbucks' staff, what Starbucks offers can only be achieved by the customer by participating in the service, i.e. placing her order, and paying and waiting for her drink. That is, it is required on the customer's part to personally take part in the service, which they do so by queuing in the line and waiting for her turn, placing the order that they desire and then waiting for it, either on the table (for food) or at the counter (for coffee). This is the inseparability of Starbucks. Variability/heterogeneity The third dimension of service according to Gabbott and Hogg (1994) is the heterogeneity of the service. In terms of Starbucks' service, its variability lies in the difference between employees at the service counter who greet the consumers. While the way employees get orders from employees and serve them their drink vary less, the methods as regards employees approach to interacting with the employees varies in terms of the way they greet their customers. This is because in the former action, the idea behind the action is the same; that is, the employee takes the order, processes it and delivers it to the customers. In the latter performance, although the idea is the same, there are reasons for variations that depend on the employees' ability to interact with the customer. Perishability The fourth dimension of service is perishability or its dependence on time as regards its consumption (Wolak, Kalafatis & Harris, 1998). Starbucks' service is perishable in that as the customers become more aware of the inability of supply of service, they can opt to
Sunday, October 27, 2019
Cultural Differences In Interpersonal Relationships English Language Essay
Cultural Differences In Interpersonal Relationships English Language Essay What is your friendship style. It is probably different for each one of you and you all have your own friendship style as well. Friendship consist of mutual liking, trust, respect, tolerance, and often even love and acceptance under any conditions. They are established usually on the basis of similarities or common ground between the individuals. Friendship in real life may involve intimate touching between individuals. We can be a friend no matter what reasons. It does not matter where we from, which countries. Therefore, I would want to discuss about the difference between friendship styles with cultural background especially, cultural differences in interpersonal relationships. Many foreigner comers to the United States mention that people from US do not know what true friendship is. Americans seem very friendly at first time, but the friendships do not forward to another step. Americans are usually very friendly and kind to people eventhough they are not really close with, and they also being more generous in what others talk about than people are from many other countries. Because of this, it can be make someone to confuse who comes from a country where people are deserved first. It may seem like some difficulty to other people who from many other countries. 2 Case descriptions Steve and Yarer first met in their chemistry class at an American university. Yarer was a student from Jordan. He was excited to get to know an American; he wanted to learn more about American culture and hoped that he and Steve would become good friends. At first, Steve seemed very friendly. He always greeted Yarer warmly before class. Sometimes he offered to study with Yarer. He even invited Yarer to eat lunch with him. But after the semester was over, Steve seemed more distant. The two former classmates didnt see each other very much at school. One day Yarer decided to call Steve. Steve didnt seem very interested in talking to him. Yarer was hurt by Steves change of attitude. Steve said we were friends, Yarer complained. And I said friends forever. What was wrong in the relationship between Yarer and Steve? Are Americans fickle? Why did Yarer feel confused? Because he is an outsider to American culture, he doesnt understand the way Americans view friendship. Americans use the word friend in a very general way. They may call both acquaintances and close companions Friends. Americans have school friends, work friends, sports friends and neighbourhood friends. These friendships are based on common interests. When the shared activity ends, the friendship may fade. 3 Analysis and solutions of the case 3.1 Problems and underlying cultural differences As you can see this case, there is one big problem. Steve and Yarer they did not understand their cultural background. Understanding ones cultural background is not easy and simple. However, if you want to make effort to make a friend, you should know about his or her cultural differences. What is the most important point to considered an appropriate topic to discuss about with your friends from many other countires. Many international students said that they do not know how to make a good conversation with Americans and suffered from make a friend in US, because of a lack of understanding ones cultural factors like background information. People from different cultures have different organizations of interpersonal relationships and they have different expectations of people in the same category. As you know, Steve is from US. He seemed very friendly at first time, but it did not go for long relationship. So Yarer disappointed about Steves behave and he confused why Steve changed. From this case, we can find out what is American friendship style like. According to Cornell University international student and scholars office department, they mentioned that what is American friendship like. The American pattern shows typical Americans friendships are like they initially kind at first time because they do not really put any meaning to word friend. For instance, in US, word friend mean anything like many kinds of friend. There could be work friend, study friend, gym friend and so on. Therefore you do not have to put a big meaning to be a friend. Just try to get use to their friendship style because we all have other kinds of friendship style depends on what countries we are from. 3.2 Solutions and recommendations Your friendship and the way you look at friendships will be influenced by your culture. In cultures around the earth we observe friendship defined by the way people interact with each other, how they display their affection toward close and loving friends. But the word friend has different meanings in different countries. The misunderstanding about friend during intercultural communication sometimes may hurt ones feeling and cause in bad effects as well. Many international newcomers or students feel very disappointed that they do not know Americans well. Here are some advices: Even though you wish that Americans will invite you to come over and hang it out to get to know each other, do not take it seriously. They may not put any meaning of it. Just try to take it as a refuse to your request. Take the first step as make you to get close with them. Do not be frustrated to ask about certain thing that you need to know. talk with them with interesting topics. Such as talk about your country, cultural background and etc. They will interest to those topics because differences between culture factors always sounds fun. -Approach to them with your own friendship style. Do not frustrated to talk to them and shared your thinking. They will welcome what you think about them and care about them as well. If you want to be a good friend, just show them your true heart. It will bring out a trustworthy friendship to you If you think too much to make friend from many other countries, it will not forward to another steps to move on. You should act with confidence. And do not forget you should try to know other peoples cultural background. Also, you need to understand and respect their cultural background. 4 Conclusion The meaning of friendship may give everyone to interest but it also sort of difficult to describe. Communication style differences can also bring out misunderstandings about the other persons intentions and purpose. A main point to having successful intercultural relationship is establishing an effective relational culture. It is true that understanding ones cultural background is sort of difficult however; we should put our effort to make a good relationship with people from many other countries. If you want to maintain a good friendship with others, you should respect others first and approach to them with your true heart. People from many other countries may have different friendships between you have so we should prepare to comprehend others cultural fact and background information. Like any other friendship, intercultural friendships still hold a lot of uniqueness. In fact, friendship rules are individually negotiated so that no two friendships are alike. We create our own relat ional culture that determines whether we will be successful. 5 Literature http://www.silvaultramindsystem.com: The Silva Methods latest and most up to date program for training your intuition http://www.china-nafsa.aief-usa.org/chpter3.pdf http://www.friendship.com.au/ http://www.helium.com/knowledge/143177-what-is-friendship
Friday, October 25, 2019
The Stereotypical Old-West Lawman :: Media Stereotypes Stereotyping
The Stereotypical Old-West Lawman Justice, duty, silence, wisdom, bravery, self-reliance, independence, respect; these are all characteristics of the old-west lawman. Matt Dillon, marshal of Dodge City, is just such a lawman. His sense of justice, duty, and wisdom epitomize the stereotypical old-west hero. In the episode entitled Fawn, Marshal Dillon is charged with a woman that escaped an Indian camp. She is accompanied by a young Indian girl. They are in Dodge till the womans husband arrives fetch her. While the woman is waiting for her husband a man comes to speak to her. He accepts her and the little girl. When the husband arrives he wants the girl to go to a reservation, but the woman refuses to let her go. The husband divorces the woman and goes back east. The woman must run with the little girl because the government wants to put the little girl on a reservation. Marshal Dillon arranges for the man that spoke to the woman earlier to take both the woman and the little girl away with him. This saves the little girl. Throughout the episode Marshal Dillon defends the woman, because he thinks she and the little girl are treated unjustly. In the episode entitled How to Kill a Friend, a pair of gamblers come to town. They try to bribe Marshal Dillon, but he refuses to take their bribe. Later, someone shoots at the marshal as a scare tactic. He figures out that the gamblers shot at him and he runs them out of town. Usually such men move on to another town and dont return; but these men returned. This time they brought a gunman to keep Dillon in check. The gunman turns out to be an old friend of the marshal. He tries to convince his friend to leave, but the man has turned bad and refuses. Eventually they get into a confrontation. In the process, Dillon shoots and kills his friend. Though he is saddened that he killed his friend, he had to do his duty. He had done his best to dissuade his friend, but had to fulfill his duty. In the episode How to Die for Nothing, a bunch of cowboys from Texas come into town. One of them is drunk and when the marshal tries to take away his gun, he tries to shoot Dillon. Dillon had to shoot the cowboy and he ended up dying.
Thursday, October 24, 2019
Consumersââ¬â¢ Perception of Quality Essay
This study primarily investigates the underlying factors that help to form consumer perception of quality toward private universities in Bangladesh. Five beliefs have been identified as salient to perceive the quality of private universities of Bangladesh. These are quality faculty members, university environment, campus facility, quality education and university image/reputation. Multi-item measures were used for data collection. Results revealed that three factors: campus facility, quality education and university image/reputation have positive and significant influence on perceived quality of private university in Bangladesh. Quality faculty members and university environment do not have significant influence on perceived quality of private university in Bangladesh. INTRODUCTION: Higher education in the university level has been imparted through two major types of institutions, namely: public university and private university. The concept of private university in Bangladesh is not a very ancient one. The emergence of private university in Bangladesh began with the enactment of a series of laws governing higher education in 1992. To fulfill the ever-growing demand of institutions of higher studies, at present there are 85 universities in Bangladesh where only 29 of those are public universities and remaining 56 are private (University Grants Commission Website). Establishment of private universities released the pressure of large-scale admission seekers for the limited number of seats available in public universities. The Private University Act 1992 mentions that the main objectives of private universities are to meet the growing demand of higher education and to create skilled manpower for the economic development of the country. The present study analyzes the perceived quality of private universities in Bangladesh focusing on some salient beliefs like quality faculty members, university environment, campus facility, quality education, image/reputation. Private universities in Bangladesh, no doubt, have contributed to responding to the social demand for higher education by absorbing a good number of students who otherwise could not have received university degree. The private universities are attracting a large number of students, while it seems that the reputation and teaching-learning process of the public universities are secularly on the decline, despite the fact that their worldwide reputation is higher than some of the private universities. The state has to form some sort of ââ¬Å"accreditation councilâ⬠and those private universities that satisfy certain critical minimum requirements of inputs, processes, and outputs will be given accreditation by the proposed council. RELATED CONSTRUCTS OF THIS STUDY: Faculty Members: Faculty members are one of the most important and crucial factors for any private universities. In order to evaluate perceived quality the key factor to be considered is the quality of the faculties as it has a significant influence on the perceived quality of private universities. Also to provide quality education the faculty members are also chosen from a pool of excellent academic background with national and foreign degrees. For ensuring the sound academic environment, now private universities are emphasizing research work of the faculty members. University Environment: The university environment is another factor for choosing university and perceiving the quality of a particular university. Therefore it is important that the university must have a congenial environment that will ensure friendly student-teacher relationship, politics free and no session jam or delay in achieving graduation, well organized authority, zero discrimination and good and healthy premis es. Campus Facility: The campus facility of any private university must have the basic facilities as well as some value added facilities as the students of private universities are paying some premium price in getting the education here. Quality Education: The students who get enrolled in private universities must have a minimum educational background to qualify for the admission test and finally enrolled in the university. The curriculum is designed to meet the international standard as well as the students should be able to take part in any competitive examination with full confidence as compared to those of public universities. The student-teacher ratio and the grading policy also have an impact on the quality education. Image / Reputation: The image or reputation of the university has an impact in the job market. The private universities like North South University, East West University, BRAC University, Independent University, Bangladesh (IUB), American International University, Bangladesh (AIUB) have been able to create an acceptance to the students and guardian community by their image and reputation. OBJECTIVES OF THE STUDY: The objective of this study therefore is to identify, analyze, and explore how the students perceive quality of the private universities and what are the extrinsic factors (faculty strength, university environment, campus facility, brand image, and quality of education) influencing perception of quality to the students and guardians. Each of these extrinsic cues has positive or negative impact on the studentsââ¬â¢ evaluation of private universities in Bangladesh. Having identified all the cues we need to find out which cue/s has/have more influence on the students while evaluating the perceived quality of a particular private university. REVIEW OF THE LITERATURE: Given the importance of the topic, it is not surprising that a great deal has been written about quality. Consistency limitation preclude a comprehensive review (Castleberry 1985), only the literature that is relevant to the objectives of this exploratory study will be discussed here. Unlike the approach taken in this paper, many authors have offered definitions of quality. For example, Crosby (1979) defined it as ââ¬Å"conformance to requirements,â⬠while Kotler (2006) defined it as ââ¬Å"the rated ability of the brand to perform its functions.â⬠Others have highlighted aesthetic considerations. Thus, Bohr (1980) notes that quality ââ¬Å"â⬠¦also means aesthetic and sensuous pleasure as wellâ⬠¦it is timeless style, simple elegance and a sensation that makes people feel comfortable and satisfied to be near it.â⬠Garvin (1984), however, concedes that the definition of quality ââ¬Å"remains a source of confusion.â⬠He states that quality often is equated with conformance to tight manufacturing standards but that there are many other dimensions of quality as well, to wit: performance, durability, reliability, serviceability, the ââ¬Å"bells and whistles,â⬠and aesthetic elements. In a similar view, Gronroos (1984) acknowledges the need to define quality of services in terms of consumer perceptions and suggests that service quality may be a function of a number of variables, i.e., consumer expectations, technical and functional characteristics, and image. After classifying definitions of quality that have appeared in marketing and other disciplines, Holbrook and Corfman (1985) developed a definition of quality within the framework of value theory, specifically: quality is the ââ¬Å"extrinsic, self-oriented, passive value.â⬠An empirical test of their conceptual definition was only marginally successful and the authors concluded that they had provided only a partial answer to the quest ion of the meaning of quality. Years ago Wittgenstein (1953) stated that to understand quality from the consumerââ¬â¢s standpoint, one must be concerned with the everyday use of the word. However, as evidenced by examples from the literature, researchers generally have not adopted this approach. Moreover, no study was found which explored the extent to which consumersââ¬â¢ definitions of quality depend upon the product or service being considered. Another line of inquiry in the current study is whether consumers evaluate quality before and/or after purchasing a product or service ant, if so, how. Economists, who probably have contributed most to this topic, are divided into two groups. Wilde (1981) represents those who feel quality is a search attribute (i.e., quality perceptions are formed before purchase). Others (e.g., Hey and McKenna 1981), however, feel that perceptions of quality are formed only after purchase and hence quality is an experience attribute. Of the many issues relating to quality, consumer researchers seem to be most interested in how consumers evaluate quality. Most work has explored the effects of various cues and cue combinations on perceptions and evaluation of quality (Olson 1972, Olson 1977, and Monroe and Krishnan 1985). Recently, Gronroos (1984) and Parasuramen, et al. (1984) have developed conceptual motels of service quality and have identified possible determinants of perceived service quality. The fact that these are service quality motels suggests that the evaluation, as well as the definition, of quality is likely to be context-bound. Gronroos, however, has only tested his model with a sample of service business executives, and the Parasuramen, et al. motel is now being tested empirically. Therefore, considerable work must be done before a better understanding of the meaning and role of quality from the consumerââ¬â¢s perspective is achieved. ATTITUDE TOWARDS PRIVATE UNIVERSITY: As a purpose of the study, we examine the information integration process by which consumers form Attitudes toward Private University (APU). As per cognitive process of consumer decision- making, consumers combine some of their knowledge, meanings, and beliefs for choosing private university to form an overall evaluation. These considered beliefs might be formed by interpretation processes or activated from memory. All Beliefs about Private University: The pretest is conducted to identify the salient beliefs towards private university. Convenience sample of 26 students from North South University and East West University have been provided a survey question asking the attributes they consider to perceive the quality of private university.
Wednesday, October 23, 2019
Ethical Dilemmas Essay
Having a career in the human services field is one of the most rewarding jobs. It requires compassion, a sense of urgency and an overall desire to help others. But with the rewards the job comes with, it also does come with a handful of tough situations to come in contact with. As a human service worker, you many come across a range of clients from a family just needing assistance to a client in a life threatening situation. The importance of understanding these issues in depth and knowing how to execute the problems with the safety of the client in mind is crucial. Conchita is a twenty five year old female who has confided to her case worker that she is being sexually harassed by her classroom training instructor. Her case worker is indeed faced with a few dilemmas in Conchitaââ¬â¢s case. As stated by the National Organization for Human Services, there are two statements that would apply to this case. Statement one which reads ââ¬Å"human service professionals negotiate with clients the purpose, goals, and nature of the helping relationship prior to its onset as well as inform clients of the limitations of the proposed relationships (Ethical Standards, n.d.)â⬠works directly with statement three. This statement reads ââ¬Å"human service professionals protect the clientââ¬â¢s right to privacy and confidentiality, except when such confidentiality would cause harm to the clients or others, when agency guidelines state otherwise, or under other stated conditions. Professionals inform client of the limits of confidentially prior to the onset of the helping relationship (Ethical Standards, n.d)â⬠. These two statements would best suit this case due to the confidentially of Conchitaââ¬â¢s case. Although the social worker has given her trust and privacy to Conchita, her health may be in imminent danger and therefore the confidentiality may have to be broken in order to better protect her. This all ties in with statement one because it states that as a professional you are to inform your clients that there are limits to theà social worker- client relationship. This step in the beginning stages of starting a case is extremely important for your client to understand that their health and safety matters and if need be, confidentiality will be broken to prevent further danger. In short, there are two possible solutions that come to mind when I see this case. The social worker can ignore protocol and ethical standards by respecting Conchitaââ¬â¢s wishes and not reporting the situation; or he/she can inform Conchita on the importance of rectifying the situation, bringing the harassment to an end by filing a grievance, removing him from the classroom, and also giving her proper counseling to overcome the situation. In the end, the harassment needs to come to an end for the overall well-being of the client. If I was her case worker, I would remind her of the conversation we had when we first met. Confidentiality is very important, and I have agreed to protect her word unless I believe she is in danger. Sexual harassment can be detrimental to oneââ¬â¢s well-being so I would have to report the inappropriate behaviors. Although it is not ethical to break confidentiality, it is legal (Mandell & Schram, 2012, pg. 516) and in the end it could save my clients from years of pain and suffering. Because it is legal and for the fact that there are legal protection such as privileged communication to support human service workers of having to open up about a situation that was promised to the client to be confidential, I would use these to my advantage to get Conchita help in her situation. Also, there may be more than one victim and by telling me what happened, Conchita may have helped others come forward. In Hermanââ¬â¢s case, he shared with his counselor that he is no longer using controlled substances but he has recently sold some to a friend. His probation officer called his counselor to inquire about Herman and shared that he has some suspicion about Herman using and selling drugs again, and if so his parole will be revoked. When referring to the Ethical Standards for Human Service Professionals provided by the National Organization for Human Services, Hermanââ¬â¢s situation would apply to statement three. ââ¬Å"Human service professionals protect the right to privacy and confidentialityà except when such confidentially would cause harm to the client or others, when agency guidelines state otherwise, or under other state conditions. Professionals inform clients of the limits of confidentiality prior to the onset of the helping relationship (Ethical Standards, n.d)â⬠. Privacy, defined as the right to be left alone (Mandell & Schram, 2012, pg. 522) is one thing that Herman believes he has to right to. Although Herman most likely confided in his counselor figuring he is protected by his right to privacy, he has put someone elseââ¬â¢s life in danger by providing them with a drug. Also, being that he is on parole he has violated his parole order. I believe telling Hermanââ¬â¢s parole officer would be completely unethical. Herman has confided in me because he knows that we have a confidentiality agreement and he trust me when it comes to telling me things that he normally wouldnââ¬â¢t tell someone. I would refer back to the ethical guidelines and read statement twenty seven which says ââ¬Å"Human service professionals seek appropriate consultation and supervision to assist in decision-making when there are legal, ethical or other dilemmas (Ethical Standards, n.d)â⬠. Hermanââ¬â¢s act of selling drugs and being on parole is now touching on a legal matter, because he is not supposed to be participating in any illegal activities while on parole. I believe although it is unethical and would break the confidentiality between Herman and myself, I would tell his parole officer what he has expressed to me. He has sold drugs to a friend, which can cause harm and even result in death and more importantly he has broken the law. In the last case, Indira has admitted having sexual relations with a young man who is believed to have a sexually transmitted disease. She is extremely worried and does not know what to do but does not want to tell her parents what is going on. Indira is only fifteen years old, so to know she is a minor is very important in a case like this. Statement four of the Ethical Standards for Human Service Professionals is an important statement to remember for Indiraââ¬â¢s case. ââ¬Å"If it is suspected that danger or harm may occur to the client or to others as a result of a clientââ¬â¢s behavior, the human service professional acts in an appropriate and professional manner to protect the safety of those individuals. This may involve seekingà consultation, supervision, and/or breaking the confidentially of the relationship (Ethical Standards, n.d)â⬠. Sexually transmitted diseases are nothing to joke around about or to take lightly. As her counselor and for her being a minor, I would have to take my concerns to her parent or guardian in order to have her checked out by her doctor. Her overall health may be in danger if in fact she has had unprotected sex with someone who has a sexually transmitted disease. I would express my concern to Indira. Doing some research with Indira and educating her as to what the dangers are and what a sexually transmitted disease really is. Also, I would remind her of our confidentiality agreement and reinforce that if there are reasons for me to believe that she is in danger then I would need to call her parents or she would need to tell them herself. In the guidelines of Ethical Standards for Human Service Professionals in statement fifteen it states ââ¬Å"human service professionals describe the effectiveness of programs, treatments, and/or techniques accuratelyâ⬠. This ethical standard would apply to me as the professional in Indiraââ¬â¢s case because I would gather information on support groups, or specialty doctors to her parents in order to make sure she receives the proper care now and counseling or youth groups to support her, let her know she isnââ¬â¢t alone and how to be more cautious when it comes to sexual interactions in the future . The human service field can be extremely challenging at times. There will be many times that clients want to confide in you, they trust your privacy and confidentiality agreement and do tell you things they donââ¬â¢t just tell anyone. Some of these secrets are currently or will eventually cause harm to the client and may have legal bindings to break the privacy agreement that was made in the beginning of the counselor-client relationship. Using the National Organization for Human Service Professionals has given detailed guidelines on what is expected of and how to properly execute ethical dilemmas. References Mandell, B., & Schram, B. (2012). Understanding Legal Issues. In An Introduction to Human Services Policy and Practice. National Organization for Human Services. (n.d.). Retrieved March 1, 2015, from http://www.nationalhumanservices.org/index.php?option=com_content&view=article&id=43
Tuesday, October 22, 2019
Chapter Nine Summary essays
Chapter Nine Summary essays In this section of the book, Paul finally understands what the war is about and why he is there. But he learned this grim reality after a traumatizing event. He begins to see the devastation and agony the war brings accompanied with its empty heart. After being reassigned to a flank that is brought in whenever the battle plans go wrong, Paul prepares for battle. But he is reassured knowing his faithful comrades, Kat and Albert, are at his side. But Kat and Albert cant assist him with his mind struggle for the company of his mother. While conversing with Kat and Albert, Pauls hunger can be contained no longer and he pulls out his mothers potato-cakes. Paul pauses for a minute and pictures his mother in front of a hot stove with a broken heart. Pauls thought of this brings him to tears, but he must push this to the depths of his heart in preparation for the arrival of the Kaiser. The soldiers spirits are lifted after being handed new equipment that shunned their old ones. Paul and his comrades begin to converse of the war and the Kaisers arrival which erupts into a debate of who is the enemy and who is the good guy. They regard that both sides are defending their homes and their fatherland so it stands to reason of who is committing wrong doing. This debate then strikes up an argument of how the war could have been avoided, but Tjaden clears the air with the view that the war will bear peace for future generations. Following the inspection of camp by the Kaiser, the soldiers become enraged after finding out that the new equipment was only a front for the Kaisers inspection. Paul feels safety after hearing he and his flank will be going to Russia because of rumors going around camp, but he discovers that it was actually a rumor. He will just be going through the forest, up the line once again. In the forest is w...
Monday, October 21, 2019
Delphi DBGrid MultiSelect (Explanation and Example)
Delphi DBGrid MultiSelect (Explanation and Example) Delphis DBGrid is one of the most widely used DB-aware components in database related applications. Its main purpose is to enable your applications users to manipulate records from a dataset in a tabular grid. One of the lesser known features of the DBGrid component is that it can be set to allow multiple row selection. What this means is that your users can have the ability to select multiple records (rows) from the dataset connected to the grid. Allowing Multiple Selections To enable multiple selection, you only need to set the dgMultiSelect element to True in the Options property. When dgMultiSelect is True, users can select multiple rows in a grid using the following techniques: Ctrl Mouse clickShift Arrow keys The selected rows/records are represented as bookmarks and stored in the grids SelectedRows property. Note that SelectedRows is only useful when the Options property is set to True for both dgMultiSelect and dgRowSelect. On the other hand, when using dgRowSelect (when individual cells cannot be selected) the user wont be able to edit records directly through the grid and, and dgEditing is automatically set to False. The SelectedRows property is an object of type TBookmarkList. We can use the SelectedRows property to, for example: Get the number of rows selectedClear the selection (unselect)Delete all the selected recordsCheck whether a particular record is selected To set dgMultiSelect to True, you can either use the Object Inspector at design time or use a command like this at runtime: DBGrid1.Options: DBGrid1.Options [dgMultiSelect]; dgMultiSelect Example A good situation in which to use dgMultiSelect might be when you need an option to select random records or if you need the sum of the values of the selected fields.Ã The example below uses ADO components (AdoQuery connected to ADOConnection and DBGrid connected to AdoQuery over DataSource) to display the records from a database table in a DBGrid component. The code uses multiple selection to get the sum of the values in the Size field. Use this sample code if you want to select the entire DBGrid: procedure TForm1.btnDoSumClick(Sender: TObject);var i: Integer; sum : Single;beginif DBGrid1.SelectedRows.Count 0 thenbegin sum : 0; with DBGrid1.DataSource.DataSet dobeginfor i : 0 to DBGrid1.SelectedRows.Count-1 dobegin GotoBookmark(Pointer(DBGrid1.SelectedRows.Items[i])); sum: sum AdoQuery1.FieldByName(Size).AsFloat; end; end; edSizeSum.Text : FloatToStr(sum); endend;
Subscribe to:
Comments (Atom)