PC Review


Reply
Thread Tools Rate Thread

DataGrid - Perform FullRowSelect without using Parent Row - Can Add Pic on Datagrid

 
 
A_PK
Guest
Posts: n/a
 
      22nd Mar 2005
Just wonder default datagrid able to support fullrow select while I click
the column cell or not. I am aware of that if we click the parent row, then
the full row will be selected. but I want to hide the parent row, and if
there any way to do when I click the column cell, then the full row will be
selected ?

another question. how to add pic to Datagrid ?


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      22nd Mar 2005
You'll need to have the RowHeadersVisible property set true to allow the
user to select full rows with a single click.

The DataGrid in .NETCF supports only text. Using the SmartGrid from Resco
you can incorporate images and other formatting -
http://www.resco.net/developer/smartgrid/

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://blog.opennetcf.org/pfoot/

" A_PK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Just wonder default datagrid able to support fullrow select while I click
> the column cell or not. I am aware of that if we click the parent row,
> then the full row will be selected. but I want to hide the parent row, and
> if there any way to do when I click the column cell, then the full row
> will be selected ?
>
> another question. how to add pic to Datagrid ?
>
>



 
Reply With Quote
 
=?Utf-8?B?TWljaGVsIFJlbmF1ZA==?=
Guest
Posts: n/a
 
      22nd Mar 2005
I'm not sure if that's what you want, but in the Click event of the Datagrid
I simply do something like:

gridControl.Select(gridControl.currentrowindex)

And the entire row is selected, rather than just the cell that was tapped.
No need for the row headers (they're hidden in my application.)

"A_PK" wrote:

> Just wonder default datagrid able to support fullrow select while I click
> the column cell or not. I am aware of that if we click the parent row, then
> the full row will be selected. but I want to hide the parent row, and if
> there any way to do when I click the column cell, then the full row will be
> selected ?
>
> another question. how to add pic to Datagrid ?
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to get data from parent datagrid item from child datagrid dataitem Skowronek Microsoft ASP .NET 2 16th Sep 2005 01:36 AM
FullRowSelect in DataGrid Jassim Rahma Microsoft C# .NET 2 30th Jun 2005 08:31 AM
Datagrid and events to perform essential task =?Utf-8?B?U3RlcGhlbg==?= Microsoft Dot NET 1 21st Oct 2004 05:26 PM
Datagrid and events to perform essential task =?Utf-8?B?U3RlcGhlbg==?= Microsoft C# .NET 0 21st Oct 2004 03:19 PM
Perform dynamic calculations in DataGrid. =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 1 29th Jul 2004 12:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:05 AM.