473,385 Members | 1,353 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,385 software developers and data experts.

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

"Katit" <id*********@gmail.comwrote in message
news:11*********************@p77g2000hsh.googlegro ups.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.com
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.com
"katit" <ka***@discussions.microsoft.comwrote in message
news:2B**********************************@microsof t.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.com

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.com
"katit" <ka***@discussions.microsoft.comwrote in message
news:2B**********************************@microsof t.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.com


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

"katit" <ka***@discussions.microsoft.comwrote in message
news:D3**********************************@microsof t.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.com
"katit" <ka***@discussions.microsoft.comwrote in message
news:2B**********************************@microso ft.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.com




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 usingFarPointspreadin 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
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...
7
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. ...
1
by: Webgour | last post by:
Hello, Any body knows how to generate a datagrid completly programmatically including sort with event and all??
5
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...
2
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...
2
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...
2
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
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...
3
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...
1
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...
0
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...
0
isladogs
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
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...

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.