Select row from data Grid View and select - grid

I have a test case for users which i want to select a user from User Group and delete only GUEST user.
please find below screen shot.
1.
2.
in advance thanks.

Related

Record set-up in a page in PeopleSoft

Wanted to ask if someone here knows how to set-up records as prompt table in pages through PeopleSoft.
So I have this EXT_ORG_ID (External Org ID Field) in my Level 0, and an ACCOUNT (Account Number) field in my level 1.
Now my ACCOUNT field has a prompt table named TP_ORG.
Inside TP_ORG are 6 fields:
EXT_ORG_ID
ACCOUNT
EFFDT
EFF_STATUS
DESCR
DESCR254
where EXT_ORG_ID, ACCOUNT and EFFDT are my keys. EXT_ORG_ID as the highest key.
Now it is my understanding that given that EXT_ORG_ID is a key to TP_ORG that it should show some results in my prompt table TP_ORG,
The problem is that it doesn't pull any. It doesn't even show the EXT_ORG_ID value in the level 0.
I dont know if this is enough information to give but can anyone help me about this?
Thanks

SQL Server : sum of 2 columns in each row display

I am using SQL Server. I have 2 columns Passed students and Failed Students in my database.
How to write a query which displays both these columns along with a third column which is Total Students which displays the sum of the entries in the row?
EDIT
It is not allowing me to ask another question.So,posting it here:
I have a hyperlink field in my gridview as below:
[Please refer comment for the code.For some reason it doesn't get posted here.]
Its basically a runId.When I click on this hyperlink I am redirected to a page called RunAnalysis.I want to access the value of the runId which was clicked in this page.
I was thinking of using query string but there is no event as far as I know that is fired on click of the hyperlink.
My question is how do I access the runId value in this page ? Can someone tell me if some event is fired so that I can send a query string.
Thanks.
You haven't given a lot of background information so I am assuming many things in my response.
Here is a simple aggregated result set:
SELECT SUM(Passed) AS [Passed],SUM(Failed) AS [Failed],COUNT(*) AS [TotalStudents]
FROM dbo.Students
Now if there is some grouping you want to do then you would add a GROUP BY clause like so...
I'm creating a new column because I don't know your schema:
SELECT GradeLevel, SUM(Passed) AS [Passed],SUM(Failed) AS [Failed],COUNT(*) AS [TotalStudents]
FROM dbo.Students
GROUP BY GradeLevel
ORDER BY GradeLevel

access QBE to count record number

I am a new user in Access. I am trying to use count function to calculate the total records number in my table. How can I use QBE (not sql) to achieve it please?
Thanks.
Drag a field - preferably a unique ID field - into the QBE gid, and click the "Totals" button on the Ribbon Bar.
You'll now see a new row in the QBE called "Total:". This is a combo box- select Count from it, and run the query.

filtering datagrids

In a simple scenario there is a webpage with a datagrid containing 2 columns; first name and country. There's a filter set on the grid to filter out all Australians. There's a form on the same page to add new records and a user decides to add someone from Australia. This record does not meet the filter criteria so would not normally display. However, this might be confusing from the users perspective as they might not have confidence that the person has been successfully added or have forgotten that the filter will mean the new entry is not displayed.
What is the best way to handle this from a usability perspective?:
display the new entry but leave the list in a state inconsistent
with the filter criteria?
filter out the new entry but risk confusing the user?
provide feedback to the user that the record was successfully
added but may be filtered out of the list?
?
Three tools I use, Mingle, Jira, and Quicken, use this implementation very effectively; a slight modification to your number 3:
Provide feedback to the user that the record was successfully added, but won't be shown, and provide a link to the record using its record identifier (record number + title).

Limiting gridview row selection in ASP.Net web page

Have a gridview control which will show X amount of rows. I want to the user to be able to select y number of rows, but limit the maximum selected rows to a set view, such as 3. If the user tries to select a fourth row I don't want them to be able to until they unselect a row.
Anyway to do this?
Thanks
Since the GridView works with single selections, how are you allowing them to select the values in the first place, on the client or server? If on the client, you can use JavaScript to do this; simply store an array of the table rows that are selected, if the length is three, then block adding to the array until the user deselects...
Please update how you are doing it, and I can post further.

Resources