Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-02-2009
Member
 
Join Date: Jan 2009
Posts: 38
What are the differences between flexgrid control and dbgrid control?

Hello!

What are the differences between flexgrid control and dbgrid control?

Please help!
Reply With Quote
  #2  
Old 27-02-2009
Member
 
Join Date: Jan 2009
Posts: 36
Re: What are the differences between flexgrid control and dbgrid control?

1. Datagrid is Editable, flexgrid is Diplay only.

2. DBGrid allows full data binding while MSFlexGrid allows read-only binding

3. MSFlex grid is smaller and allows cell merging while Datagrid is larger and does not allow cell merging.
Reply With Quote
  #3  
Old 27-02-2009
Member
 
Join Date: May 2008
Posts: 115
Re: What are the differences between flexgrid control and dbgrid control?

Bound is truly evil - do not let it tempt you just because you can edit the grid...

Editing a flex grid is very easy by placing a textbox or combo box on top of the cell to edit - the VB help actually has samples of the code required to make this happen.

We do so much with the simple MS Flex Grid...
Reply With Quote
  #4  
Old 27-02-2009
Member
 
Join Date: May 2008
Posts: 44
Re: What are the differences between flexgrid control and dbgrid control?

The Microsoft FlexGrid (MSFlexGrid) control displays and operates on tabular data. It allows complete flexibility to sort, merge, and format tables containing strings and pictures. When bound to a Data control, MSFlexGrid displays read-only data.Adaptation to existing Visual Basic code for the data-bound grid (DBGrid).
DBgrid is A spreadsheet-like bound control that displays a series of rows and columns representing records and fields from a Recordset object.

The data grids are bound controls; that is, they require a data source that actually connects to a database and retrieves their data. And it seems that the root of the problem with DBGrid is that there?s no data source that can be readily included along with the DBGrid control.
In Visual Basic, the solution is simply to include the Data Control on the same form as DBGrid. But the Data Control is an intrinsic control; it?s unavailable to anything outside of the Visual Basic environment itself. and VB 6.0 has a new set of data controls (DataGrid, DataList, DataCombo, MSHFlexGrid, MSFlexGrid) that once again are bound controls. Unlike DBGrid, though, they support OLE DB, and therefore rely on the an ADO Data Source (and in particular the ActiveX Data Objects Data Control, or ADO DC) for data access. Unlike the Data Control, the ADO DC is a custom control (that is, an .OCX) that can be added to any project. In short, if you add ADO DC to your project along with the DataGrid control.
Reply With Quote
  #5  
Old 27-02-2009
Member
 
Join Date: May 2008
Posts: 63
Re: What are the differences between flexgrid control and dbgrid control?

Hi,

1. In DB Grid you can do Add/Mod/Del Function in the DataSource Where as in Flex Grid direct these operation not possible.

2. We have Events for Before or After Editing a Column in DB Grid But in Flex Grid we do not have.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What are the differences between flexgrid control and dbgrid control?"
Thread Thread Starter Forum Replies Last Post
Tools to control multiple pc on network via Remote Control on Vista Meherr Windows Vista Network 7 12-06-2013 10:16 AM
How to control Apple Cinema Brightness control for Dell XPS 14 running Ubuntu 10.10? Chellappan Portable Devices 3 24-01-2012 11:14 PM
Can I use Sony DVD Remote to control Yamaha Volume Control Noell Portable Devices 4 04-05-2011 11:21 AM
What is Media Access Control and Logical Link Control Pakhi Networking & Security 4 10-01-2011 11:53 AM
Error Control and flow control in TCP/IP? Diellza Networking & Security 5 07-01-2011 09:36 AM


All times are GMT +5.5. The time now is 09:56 PM.