Quote from previous forum:
hemant.bob
Posts: 70 From: India Registered: Feb, 2008
|
| Grid layout with horizontal and Vertical lines between the rows and columns
| | Posted: Jul 11, 2008 9:54 AM |
| |
Hello All, I just want to display the data in Grid format. To do that that I referred the following article,
How to - Use the User Interface API to create an editable table http://tinyurl.com/un4s3
Though it works, but my screen doesn't exactly look like grid(Please have look at the images in above link). Is there any way to add horizontal and vertical separator/lines between the columns and rows of the Grid. I think it is possible, because I have seen some application(Database Viewer Plus, hanDbase) with such screen on BlackBerry. So, can anyone please guide me here...
Thanks, Appreciate your response...
|
msohm
Posts: 2,228 Registered: Jul, 2005
|
| Re: Grid layout with horizontal and Vertical lines between the rows and columns
| | Posted: Jul 11, 2008 11:29 AM |
| | Does the sample in this developer knowledge base more closely resemble what you are trying to do?
How To - Create a screen with stationary headings DB-00510 http://tinyurl.com/5nxx6u
Mark Sohm BlackBerry Developer Journal www.blackberrydeveloperjournal.com
|
|
hemant.bob
Posts: 70 From: India Registered: Feb, 2008
|
| Re: Grid layout with horizontal and Vertical lines between the rows and col
| | Posted: Jul 12, 2008 1:24 AM |
| | Hello mark and all, sorry, I supposed to post the same Knowledge Base url which mark posted me, but by mistake I post the different one in my previous post. So, please consider my question w.r.t. the KB which mark has provided.
So, by anyway is it possible to add horizontal and vertical lines to the grid?.
Thanks, and keenly waiting for your replys...
|
|
You could create your own custom Field that extends LabelField. You could then override its paint method, first calling super.paint and then draw a line around the edge of the LabelField.