473,413 Members | 2,044 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,413 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 5327
Frinavale
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.

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

Gábor
Dec 19 '08 #3
Frinavale
9,735 Expert Mod 8TB
@Destiny111

Oh!

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

-Frinny
Dec 19 '08 #4
Frinavale
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

1
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...
2
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....
1
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...
2
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...
6
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...
1
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,...
0
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....
1
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 =...
0
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
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.