Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I used coding to bind datatable to datagrid

 

e:g

 

myDatagrid.Datasource = mytable

 

The table contains 4 column : CutomerID , OrderId , price , qty

 

How do I change the data grid to display only price and qty ?

Posted

go to the properties of the datagrid, go to the tablestyles options click on collections, add a tablestyle and then add as many gridcolumnstyles as you want, map the columns to your data columns, then give the columns you want to hide the width 0 and then is your problem solved.

 

greetz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...