By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

hi group

P: n/a
Hope your all well?

I have a form with a DataAdapter, DataConnect and a Dataset I build from the
two.

I have a Datgrid on my form with the Datapropertys set to MyDataset.

I also have several Text boxs assigned to the dataset. My question is how do
i remove a table (Make it not visible in the datagrid) but still alow me to
assign the proprty to the text box, if you get what i mean?

Thanks in Advance
Regards
Si
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
Hi Newbie,

A direct answer to your question is

datagrid1.visible = false

I do not know if that was what you did mean?

Maybe you can explain a little bit more what you are doing, but it sounds
strange?

Cor
I have a form with a DataAdapter, DataConnect and a Dataset I build from the two.

I have a Datgrid on my form with the Datapropertys set to MyDataset.

I also have several Text boxs assigned to the dataset. My question is how do i remove a table (Make it not visible in the datagrid) but still alow me to assign the proprty to the text box, if you get what i mean?

Nov 20 '05 #2

P: n/a
Hi Cor,

Say I have in my Dataset:

ID
FirstName
SecondName
EmployerID
AccessCode

On my Datagrid i only want:

FirstName
SecondName
EmployerID

But in my Text box`s i want everything populated.

Hope that explains it a bit better

Regards
Si

"Cor" <no*@non.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Hi Newbie,

A direct answer to your question is

datagrid1.visible = false

I do not know if that was what you did mean?

Maybe you can explain a little bit more what you are doing, but it sounds
strange?

Cor
I have a form with a DataAdapter, DataConnect and a Dataset I build from the
two.

I have a Datgrid on my form with the Datapropertys set to MyDataset.

I also have several Text boxs assigned to the dataset. My question is

how do
i remove a table (Make it not visible in the datagrid) but still alow me

to
assign the proprty to the text box, if you get what i mean?


Nov 20 '05 #3

P: n/a
Cor
Hi Newbie,

It explains it complete

Have a look at
datagridtablestyle
and
datagridcolumnstyle

It is very easy to use
something as here roughly types
\\\
dim tsl as new datagridtablestyle
tsl.Mappingname ="mytable"
tsl.gridcolumnstyles.add(new datagridtexboxcolumn) ' standard is also a
datagridboolcolumn
tsl.gridcolumnstyles.item(0).mappingname ="myfirstitem"
tsl.......................................
etc etc
datagrid1.tablestyles.add(tsl)
/////

I hope this helps?

Cor
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.