We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Set InternalColumn Format before data binding

I have a situation with a DataBoundGrid where I set the datasource to an empty datatable object, which I am going to fill using a SQLDataAdapter at a later point in time.

I want to set the Binder.InternalColumns format to a particular format, but it would be nice if I could do it before the DataAdapter fills the DataTable. Is this possible?

Or would it be possible to detect the event when the datatable goes from having no data whatsoever to some data?

Thanks.


1 Reply

NR Nirmal Raja Syncfusion Team August 12, 2008 11:25 AM UTC

Hi Robert,

Thank you for your interest in Syncfusion product.

The Binder.InternalColumn format of the GridDataBoundGrid can be set only after the DataSource is assigned with the DataSet.
The properties of column is attained only after the column has some Datas.
The empty cell can be checked before the DataSet is assigned, by using the QueryCellInfo Event.
The event will check whether the cells contains any datas.

Let me know if you have any queries.

Regards,
Nirmal


Loader.
Live Chat Icon For mobile
Up arrow icon