473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

grid.CheckedBox

I have this code for searching through grid and putting a result into
another grid where I defined a checkBox.

Line with mark * is where I need to define where in gridGroups row I have to
put a checkBoxValue = true.

void ColumnDrawGroupsChecked (

Syncfusion.Windows.Forms.Grid.GridStyleInfo gridStyle, System.Data.DataRow
row )

{

gridStyle.CellType = "CheckBox";

gridStyle.CellValueType = typeof(bool);
DataSetAccounts.UsersRow rowGroups =

GetSelectedRow( gridUsers.Grid ) as DataSetAccounts.UsersRow;

if ( rowGroups != null )

{

DataSetAccounts.GroupsRow rowGroup =

rowGroups.GetParentRow( "GroupsUsersGroups" ) as DataSetAccounts.GroupsRow ;

if ( rowGroup != null )

{

* Here I need to determine where to put CellValue to true

gridStyle.CellValue = true;

}

}

}

Hrcko
Nov 17 '05 #1
2 1771
Hi Hrvoje;

The following should work;

DataColumn checkboxColumn = table.Columns["CheckBoxColumnName"];

// Then in the * mark
rowGroup[checkboxColumn] = true;

Regards,
Dhanushka

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d6**********@ss405.t-com.hr...
I have this code for searching through grid and putting a result into
another grid where I defined a checkBox.

Line with mark * is where I need to define where in gridGroups row I have to put a checkBoxValue = true.

void ColumnDrawGroupsChecked (

Syncfusion.Windows.Forms.Grid.GridStyleInfo gridStyle, System.Data.DataRow
row )

{

gridStyle.CellType = "CheckBox";

gridStyle.CellValueType = typeof(bool);
DataSetAccounts.UsersRow rowGroups =

GetSelectedRow( gridUsers.Grid ) as DataSetAccounts.UsersRow;

if ( rowGroups != null )

{

DataSetAccounts.GroupsRow rowGroup =

rowGroups.GetParentRow( "GroupsUsersGroups" ) as DataSetAccounts.GroupsRow ;
if ( rowGroup != null )

{

* Here I need to determine where to put CellValue to true

gridStyle.CellValue = true;

}

}

}

Hrcko

Nov 17 '05 #2
This works, but it creates a new grid with columns.
I want to put a check value into available grid.

Hrcko

"Dhanushka Nuwan" <sh******@yahoo.com> wrote in message
news:OR*************@TK2MSFTNGP14.phx.gbl...
Hi Hrvoje;

The following should work;

DataColumn checkboxColumn = table.Columns["CheckBoxColumnName"];

// Then in the * mark
rowGroup[checkboxColumn] = true;

Regards,
Dhanushka

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d6**********@ss405.t-com.hr...
I have this code for searching through grid and putting a result into
another grid where I defined a checkBox.

Line with mark * is where I need to define where in gridGroups row I have

to
put a checkBoxValue = true.

void ColumnDrawGroupsChecked (

Syncfusion.Windows.Forms.Grid.GridStyleInfo gridStyle,
System.Data.DataRow
row )

{

gridStyle.CellType = "CheckBox";

gridStyle.CellValueType = typeof(bool);
DataSetAccounts.UsersRow rowGroups =

GetSelectedRow( gridUsers.Grid ) as DataSetAccounts.UsersRow;

if ( rowGroups != null )

{

DataSetAccounts.GroupsRow rowGroup =

rowGroups.GetParentRow( "GroupsUsersGroups" ) as
DataSetAccounts.GroupsRow

;

if ( rowGroup != null )

{

* Here I need to determine where to put CellValue to true

gridStyle.CellValue = true;

}

}

}

Hrcko


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
0
by: scottmallory | last post by:
Greetings, I am new to Python...and I am having some difficulty updating a grid (wx.grid.PyGridTableBase). Everything works just fine (adding /deleting/ resizing rows, cols) except updating...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
0
by: BH | last post by:
Hi, I am trying to build my own IHM with two treeCtrl and 1 grid, based on the wx.aui demos. My problem is with the Grid. It dosen't have scrollbars. I tried many methods (fit) but it always...
6
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
5
by: gaya3 | last post by:
Hi, can anyone find error in the following example <%@ include file="JspBean.jsp" %> <%@ page import="java.util.*"%> <html> <head> <%
1
by: Francesco Bochicchio | last post by:
Il Mon, 18 Aug 2008 12:15:10 +0100, dudeja.rajat ha scritto: Uhm, I don't think you should use the grid manager to obtain a window like that. The grid manager is for equally distributing...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.