473,372 Members | 1,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Datagrid binded to sqlceresultset

I have the following questions:

1., Can I mapping datas in a datagrid binded to a sqlceresultset? Fe.: In the database there is "1" in a field, but i would like to display "yes" instead of in the datagrid.

2., Can I color somehow datagrid rows based on the datas ( by sql where if possible )? Fe.: I want to color to red all the rows which meets the following sql criteria WHERE col1 = '1' AND col2 LIKE '%query%' ? I would like to do this dynamically and i dont want to write an sql interpreter if not neccessary.

3., Can I add a plus row to all datagrid pages dynamically to sum the above rows values?

Thanks for help.
Dec 17 '08 #1
5 5325
9,735 Expert Mod 8TB
All the information you need on DataGridView and any other .NET controls can be found in the MSDN Library. This resource should get you pointed in the right direction....there are multiple articles on the DataGridView there. I recommend bookmarking the MSDN Library and using it as your primary resource when developing in .NET.

Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics. Please take the time to read over the posting guidelines specifically the section on Before you post your question.

Dec 18 '08 #2
First: I make you sure I spent a lot of time with googling and seaching on msdn about these things before I post and I cannot found the answers.
Second: If you would read the title you should see the "sqlceresultset" word, which means this is a .netcf application. There is no support of datagridwiev in the compact framework.
So these questions are not so trivials as you think.

Dec 19 '08 #3
9,735 Expert Mod 8TB


You've posted your question in the wrong forum. I've moved it to the Mobile development forum where you can get more help with your problem :)

I thought "sqlceresultset" was typo! I've never used .NETCF before so I've never seen a sqlceresultset before.

Normally when I see these types of questions the person hasn't actually looked at MSDN and so I link them to it because it's a great resource for regular .NET applications....I don't know if there's anything there about .NETCF stuff though. I should probably look into this since I'm planning on developing a mobile application in the near future.

Good Luck

Dec 19 '08 #4
9,735 Expert Mod 8TB
Bear wtih me here because I don't know much about MSDN.

According to this, the .NET Compact framework does not support the DataGridView class and its supporting types (you already know this). So you have to use a DataGrid.

The DataGrid control is a .NET control that is supported in both the regular .NET framework and the compact version of it. If you go to the MSDN information on the DataGrid and look at the top of the page you will see a number of drop down lists that let you filter what to display. Specifically, you can filter what Frameworks are displayed by unchecking the ones that are not the .NET Compact Framework.

So, MSDN does provide information for the Compact Framework as well as the regular Framework and the XNA Framework.

Anyways, I'm still looking into your questions...
Dec 19 '08 #5
Another grid for the .net compact framework: http://www.cf-technologies.net/compactgrid.php. There is a CellPaint event (to custom representation of a cell's value or to color the cell's content). Also you can set the Summary property of a column...
Sep 18 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

by: VAhid Mardani | last post by:
HI ; When I Bind The Datagrid To a Dataview In the Table Style Collection.Mapping Name Not have any table name; please tell me How To Change Datagrid Table Style When It was Binded to A Dataview...
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
by: David | last post by:
Hello, I would like to change the style of a specific column in a DataGrid - into a ComboBox. Namely, when the user selects that specific column (in any row), he will see a ComboBox which is...
by: Stephen | last post by:
Hey everyone, I am trying to run some validation on the on-click event of a button to check and see whether a datagrid contains any rows inserted into it and if it does then I'd like it to work as...
by: Ben | last post by:
Hi I've got a problem with a custon control that inherits form the UserControl class and that used the overlib javascript library. The control works well in a standard form but when I used it in...
by: Familjen Karlsson | last post by:
Hi I want to add columns in a Datagrid and I want the Columnheaders to show and empty cells to show without adding any records. For example, sometimes there aren 't any records in the database,...
by: SilviaLl | last post by:
Hello, I am programming in VB .NET 2005. I've a datagridview binded a Dataset, this dataset has a table with a column. In the datagridview there is a combobox that is load with another dataset....
by: uveper | last post by:
Does anybody know how to get a number of rows when using DataTable with datasource that is an SqlCeResultSet. I use the following code to "select" the data into DataTable: SqlCeCommand cmd =...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.