Very quick questions re Datagrid

  • Thread starter Thread starter Edwinah63
  • Start date Start date
E

Edwinah63

Hi Everyone,

1. how can i STOP the datagrid from presenting data in a hierachical
manner, all i want is a PLAIN spreadsheet view, not something the
users have to click on to get the results.

2. make the datagrid read only?

3. get the cell data out of it? in flexgrid could use
textmatrix(row,col)

need info asap. Code or instructions pls

regards

Edwinah63
 
Hi Edwinah,

Create a row of textboxes above or beneath your datagrid and bind those to
the datasource you are using in the datagrid and use the dataview as the
datasource, by setting the properties of the dataview, I assume you archieve
a large part of yoru goals.

I hope this helps?

Cor
 
Hi,

1) Set the datagrids datasource to a data table ie dataset.tables(0)

2) Datagrid1.Readonly=true

3) Datagrid1.Item(1,1).ToString

Ken
 
If i understand you correctly, you are having to click + to get to the data?
in that case you need to use the grids databmember
Me.dgTableList.DataSource = loadTables.InitTableGrid(strConnString)

Me.dgTableList.DataMember = "whatever"
 
Edwinah63,
In addition to the others comments.
1. how can i STOP the datagrid from presenting data in a hierachical
Set the DataMember name to a table name, set DataGrid.AllowNavigation to
False.
2. make the datagrid read only?
Have you tried setting DataGrid.ReadOnly to True?
3. get the cell data out of it? in flexgrid could use
textmatrix(row,col)
I normally go after the data in the underlying datasource. Although I would
expect the Item property also works...

Hope this helps
Jay
 
Guys, thanks for all your comments. i will try your suggestions and
see how it all goes.

i am very used to (and much prefer) working with unbound controls -
that's why the msflexgrid was wonderful.

i just have to get used to the new microsoft way of doing things.

Edwinah63
 
Back
Top