473,799 Members | 3,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inquiring about good Datagrid

Folks,

I'm starting winforms project and I need grid control that will give
me control I want. I was using FarPoint spread in VB6 to get similar
results.

I need:
1. Grid that works in unbound mode
2. I have control over each cell as far as locking, colors, (fonts?)
and events.
3. Ability to place buttons in cells
4. Ability to place dropdown in cells.
Can I do all that with VS2005 DataGrid?

Thanks,
Ivan

May 22 '07 #1
7 1729
Ivan,

I think that if you are using .NET 2.0 (you said VS.NET 2005) the
DataGridView is a better option, as it has more of the options you are
looking for (I believe it can do all of those things).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Katit" <id*********@gm ail.comwrote in message
news:11******** *************@p 77g2000hsh.goog legroups.com...
Folks,

I'm starting winforms project and I need grid control that will give
me control I want. I was using FarPoint spread in VB6 to get similar
results.

I need:
1. Grid that works in unbound mode
2. I have control over each cell as far as locking, colors, (fonts?)
and events.
3. Ability to place buttons in cells
4. Ability to place dropdown in cells.
Can I do all that with VS2005 DataGrid?

Thanks,
Ivan

May 22 '07 #2
Yes, .NET 2

So, I can use DataGridView to edit data and so on?
My customer will want expierence similar to Excel (moving between cells)

Thank you

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ivan,

I think that if you are using .NET 2.0 (you said VS.NET 2005) the
DataGridView is a better option, as it has more of the options you are
looking for (I believe it can do all of those things).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
May 22 '07 #3
Well, an experience similar to Excel is very different from the four
things that you pointed out in your original post. Depending on the level
of similarity you want from Excel, a DataGridView could be what you are
looking for, or not provide anything close to what you are looking for. If
you require things like formulas and the like, then the DataGridView is
going to do nothing for you. But if you need to just enter values, then the
DataGridView should be fine.

However, if you need an Excel-like interface, have you considered
developing an add-in for Excel?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"katit" <ka***@discussi ons.microsoft.c omwrote in message
news:2B******** *************** ***********@mic rosoft.com...
Yes, .NET 2

So, I can use DataGridView to edit data and so on?
My customer will want expierence similar to Excel (moving between cells)

Thank you

"Nicholas Paldino [.NET/C# MVP]" wrote:
>Ivan,

I think that if you are using .NET 2.0 (you said VS.NET 2005) the
DataGridView is a better option, as it has more of the options you are
looking for (I believe it can do all of those things).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

May 22 '07 #4
Well. Excel add-in will not do what I need. Users used to maintain
spreadsheet in excel and once it was saved -data was updated on big plazma
screen. It was small user base and there was only 1 person maintaining
spreadsheet.

Now I need to develop app which will allow multiple users to edit this data
and will lock same record on other users screens to prevent others from
editing. It has to be real-time and distributed possibly in different
buildings.

I already have working model and approach, now I just need to give them
similar user expierence.

They don't need formulas and such. But they may ask to set specific fonts
and colors. Also, I may need to color cells conditionally to highlight some
data and they need to TAB and use curstors to have similar expierence
navigating spreadsheet.

I need good control over events so I can detect when cell exited and if data
was modified so I can unlock record or lock when they start to type. Things
like this..

"Nicholas Paldino [.NET/C# MVP]" wrote:
Well, an experience similar to Excel is very different from the four
things that you pointed out in your original post. Depending on the level
of similarity you want from Excel, a DataGridView could be what you are
looking for, or not provide anything close to what you are looking for. If
you require things like formulas and the like, then the DataGridView is
going to do nothing for you. But if you need to just enter values, then the
DataGridView should be fine.

However, if you need an Excel-like interface, have you considered
developing an add-in for Excel?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"katit" <ka***@discussi ons.microsoft.c omwrote in message
news:2B******** *************** ***********@mic rosoft.com...
Yes, .NET 2

So, I can use DataGridView to edit data and so on?
My customer will want expierence similar to Excel (moving between cells)

Thank you

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ivan,

I think that if you are using .NET 2.0 (you said VS.NET 2005) the
DataGridView is a better option, as it has more of the options you are
looking for (I believe it can do all of those things).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m


May 22 '07 #5
In this case, the DataGridView should be able to do what you want.
However, locking the data in the manner in which you describe isn't the best
idea, I think, as it doesn't scale well. You are performing pessimistic
locking. In this design, you are placing a lock on the underlying data (if
you are using a database, then you will have to manage this yourself, as
ADO.NET doesn't support this model inherently, assuming you are using
ADO.NET) while it is being edited.

In the optimistic model (which is what ADO.NET supports), you submit
your change, but check against some sort of property on the record (a
timestamp, or a comparison of all the values) to see if someone else has
made changes to the underlying data. If they have, you deny the changes.
If they haven't, then the changes are allowed to be comitted.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"katit" <ka***@discussi ons.microsoft.c omwrote in message
news:D3******** *************** ***********@mic rosoft.com...
Well. Excel add-in will not do what I need. Users used to maintain
spreadsheet in excel and once it was saved -data was updated on big plazma
screen. It was small user base and there was only 1 person maintaining
spreadsheet.

