Hi all
I binding a datagrid by datasource property to a datatable.I determain datagrid columns by Columns property manualy. but when i run my project the columns of datatable is show in datagrid.But i want only columns that determains by column property shown in datagrid. Plz help me.
Thanks

Blocked AccountRank #403 · 6.2K reputationPosted Jan 28, 2008, 8:31 PM EST
Set the property
AutoGenerateColumn = false
Happy Coding!!
Nader Rafiee26 reputationPosted Jan 29, 2008, 3:37 AM EST
Hi My Freind.
I set the autogeneratecolumn to false . and create Columns by columns property. But records cannot show in datagrid.what problem ?
thanks
Mubashir Hassan2 reputationPosted Jun 2, 2008, 1:14 AM EDT
use
item template property and write code as
<%#DataBinder.Eval(Container.DataItem,"ColumnName">
Bechir BejaouiRank #144 · 15.9K reputationPosted Jun 3, 2008, 1:59 PM EDT