checkbox on datagrid

Posted on 2002-05-08
Last Modified: 2010-05-02
i would like to implement a security for my application.. like the one used in SQL server. When u create a role in SQL and edit its permissions... that's how i wld like my form to function
Question by:killer5
LVL 43

Accepted Solution

TimCottee earned 50 total points
ID: 6998301
That is a very wide statement, with many answers and just as many questions.

What I assume that you mean is that you want to be able to set by user permissions on entry fields within the form that you are using. In many ways this is actually quite simple in theory though it can be time consuming to set up. You need first of all to decide on where to store the users/passwords/permissions. The most logical solution is a database of some sort. Then you need to decide what sort of permissions are going to be applicable, View/Edit/Delete/Add etc. Once you have all of that decided and mapped out it is a relatively simple task to map these permissions to VB actions. For example a view only permission would be equivalent to a textbox with .Locked = True, Edit would be .Locked = False and so on. Having decided how to implement each permission type on each control in the form you then apply these relevant code structures dependent on the user / passsword that accesses your application.

Sorry not to give you a plug and go solution but you really need to define these things first and then ask specific questions if you need to about solving specific problems when you get to them.

Author Comment

ID: 6998326
don't worry about the database and the code...
what i want is a dynamic datagrid or something like that, which supports checkboxes, like the datagrids in SQL's security interfaces.
LVL 43

Expert Comment

ID: 6998344
I understand now, I got the wrong end of the stick, read the body but not the title properly. You cannot use the standard data grid as you are obviously aware. You do though have a couple of options. You can either use the MSFlexgrid (I know this doesn't have checkboxes as such but you can use the .CellPicture property to use images which look like the checkbox in the various states). This is actually quite effective as you can then have the different colour and shape checks as you have with the SQL one. Apart from intrinsic controls to have real(-ish) checkboxes you need to purchase a commercial control such as the VS Flexgrid from which does have this functionality (also as this is the same grid that the MS Flexgrid is based on you may be pretty familiar with the properties and methods of it.)
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.


Expert Comment

ID: 7014166
This question is reasonably current, others below are not and require your attention.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder or Mindphaser will return to finalize these if they are still open in 7 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.

*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link 
POINTS FOR EXPERTS awaiting comments are listed in the link below
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
Thanks everyone.
Moderator @ Experts Exchange
LVL 70

Expert Comment

by:Éric Moreau
ID: 7014415
points to TimCottee

Expert Comment

ID: 7014543
Thanks a lot, this has been done.
Moondancer - EE Moderator

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question