DataGrid control displaying blank first cell when bounded with ADO

From: Jacob (Jacob_at_discussions.microsoft.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 04:25:01 -0700

I am preparing an MFC based dialog application using Visual Studio 2003 VC++ IDE. On my dialog, I am having DataGrid (DataGrid ActiveX control - Ver 6.0 (SP5)) and ADODC (Microsoft ADO Data Control - ver 6.0 (SP 4)) controls.
The ADODC control is connected to an Microsoft Access Database using Jet.OLEDB4.0 provider. And DataGrid is bounded to the ADODC.

The dialog box displays both the control, with the data from the table too. However, the first cell (1st row and 1st column) in the DataGrid control is always shown as blank.

And when the Dilaog box is closed, an exception is thrown
"Unhandled exception at 0x77f75a58 in MFCApp.exe: User breakpoint." And if opted for "Break" option, "free.c" file is opened in the IDE in readonly mode at line number 103.

Also, the same application can be created in VC++ 6.0 IDE without any problem by following the same steps.



Relevant Pages

  • Re: Display 1 data row as multiple datagrid rows
    ... I have written a custom control before, ... isn't intuitively obvious how to easily extend the Microsoft datagrid to do ... horizontal scrolling is consider bad design. ... wrap too and allow for sorting of any column it's practical to sort on. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET limitations?!?
    ... displaying 1000s of rows in a single DataGrid may not be the best way ... the control as well, ... "Milan Todorovic" wrote in message ... When I understand the reason ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Adding dummy item to DropDownList in a DataGrid
    ... creates a new DdropDownList control called list, it is not in a DataGrid, it ... control that is inside a DataGrid. ... Dim cell As TableCell = CType ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Inherited class
    ... Page CLASS is one of inheritance. ... > What everyone is telling you is that the control you place on your ASPX ... >>> you can't just change the class from DataGrid to XXXDataGrid in the code ...
    (microsoft.public.dotnet.framework.aspnet)
  • DataGrid Problem
    ... Ich will in einem Datagrid die Felder mit einem Benutzerdefiniertem Control füllen, damit der User weniger Möglichkeiten hat Fehler zu begehen. ... Wenn ich auf die Zeile klicke in der ein neuer Datensatz erscheinen soll zeigt er auch den NullText toll in meinem Control an, allerding wenn ich dann mein Control anklicke scheint er den Focus zu verlieren und springt auf die letzte vorhandene Zeile im Datagrid... ... protected override void Edit(CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible) { ... protected override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, Brush backBrush, Brush foreBrush, bool alignToRight) { ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)