Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DB grids
#3
Hi
I "fight"  Big Grin   against grid since I started working with IntraWeb. I guess the vcl-grids and the IW-grids are 2 different things.

In the meantime I use iwdbgrids only in readonly mode ; alway with TIWDBGridColumns for each column I want to show.
Without these , you don't habe a current record, the Grid don't synchronized with the Dataset.

One way to posit sync the grid and the dataset , I found here , was an on click event in grid Columns. Here you can lookup the value in your underlaying dataset.

iE.
void __fastcall TIWFrame2::IWDBGrid1Columns0Click(TObject *ASender, const UnicodeString AValue)
      
{
  dstKnd->Lookup(AValue);

   
}
//---------------------------------------------------------------------------



Hope that helps...
Reply


Messages In This Thread
Using DB grids - by iwuser - 02-10-2024, 01:40 AM
RE: Using DB grids - by iwuser - 02-11-2024, 01:57 PM
RE: Using DB grids - by joergb - 02-11-2024, 02:23 PM
RE: Using DB grids - by iwuser - 02-11-2024, 04:32 PM
RE: Using DB grids - by lfeliz - 02-11-2024, 04:56 PM
RE: Using DB grids - by iwuser - 02-11-2024, 05:09 PM
RE: Using DB grids - by iwuser - 12-16-2024, 06:05 AM
RE: Using DB grids - by iwuser - 12-17-2024, 10:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)