Link to home
Create AccountLog in
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

Avatar of Victor  Charles
Victor Charles🇺🇸

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

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of bharathi sundarbharathi sundar

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

Avatar of Karrtik IyerKarrtik Iyer🇮🇳

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.

Avatar of Victor  CharlesVictor Charles🇺🇸

ASKER

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

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Karrtik IyerKarrtik Iyer🇮🇳

How about a drop down with AND and OR as entries in operator column, by default AND shall be selected?

Avatar of Victor  CharlesVictor Charles🇺🇸

ASKER

Karrtik,

A dropdown would also work. Sorry for the late reply.

Victor

ASKER CERTIFIED SOLUTION
Avatar of Karrtik IyerKarrtik Iyer🇮🇳

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Karrtik IyerKarrtik Iyer🇮🇳

Hope you are having a nice long weekend and wish you a merry Christmas!

Free T-shirt

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.


Avatar of Victor  CharlesVictor Charles🇺🇸

ASKER

Thank you, Merry Christmas.

Avatar of Victor  CharlesVictor Charles🇺🇸

ASKER

Thank You.
.NET Programming

.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.