Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Question 1

Status
Not open for further replies.

arrian

Programmer
Nov 11, 2003
93
CA
Hi everyone. I'm looking for a grid that's similar to a datagrid. I don't want to use a data grid because you allways have to click it to actually display the grid.(if someone knows how to fix that, that would be great too!) Anyway, this grid needs to be able to change the color of individual rows. Right now, I'm using the C1 FlexGrid, but I can't seem to change the color of a row, only of the entire grid. Any ideas of where I could get a grid that would do this? Thanks.
 
With C1's Flex Grid, you can change the color of an individual cell if so required, so coloring a row should be just as simple

Also what do you mean by "you have to click an MS Grid to actually display"?


Sweep
...if it works dont f*** with it
curse.gif
 
Yeah, I just found out where I was going wrong with the C1 grid. I'd like to check a couple others, if anyone has any suggestions of grids, before we make a decision on buying the component.

What I mean is when you load the grid in code, nothing is displayed. You have to click a + symbol, then the table name...
 
No...Im afraid you've lost me completely on that one. Are you trying to display parent/child data?. Its not clear from your original posts what your problem actually is


Sweep
...if it works dont f*** with it
curse.gif
 
Ok, I'll try this again... Using a datagrid, I populate it with data from a dataset. The grid does not automatically display the data. There is a + symbol you can click that then gives you the table name. You click the table name, and it displays the grid. It's like the grid starts minimised or something? I hope that's a little clearer...
 
Try setting the datasource to the datatable rather than the dataset.


Sweep
...if it works dont f*** with it
curse.gif
 
Ok, and 1 more little question. Is it possible to change the color of individual rows in a DataGrid?
 
You might be interested in this grid class thread796-1029632. A simple MS Grid class which displays data without any need for grid clicks...


Sweep
...if it works dont f*** with it
curse.gif
 
Ok, I will check that out. Thanks for your help!
 
Coloring Rows...yes its possible by using a derived columnstyle, override the Paint method and do the text drawing yourself. This again gives you control over the individual cells. In all honesty however, the C1 grid makes this much task much easier.





Sweep
...if it works dont f*** with it
curse.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top