TokenEdit Usage - To automatically complete each data entered in the text box - c#

I'm doing a Paint Sales Program in C # - DevExpress with EF. In the SQL Server database. When entering orders I need to enter more than one paint pattern in a TextBox (TextBoxEdit). Normally, I can call that record with autocomplete when I enter a record, but all I want is a few patterns that I have entered. Separating patterns with commas. I used TokenEdit in DevExpress for this, but it doesn't have a DataSource property, so it gives an error when transferring the data inside it to the BindingSource that I've linked to the grid.
How do I proceed? Could you please help I haven't found a valid solution for 1 week. There are people here who are more knowledgeable than me, so maybe you have a different solution to the problem.
I will be glad if you help me.
Thank you.
I will be glad if you help me.
Thank you.

Related

Data table put into excel, rows in column read "Number Stored as Text"

I would like to first start off by thanking anyone and everyone that is able to help me with this problem. My searches are not returning anything for this specific problem....
I have a c# application that runs a stored procedure and exports the results to an Excel file. However, one column in the report is supposed to be an Integer, but is being copied to excel as text.
The part of my query that calculates this column is as follows:
(str(100.0 * cast((y.NumReferrals) as INT)/cast((x.numCustomers) as INT), 6,2)) AS "Percentage"
I added CAST in there in hopes that it would resolve the issue but it appears as though I need to make the fix in C#. Can anyone help point me in the right direction? Im not sure how to do this conversion in C# for this type of problem.
Thank you!
Thanks to Dan Wilson, who commented above, I took a second look at the built in function I was using and came to this conclusion:
Cast(ROUND(100.0 * (y.NumReferrals)/(x.numCustomers),3,2) as decimal(6,2)) AS "Percentage"
It seems to work! Im sure there is a better way to go about this but this is the way i've been able to get it to work so I will go with this until someone else can provider better insight.
Thank you!!

Get data from mysql database after login in combobox c#

I have tried alot of things and also did research here on stackoverflow but can`t find anything that works for me.
I want to fill my Combobox with data that is saved in my database, the data need to be collected after I am loged in but the box stays empty..
Here is the code on pastebin: http://pastebin.com/Lys2FHLV
Hope someone can help me with this beceause I am trying to fix this for like 4 days now..
(btw. I just started with c# and I am not a professional..)
Insert a break point after you get the values for your combo box, check till there if you have the right values or an empty list. If the list is empty you will know that the problem is in the code before getting the list. Learn to debug your code by following it and understanding what is happening.

.rdlc Report freeze first column with a Row Group

i am really frustrated because I tried and googled several hours for this simple problem. I hope someone can help me here.
I want to freeze the first column of my tablix located on my .rdlc report.
I have tried both posibilites described here
but only the column headers get freezed, the row headers (first column in my understanding) don't stay visible while I scroll to right...
Maybe I do something essencial wrong and don't see it, please help me with this little, frustrating thing...
I wanted to upload a Screenshot of my tablix at design time but the upload tool returns a error...maybe it works later when there is a need for it.
Edit: Here is the uploaded screenshot
Best Regards
Alexander

Linking a database table cell to a TextBox

I'm looking for a way to link a database table to a textbox in my WPF application. I need to take a specific cell from the table and display it in a read only text box. I've not been able to find a solution personally, and the internet has held no favor either. Thanks for the help in advance!
Post any questions in the comments, I'll edit this question and make it more specific.

How to make Product List in ASP.net C#

how to display Product list in ASP.net C#? i'm creating e-commerce website for my thesis i need to display it in a grid form like this >> sample product list with limitation per page example 10 products per page please i need your help
I would use a DataList control. Here you can find a good tutorial
There are different ways to do that. There's no one right or correct solution. It all depends where you're comfortable workin' with.
Can you please show us what you've already done?
Now with regards to the filtering, you may use a combination of GridView + DropDownList (where DDL will be used to filter the result). You can look for some great tutorials online.
I hope it helps you.

Categories