.NET Programming
--
Questions
--
Followers
Top Experts
Help with adding radio buttons in DataGridview column using VB.NET
Hi,
I would like to give users the choice to choose AND or OR when combining search for multiple columns, how do i add two radio buttons in each row?
Thanks,
victor
I would like to give users the choice to choose AND or OR when combining search for multiple columns, how do i add two radio buttons in each row?
Thanks,
victor
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
You will need to create your own Cell and Column for the DataGridView.
Here is an excellent example given in msdn itself.
https://msdn.microsoft.com/en-us/library/aa730882(v=vs.80).aspx
Here is an excellent example given in msdn itself.
https://msdn.microsoft.com/en-us/library/aa730882(v=vs.80).aspx
Can you pictorially represent what you want? It might be easier for me to understand on what you are trying to achieve if I see your mock up screen and even see if there is a better way to handle it.
Hello,
Thanks for the comments. Below is an example of what I am trying to do
Grid:
Fields        Operator
SN Â Â Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
AGD Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
FIF Â Â Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
When user selects SN default is ANd but user can also select OR button to build the string to dearch for fields with identical values.
Thanks,
Victor
Thanks for the comments. Below is an example of what I am trying to do
Grid:
Fields        Operator
SN Â Â Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
AGD Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
FIF Â Â Â Â Â Â Â Â Â Â Â .AND Â Â Â .OR
When user selects SN default is ANd but user can also select OR button to build the string to dearch for fields with identical values.
Thanks,
Victor






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
How about a drop down with AND and OR as entries in operator column, by default AND shall be selected?
Karrtik,
A dropdown would also work. Sorry for the late reply.
Victor
A dropdown would also work. Sorry for the late reply.
Victor
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Hope you are having a nice long weekend and wish you a merry Christmas!

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Thank you, Merry Christmas.
Thank You.
.NET Programming
--
Questions
--
Followers
Top Experts
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.