I'm creating my grid programmatically and wondering how I can add a custom button in addition to the export to Excel and CSV buttons already there. Here's a snippet of my code:
rgReport.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
Again, I want to add a custom button, but not sure how to go about doing that programmatically. I know I can use the CommandItemTemplate, but I'm not sure if I have to recreate the export functionality or if I can simply add another button to the already existing CommandItemSettings.
Any help would be appreciated.
Mark
rgReport.MasterTableView.CommandItemSettings.ShowExportToCsvButton = (bool)resultsDT.Rows[0]["ShowExportToCsvButton"];
rgReport.MasterTableView.CommandItemSettings.ShowExportToExcelButton = (bool)resultsDT.Rows[0]["ShowExportToExcelButton"];rgReport.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
Again, I want to add a custom button, but not sure how to go about doing that programmatically. I know I can use the CommandItemTemplate, but I'm not sure if I have to recreate the export functionality or if I can simply add another button to the already existing CommandItemSettings.
Any help would be appreciated.
Mark