Now I need to develop app which will allow multiple users to edit this
data
and will lock same record on other users screens to prevent others from
editing. It has to be real-time and distributed possibly in different
buildings.

I already have working model and approach, now I just need to give them
similar user expierence.

They don't need formulas and such. But they may ask to set specific fonts
and colors. Also, I may need to color cells conditionally to highlight
some
data and they need to TAB and use curstors to have similar expierence
navigating spreadsheet.

I need good control over events so I can detect when cell exited and if
data
was modified so I can unlock record or lock when they start to type.
Things
like this..

"Nicholas Paldino [.NET/C# MVP]" wrote:
> Well, an experience similar to Excel is very different from the four
things that you pointed out in your original post. Depending on the
level
of similarity you want from Excel, a DataGridView could be what you are
looking for, or not provide anything close to what you are looking for.
If
you require things like formulas and the like, then the DataGridView is
going to do nothing for you. But if you need to just enter values, then
the
DataGridView should be fine.

However, if you need an Excel-like interface, have you considered
developing an add-in for Excel?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"katit" <ka***@discussi ons.microsoft.c omwrote in message
news:2B******* *************** ************@mi crosoft.com...
Yes, .NET 2

So, I can use DataGridView to edit data and so on?
My customer will want expierence similar to Excel (moving between
cells)

Thank you

"Nicholas Paldino [.NET/C# MVP]" wrote:

Ivan,

I think that if you are using .NET 2.0 (you said VS.NET 2005) the
DataGridView is a better option, as it has more of the options you are
looking for (I believe it can do all of those things).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m




May 22 '07 #6
Well. It may not scale well but that is a business requirement. There will be
timestamps involved in addition to TCP/IP broadcast so other clients
immedeately affected and records locked on their screen without need for
refresh. Updates to records will also be broadcast in a form of signals so
users can go and grab only updated data they need from database.

I wish it was simple "Save" -"Sorry, other user just modified this record"

:)

Thanks,
Ivan

"Nicholas Paldino [.NET/C# MVP]" wrote:
In this case, the DataGridView should be able to do what you want.
However, locking the data in the manner in which you describe isn't the best
idea, I think, as it doesn't scale well. You are performing pessimistic
locking.
May 22 '07 #7
Hi Ivan,

FYI: We (FarPoint) do offer a VS2005 version of our spread component
(rewritten in C#), Spread for Windows Forms. This has all the
functionality of what you're used to in the COM version of Spread, but
with many new features. Here's the link if you want to check it out:
http://www.fpoint.com/netproducts/sp...spreadwin.aspx

- Donald
FarPoint Technologies
I'm starting winforms project and I need grid control that will give
me control I want. I was usingFarPointsp readin VB6 to get similar
results.


May 23 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4275
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found several examples on the web. They all seem to have problems, though that I've been unable to resolve. The most promising example I have found is at:
7
3798
by: _e_ | last post by:
I'm trying to set custom widths and headings for DataGrid columns, but they keep displaying as defaults. I did configure the params via the TableStyles collection -> ColumnStyles collection. MappingName is set to the name of the DataTable. My understanding is that the names should match or else the defaults will be used. Though all the data is being displayed, it does look like the column sizes and headers are set to defaults (Names =...
1
1007
by: Webgour | last post by:
Hello, Any body knows how to generate a datagrid completly programmatically including sort with event and all??
5
9178
by: BBFrost | last post by:
Win2000 ..Net 1.1 SP1 c# using Visual Studio Ok, I'm currently in a "knock down - drag out" tussle with the .Net 1.1 datagrid. I've come to realize that a 'block' of rows highlighted within a datagrid do >> not << constitute a set of 'selected' records. Apparently one and only one row may be 'selected' in a datagrid. By selected row I mean the row
2
4336
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know how to use this code? please help! http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20862953.html
2
1307
by: Alpha | last post by:
Hi, Where is a good place on the internet for me to learn about how to use the datagrid. My grid's datasource is a dataset with one table from a DB. I need to know how to perform Edit, Delete and insert for the grid. The books I have are not that detail. I appreciate it someone can point me out to some good reading/learning article. Thanks, Alpha
2
1320
by: OHM | last post by:
Windows Forms Controls. Has anyone personally read and recommends a good book which includes good coverage on DataGrids as this seems to be one of the most common problem areas. Regards - OHM
1
1477
by: TonyJ | last post by:
Hello! If there is a datagrid in VS2005 for winforms what kind of datagrid is it then. 1.Is it a bound datagrid that has a direct connection to columns for tables in the database. 2. Is it an open datagrid that has no connection to the databse as the bound datagrid have. We have began to use a third party datagrid that is called flygrid but I
3
5188
by: psyvanz | last post by:
How to save all the information in a datagrid in just one command button, click, and it will automatically save in the table in access(student name,and student subjects will added and save in table ), regardless on how many records were bind in a datagrid. im using dataenvironment in connecting my database MS Access 2007, hope you help me on this matter (please just a dataenvironment code) cause modules is too complicated for me.. im...
0
10491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10268
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10247
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10031
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9079
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7571
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.