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

Question: Data In Grid Cell Not Appearing Unless I click on the grid cell

5 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Gonzalez
Top achievements
Rank 1
Jorge Gonzalez asked on 22 Jan 2010, 10:20 PM
Hello,
    I've loaded a datatable cell with some text but the associated grid cell is not showing anything unless I click on the cell. When I click on the cell 3-4 lines of text appear.
I have to set the grid to read-only so now nothing will show up because the cell is read-only.
Any help would be appreciated.
Thanks

5 Answers, 1 is accepted

Sort by
0
Jorge Gonzalez
Top achievements
Rank 1
answered on 25 Jan 2010, 12:26 AM
Hello,
    The problem is somehow caused by my approach to adding two checkbox columns to the grid. By the way I am getting my data from a stored proc. My last attempt caused this error to appear when rebinding the grid:

{"Specified element is already the logical child of another element. Disconnect it first."}


0
Vlad
Telerik team
answered on 25 Jan 2010, 06:52 AM
Hi,

Can you post your code related to these checkboxes?

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jorge Gonzalez
Top achievements
Rank 1
answered on 27 Jan 2010, 08:21 AM
Hello Vlad,
   I've tried so many approaches I cannot remember all of them. This is what I am doing:
I execute a proc to load a dataset. I than attach the dataset to the grid
(gridname.itemssource = dataset). 
I need to add two checkboxes to the end of each row in the datagrid but everything I've tried has failed. 
I would be great if you new how to do this or new of another approach.
Thanks

0
Milan
Telerik team
answered on 28 Jan 2010, 07:28 AM
Hi Jorge Gonzalez,

If you could spare some time to send us some XAML or code-behind code that you use it will really help us to resolve the problem. With the current information we were not able to reproduce the problem. We will really appreciate it if you could paste the column definitions or send us a sample application that demonstrates the problem.


Kind regards,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jorge Gonzalez
Top achievements
Rank 1
answered on 28 Jan 2010, 02:59 PM
Hello Milan ,
     I've come up with a solution that's very simple and works. After the dataset is loaded from executing the proc I add two new Boolean columns to the dataset table (Table[0]). When I attach the dataset to the grid the two new columns appear as checkboxes.
Thanks
Tags
GridView
Asked by
Jorge Gonzalez
Top achievements
Rank 1
Answers by
Jorge Gonzalez
Top achievements
Rank 1
Vlad
Telerik team
Milan
Telerik team
Share this question
or