In grid widget I need to display a bar based in the value passed onto it. The color of the bar should change according to the value
Which kind of bar you are talking about. Is this any widget? I believe we can not use any type of widget inside Grid Widget. Could you please clarify on this.