hi All,
i'm new in Infragistic tools and i don't understand how to design ultra win grid like attached file.
Data is cuming from Stored Procedure and i m using vb.net for this,.
please help me and reply me as soon as possible.
Thanks in Advance
Hi,
Which part of this is giving you trouble?
If you have your Stored Procedure returning data to your application using a DataTable or DataSet, then all you have to do is bind the grid to that data source.
To get a column arrangement like this, where you have one cell at the bottom that spans across all of the other cells, you have a couple of options.
One way to do this would be to use RowLayouts. You could do this in the grid designer at design-time. The designer comes up when you place a new grid on a form, so you can set it up that way, or just go into the designer by clicking on the grid's Start button and go to the Column Arrangement Overview.
An alternative option would be to use the grid's RowAutoPreview. The autopreview displays at the bottom of each row just like you have here. If you only have one cell of data to display and it doesn't need to be editable, then the RowAutoPreview is a simpler way to set this up than using RowLayouts.
Thanks for your reply. Actually i'm using Net Advantage Infragistic Tools 6.3 version. will i get these options watever u written in ur reply....?
actually the blank space is i think not a bottom coz after blank area again data fill come.
my requirments is to create grid like that, which can expand according to stored procedure data.
In blank area some data will also come from dataset.
please help me how to do that.
i m not able to find this kind of options...
please see this attachments this will clear u my requriment....
that is second screen-shot of my requriment....
Please help me as soon as possible.
With a more complex layout like you have here, you will probably need a RowLayout. I don't think the RowAutoPreview will be enough. But it's a bit hard to tell from just a screen shot.
I can't give you sample code for how to create a RowLayout. Like I said, setting up a RowLayout in code is very difficult, and you are much better off using the designer to set it up visually.
With v6 of the controls, I'm afraid I don't remember what the designer looks like, so it's hard for me to give you specific guidance there. I'm sure there must be a topic in the help which walks you through creating a RowLayout in the designer, though.
hey man please don't say like this you are my last hope only.
i couldn't find RowAutoPreview in Infragistics 6.3 but RowLayOut is there but i am not able to find this type of layout over there in RowLayOut.
please do needful.
What you need to do is bind the grid to your DataSource at design-time and then use the grid designer to design the layout you want. In the latest version of the grid, there's a big Start button on the grid in the designer. You push the button and go into the Column Arrangement overview and you can choose to use RowLayouts and then design our layout.
I'm not sure if the Start button was there in v6.3. If not, maybe you can right-click on the grid in the designer and select RowLayout Designer.
That big Start button is there i also tried watever u said but still i m not able to achieve this.
now i m thinking to create 3 grids and i will display these grids according my logic.
can u tell me how to create only 1st one....?
Hello ,
What you could is try the following code after your "Status" value has been changed:
if (Status == 2) { ultraGrid1.DisplayLayout.Bands[0].Columns[col6].Hidden = false; ultraGrid1.DisplayLayout.Bands[0].Columns[col7].Hidden = true; ultraGrid1.DisplayLayout.Bands[0].Columns[col8].Hidden = true; } if (Status == 3) { ultraGrid1.DisplayLayout.Bands[0].Columns[col6].Hidden = true; ultraGrid1.DisplayLayout.Bands[0].Columns[col7].Hidden = false; ultraGrid1.DisplayLayout.Bands[0].Columns[col8].Hidden = true; } if (Status == 4) { ultraGrid1.DisplayLayout.Bands[0].Columns[col6].Hidden = true; ultraGrid1.DisplayLayout.Bands[0].Columns[col7].Hidden = true; ultraGrid1.DisplayLayout.Bands[0].Columns[col8].Hidden = false; }
Hello,
Assuming that your are changing the "Status" value you could do something like the following right after this value has been changed:
i found this property and i changed it, now it is working.
tell me how to hide column of grid at run time based on some conditions..........?
Suppose Layout is like That:-
|col1||col2||col3||col4||col5|
______________________
col6
col7
col8
_______________________
Condition:-
if(Status==2)
Show:- col6
Hide:- col7 and col8
if(Status==3)
Show:- col7
Hide:- col6 and col8
if(Status==4)
Show:- col8
Hide:- col6 and col7
Please reply as soon as possible
These properties were added recently, so I am sure they do not exist in v6.3. Try this:
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
This code is not working for me i m working on vb.net and using 6.3 version of infragistic.
Actually i've changed some property and i dont know which one i've changed.