We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DataGrid Cell navigaton error

Thread ID:

Created:

Updated:

Platform:

Replies:

507 Jul 2,2002 05:37 AM Jul 4,2002 12:56 AM Windows Forms 5
loading
Tags: FAQ
Peter
Asked On July 2, 2002 05:37 AM

Dim i as int32 Dim j as int32 For i=0 to rows For j=0 to cols DataGrid(i)(j).someproperty="something" Next Next This doesn't work in VB.NET. I'm getting an error saying: "Can't convert integer into System.Windows.Forms.DataGridCell" Anyone help?? I'm trying to go through each cell of the grid. Thank you.

Clay Burch [Syncfusion]
Replied On July 2, 2002 08:32 AM

Try DataGrid(i,j).someproperty = "something" provided 'someproperty' takes a string...

Peter
Replied On July 3, 2002 05:18 AM

Hi Clay, thank you. It works, meaning I'm not getting this error any more. But now the only property I can reach is DataGrid(1,1).GetType Please help. I'm trying to reach Text property. Is there any sample I can look at. Thank you SO very much.

Clay Burch [Syncfusion]
Replied On July 3, 2002 01:29 PM

If the cell value is a string, you can get it just by dim cellValue as String = datagrid1(i,j)

Administrator [Syncfusion]
Replied On July 4, 2002 12:56 AM

> If the cell value is a string, you can get it just by > > dim cellValue as String = datagrid1(i,j) Hi peter. if the datagrid cellvalue accepts string then Just say(type) DataGrid(i,j) = "Vipul" Hope this helps

Vipul Bhatt
Replied On July 4, 2002 12:56 AM

> If the cell value is a string, you can get it just by > > dim cellValue as String = datagrid1(i,j) Hi peter. if the datagrid cellvalue accepts string then Just say(type) DataGrid(i,j) = "Vipul" Hope this helps

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;