iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi ,
We have a checkbox column in our webgrid.
When we export the grid data . Checkbox column is also appearing with the header Checkbox.
Is there any property like showinSelectcolumns by which we can avoid showing this?
Or How to avoid this?
Regards,
Madhavan
I’d like to recommend you to utilize the OnExport server-side event of WebGrid in order to avoid checkbox column appearing on the exported document. OnExport is invoked when exporting data is performed.
On the OnExport server-side event, you may choose to set the visibility of the particular column to false or remove the column object from the collection. The snippet code below shows both of methods.
// Set the Visible property of the particular column to false // in order to avoid the column appearing on the exported document. e.Table.Columns[int].Visible = false; // Removes the column object from the collection // in order to avoid the column appearing on the exported document. ISNet.WebUI.WebGrid.WebGridColumn CheckBoxColumn = e.Table.Columns[int]; e.Table.Columns.Remove(CheckBoxColumn);
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname