This is a migrated thread and some comments may be shown as answers.

[Solved] getting the Mastertableview info into Dataset

6 Answers 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manjunath
Top achievements
Rank 1
Manjunath asked on 02 May 2008, 12:07 PM

Hi ,
I have a situation  like , getting the  content of the r.a.dGrid  into the dataset . But am not able to get this. can any one help me in this regard ?

Thanks in advance,

Manjunath

6 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 May 2008, 12:48 PM
Hi Manjunath,

Go through the following help document link.
Binding the grid

Princy.
0
Manjunath
Top achievements
Rank 1
answered on 02 May 2008, 01:10 PM
Thanks princy ,

But I have a situation  like , when a link button is clicked  the data from the r.a.dGrid should be copied  to the Dataset
 
0
Manjunath
Top achievements
Rank 1
answered on 02 May 2008, 01:12 PM
And one more thing is I don't want to modify  the  current binding and other stuffs ...... only  adding this facility and preparing the dataset for the next process......

Thanks
0
Bodevain Svensson
Top achievements
Rank 1
answered on 04 May 2008, 12:52 PM
I will try to give you a hint here, Manjunath, based on my experience with RadGrid. In the OnClick server handler of the button iterate through the Items collection of the RadGrid control and extract the data from each cell using the unique name of the column to reference it. Then copy the data in your custom dataset to process it later.
One more thing - to make sure that you get all values from the grid when paging is enabled, set AllowPaging = false and rebind the grid invoking the Rebind() method before traversing its Items collection (inside the link button click handler).

Hope this makes sense.

Bodevain
0
Manjunath
Top achievements
Rank 1
answered on 05 May 2008, 07:32 AM
Hi  
  I want to export the content of the editable r.a.d Grid  to excel sheet . when i code for this feature  i am getting an error showing  "RegisterRequiresControlState can only be called before and during PreRender."

when a link button is clicked the below code get executed ..... 

            grdIssues.ExportSettings.ExportOnlyData = true;
            grdIssues.ExportSettings.IgnorePaging = true;
            grdIssues.ExportSettings.OpenInNewWindow = true;
            grdIssues.MasterTableView.ExportToExcel();

and getting the above shown error ...

can anyone help in this regard,
Thanks


0
Shinu
Top achievements
Rank 2
answered on 05 May 2008, 07:48 AM
Hi Manjunath,

Go through the following forum link which discusses a similar error.
ExportToExcel create error after upgrade to Q2

Shinu.
Tags
Grid
Asked by
Manjunath
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Manjunath
Top achievements
Rank 1
Bodevain Svensson
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or