choosing number of columns of a datagrid
Hello,
i have a query, the result of this query should be displayed in a datagrid, but i want that the user who define the columns that will be shown in the datagrid.i wish i explained well my problem.any idea please ?!!
Thank you.
Hello,
i have a query, the result of this query should be displayed in a datagrid, but i want that the user who define the columns that will be shown in the datagrid.i wish i explained well my problem.any idea please ?!!
Thank you.
Answers & Comments...
Answer: 1
if you want to have selected columns from the dataclass, then have autogenerate to false and add custom columns.
Answer: 2
Have a look at this: http://msdn.microsoft.com/en-us/library/cc903950(v=vs.95).aspx basically it allows you to customise the autogenerated columns at run time, one option is not to generate the field (e.cancel = true).
Answer: 3
I think you jst load the query output to a collection which is of a complex type containing your column as properties.
Then filter and bind the collection to the datagrid.
Answer: 4
hi yassine1988
Add a custom column on your DataGrid and fill that dynalically...
Thanks & Regards
Mastan Narravula
Mark as Answer", if it helped you or it might help others too.
Answer: 1
How do you want your user to select the columns for the datagrid ?
yassine1988
but i want that the user who define the columns
if you want to have selected columns from the dataclass, then have autogenerate to false and add custom columns.
Answer: 2
Have a look at this: http://msdn.microsoft.com/en-us/library/cc903950(v=vs.95).aspx basically it allows you to customise the autogenerated columns at run time, one option is not to generate the field (e.cancel = true).
Answer: 3
I think you jst load the query output to a collection which is of a complex type containing your column as properties.
Then filter and bind the collection to the datagrid.
Answer: 4
hi yassine1988
Add a custom column on your DataGrid and fill that dynalically...
Thanks & Regards
Mastan Narravula
Mark as Answer", if it helped you or it might help others too.
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog